Gnuk specific change to rsa

This commit is contained in:
NIIBE Yutaka
2013-03-19 14:38:12 +09:00
parent c6bee6ee50
commit bccc17e23c
2 changed files with 4 additions and 2 deletions

View File

@@ -156,8 +156,8 @@ rsa_decrypt (const uint8_t *input, uint8_t *output, int msg_len,
DEBUG_INFO ("RSA decrypt ...");
r = rsa_pkcs1_decrypt (&rsa_ctx, RSA_PRIVATE, &output_len,
input, output, MAX_RES_APDU_DATA_SIZE);
r = rsa_rsaes_pkcs1_v15_decrypt (&rsa_ctx, RSA_PRIVATE, &output_len,
input, output, MAX_RES_APDU_DATA_SIZE);
rsa_free (&rsa_ctx);
if (r < 0)
{