Skip to content

Commit 965bc9b

Browse files
committed
ML-DSA: fix compilation of Intel AVX2 code
Signed-off-by: Stephan Mueller <smueller@chronox.de>
1 parent 49365e3 commit 965bc9b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

ml-dsa/src/avx2/dilithium_signature_avx2.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,7 @@ LC_INTERFACE_FUNCTION(int, lc_dilithium_sign_ctx_avx2,
545545
CKINT(signature_domain_separation(
546546
&ctx->dilithium_hash_ctx, ctx->ml_dsa_internal,
547547
ctx->dilithium_prehash_type, ctx->userctx,
548-
ctx->userctxlen, m, mlen, ctx->randomizer,
549-
ctx->randomizerlen, LC_DILITHIUM_NIST_CATEGORY));
548+
ctx->userctxlen, m, mlen, ctx->composite_algorithm, LC_DILITHIUM_NIST_CATEGORY));
550549
}
551550

552551
ret = lc_dilithium_sign_avx2_internal(sig, ctx, sk, rng_ctx);
@@ -596,8 +595,7 @@ LC_INTERFACE_FUNCTION(int, lc_dilithium_sign_init_avx2,
596595
CKINT(signature_domain_separation(
597596
&ctx->dilithium_hash_ctx, ctx->ml_dsa_internal,
598597
ctx->dilithium_prehash_type, ctx->userctx, ctx->userctxlen,
599-
NULL, 0, ctx->randomizer, ctx->randomizerlen,
600-
LC_DILITHIUM_NIST_CATEGORY));
598+
NULL, 0, ctx->composite_algorithm, LC_DILITHIUM_NIST_CATEGORY));
601599

602600
out:
603601
return ret;
@@ -790,8 +788,7 @@ LC_INTERFACE_FUNCTION(int, lc_dilithium_verify_ctx_avx2,
790788
CKINT(signature_domain_separation(
791789
&ctx->dilithium_hash_ctx, ctx->ml_dsa_internal,
792790
ctx->dilithium_prehash_type, ctx->userctx,
793-
ctx->userctxlen, m, mlen, ctx->randomizer,
794-
ctx->randomizerlen, LC_DILITHIUM_NIST_CATEGORY));
791+
ctx->userctxlen, m, mlen, ctx->composite_algorithm, LC_DILITHIUM_NIST_CATEGORY));
795792
}
796793

797794
ret = lc_dilithium_verify_avx2_internal(sig, pk, ctx);
@@ -841,8 +838,7 @@ LC_INTERFACE_FUNCTION(int, lc_dilithium_verify_init_avx2,
841838
CKINT(signature_domain_separation(
842839
&ctx->dilithium_hash_ctx, ctx->ml_dsa_internal,
843840
ctx->dilithium_prehash_type, ctx->userctx, ctx->userctxlen,
844-
NULL, 0, ctx->randomizer, ctx->randomizerlen,
845-
LC_DILITHIUM_NIST_CATEGORY));
841+
NULL, 0, ctx->composite_algorithm, LC_DILITHIUM_NIST_CATEGORY));
846842

847843
out:
848844
return ret;

0 commit comments

Comments
 (0)