Skip to content

Commit dbebfc6

Browse files
mkannwischerhanno-becker
authored andcommitted
Add missing zeroization to crypto_sign_verify_internal
Signed-off-by: Matthias J. Kannwischer <[email protected]>
1 parent 674b8bc commit dbebfc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mldsa/src/sign.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,11 +827,12 @@ int crypto_sign_verify_internal(const uint8_t *sig, size_t siglen,
827827
mld_zeroize(c, sizeof(c));
828828
mld_zeroize(c2, sizeof(c2));
829829
mld_zeroize(&cp, sizeof(cp));
830+
mld_zeroize(mat, sizeof(mat));
830831
mld_zeroize(&z, sizeof(z));
832+
mld_zeroize(&t1, sizeof(t1));
831833
mld_zeroize(&w1, sizeof(w1));
832834
mld_zeroize(&tmp, sizeof(tmp));
833835
mld_zeroize(&h, sizeof(h));
834-
mld_zeroize(mat, sizeof(mat));
835836
return res;
836837
}
837838

0 commit comments

Comments
 (0)