From f3870f72b6db8a30c6f039a2c2a667e54eca7234 Mon Sep 17 00:00:00 2001 From: Ron Eldor Date: Fri, 16 Dec 2016 17:23:36 +0200 Subject: [PATCH] fix for issue 1101: missing rsa context initialization added mbedtls_rsa_init in rsa_decrypt sample application --- programs/pkey/rsa_decrypt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/pkey/rsa_decrypt.c b/programs/pkey/rsa_decrypt.c index 1cc013dbd..b64e1564a 100644 --- a/programs/pkey/rsa_decrypt.c +++ b/programs/pkey/rsa_decrypt.c @@ -88,6 +88,7 @@ int main( int argc, char *argv[] ) mbedtls_printf( "\n . Seeding the random number generator..." ); fflush( stdout ); + mbedtls_rsa_init( &rsa, MBEDTLS_RSA_PKCS_V15, 0 ); mbedtls_ctr_drbg_init( &ctr_drbg ); mbedtls_entropy_init( &entropy );