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

@@ -711,6 +711,7 @@ int rsa_rsaes_pkcs1_v15_decrypt( rsa_context *ctx,
return( 0 );
}
#if 0
/*
* Do an RSA operation, then remove the message padding
*/
@@ -736,6 +737,7 @@ int rsa_pkcs1_decrypt( rsa_context *ctx,
return( POLARSSL_ERR_RSA_INVALID_PADDING );
}
}
#endif
#if defined(POLARSSL_PKCS1_V21)
/*

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)
{