Skip to content

Commit 5343949

Browse files
committed
Fix pkparse bug wrt MBEDTLS_RSA_ALT
Some code paths want to access members of the mbedtls_rsa_context structure. We can only do that when using our own implementation, as otherwise we don't know anything about that structure.
1 parent 61abc47 commit 5343949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/pkparse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ static int pk_parse_key_pkcs1_der( mbedtls_rsa_context *rsa,
785785
NULL, NULL ) ) != 0 )
786786
goto cleanup;
787787

788-
#if !defined(MBEDTLS_RSA_NO_CRT)
788+
#if !defined(MBEDTLS_RSA_NO_CRT) && !defined(MBEDTLS_RSA_ALT)
789789
/*
790790
* The RSA CRT parameters DP, DQ and QP are nominally redundant, in
791791
* that they can be easily recomputed from D, P and Q. However by

0 commit comments

Comments
 (0)