RSA: use MD_CAN macros
sed -i -f md.sed library/rsa.c tests/suites/test_suite_rsa* include/mbedtls/rsa.h tests/suites/test_suite_pkcs1_v* Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
fb8d90a2db
commit
c1f10441e0
4 changed files with 392 additions and 392 deletions
|
@ -2353,7 +2353,7 @@ int mbedtls_rsa_self_test(int verbose)
|
|||
unsigned char rsa_plaintext[PT_LEN];
|
||||
unsigned char rsa_decrypted[PT_LEN];
|
||||
unsigned char rsa_ciphertext[KEY_LEN];
|
||||
#if defined(MBEDTLS_SHA1_C)
|
||||
#if defined(MBEDTLS_MD_CAN_SHA1)
|
||||
unsigned char sha1sum[20];
|
||||
#endif
|
||||
|
||||
|
@ -2434,7 +2434,7 @@ int mbedtls_rsa_self_test(int verbose)
|
|||
mbedtls_printf("passed\n");
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_SHA1_C)
|
||||
#if defined(MBEDTLS_MD_CAN_SHA1)
|
||||
if (verbose != 0) {
|
||||
mbedtls_printf(" PKCS#1 data sign : ");
|
||||
}
|
||||
|
@ -2476,7 +2476,7 @@ int mbedtls_rsa_self_test(int verbose)
|
|||
if (verbose != 0) {
|
||||
mbedtls_printf("passed\n");
|
||||
}
|
||||
#endif /* MBEDTLS_SHA1_C */
|
||||
#endif /* MBEDTLS_MD_CAN_SHA1 */
|
||||
|
||||
if (verbose != 0) {
|
||||
mbedtls_printf("\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue