Skip to content

Commit

Permalink
self check errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemas committed Mar 6, 2025
1 parent cf25ef4 commit bc64cd0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crypto/fipsmodule/self_check/self_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -2081,15 +2081,17 @@ static int boringssl_self_test_ml_dsa(void) {

if (!ml_dsa_44_sign_internal_no_self_test(private_key, signature, &sig_len, kMLDSASignPlaintext,
mlen_int, NULL, 0, kMLDSASigGenSeed) ||
!check_test(kMLDSASignSignature, signature, sizeof(signature), "ML-DSA SigGen signature")) {
!check_test(kMLDSASignSignature, signature, sizeof(signature), "ML-DSA-sign")) {
AWS_LC_FIPS_failure("ML-DSA-sign KAT failed.");
goto err;
}

// Verify
if (!ml_dsa_44_verify_internal_no_self_test(public_key, kMLDSASignSignature, sig_len, kMLDSASignPlaintext,
mlen_int, NULL, 0)) {
AWS_LC_FIPS_failure("ML-DSA-verify KAT failed.");
goto err;
}
}

ret = 1;
err:
Expand Down

0 comments on commit bc64cd0

Please sign in to comment.