Skip to content

Commit

Permalink
crypto_signature_check to use RSA_SIG
Browse files Browse the repository at this point in the history
  • Loading branch information
jnippula committed Jan 13, 2025
1 parent 9f6f353 commit 094b59d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers/sw_crypto/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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.
Expand Down

0 comments on commit 094b59d

Please sign in to comment.