Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions wolfcrypt/src/wc_mldsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -9503,8 +9503,11 @@ static int mldsa_sign_with_seed_mu(wc_MlDsaKey* key,
byte* commit = sig;

/* Step 12: Compute vector y from private random seed and kappa. */
mldsa_vec_expand_mask(&key->shake, priv_rand_seed, kappa,
ret = mldsa_vec_expand_mask(&key->shake, priv_rand_seed, kappa,
params->gamma1_bits, y, params->l, key->heap);
if (ret != 0) {
break;
}
Comment on lines +9506 to +9510
#ifdef WOLFSSL_MLDSA_SIGN_CHECK_Y
valid = mldsa_vec_check_low(y, params->l,
((sword32)1 << params->gamma1_bits) - params->beta);
Expand Down Expand Up @@ -9802,8 +9805,11 @@ static int mldsa_sign_with_seed_mu(wc_MlDsaKey* key,

valid = 1;
/* Step 12: Compute vector y from private random seed and kappa. */
mldsa_vec_expand_mask(&key->shake, priv_rand_seed, kappa,
ret = mldsa_vec_expand_mask(&key->shake, priv_rand_seed, kappa,
params->gamma1_bits, y, params->l, key->heap);
if (ret != 0) {
break;
}
#ifdef WOLFSSL_MLDSA_SIGN_CHECK_Y
valid = mldsa_vec_check_low(y, params->l,
((sword32)1 << params->gamma1_bits) - params->beta);
Expand Down
Loading