From 094b59d1e3f5a9ec584c32034681df5a223de503 Mon Sep 17 00:00:00 2001 From: Jari Nippula Date: Mon, 13 Jan 2025 15:13:01 +0200 Subject: [PATCH] crypto_signature_check to use RSA_SIG --- src/drivers/sw_crypto/crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/sw_crypto/crypto.c b/src/drivers/sw_crypto/crypto.c index f7973671da9c..f528ebc45000 100644 --- a/src/drivers/sw_crypto/crypto.c +++ b/src/drivers/sw_crypto/crypto.c @@ -322,7 +322,7 @@ bool crypto_signature_check(crypto_session_handle_t handle, break; - case CRYPTO_RSA_OAEP: { + case CRYPTO_RSA_SIG: { rsa_key key; initialize_tomcrypt(); @@ -345,7 +345,7 @@ bool crypto_signature_check(crypto_session_handle_t handle, hash_desc->done(&md, hash); // Define padding scheme. - const int padding = LTC_PKCS_1_OAEP; + const int padding = LTC_PKCS_1_V1_5; const unsigned long saltlen = 0; // Verify signature.