mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 00:01:43 +00:00
correct ML-DSA-44 signature verification params
This commit is contained in:
1 parent
e3227ee5ee
commit
cd9427d5d5
1 file changed
+7
-1
@@ -254,7 +254,13 @@ namespace crypto
|
||||
EVP_SIGNATURE * sig = EVP_SIGNATURE_fetch (NULL, "ML-DSA-44", NULL);
|
||||
if (sig)
|
||||
{
|
||||
EVP_PKEY_verify_message_init (vctx, sig, MLDSAParams);
|
||||
int encode = 0;
|
||||
OSSL_PARAM params[] =
|
||||
{
|
||||
OSSL_PARAM_construct_int(OSSL_SIGNATURE_PARAM_MESSAGE_ENCODING, &encode),
|
||||
OSSL_PARAM_construct_end()
|
||||
};
|
||||
EVP_PKEY_verify_message_init (vctx, sig, params);
|
||||
ret = EVP_PKEY_verify (vctx, signature, GetSignatureLen (), buf, len);
|
||||
EVP_SIGNATURE_free (sig);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user