Skip to content

Commit

Permalink
switched comparison from dilithium to ML-DSA form validation
Browse files Browse the repository at this point in the history
feventura committed Mar 16, 2024
1 parent cba29fb commit 8d2386f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oqsprov/oqs_sig.c
Original file line number Diff line number Diff line change
@@ -443,6 +443,7 @@ static int oqs_sig_sign(void *vpoqs_sigctx, unsigned char *sig, size_t *siglen,
CompositeSignature_free(compsig);
goto endsign;
}
final_tbslen -= 1;
final_tbs = OPENSSL_malloc(final_tbslen);
composite_prefix_conversion(final_tbs, oid_prefix);
memcpy(final_tbs + COMPOSITE_OID_PREFIX_LEN / 2, tbs_hash,
@@ -772,6 +773,7 @@ static int oqs_sig_verify(void *vpoqs_sigctx, const unsigned char *sig,
CompositeSignature_free(compsig);
goto endverify;
}
final_tbslen -= 1;
final_tbs = OPENSSL_malloc(final_tbslen);
composite_prefix_conversion(final_tbs, oid_prefix);
memcpy(final_tbs + COMPOSITE_OID_PREFIX_LEN / 2, tbs_hash,

0 comments on commit 8d2386f

Please sign in to comment.