From bb1072f64296de6e13437f37227533f97f5c0dfa Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 8 Jun 2018 18:46:05 +0200 Subject: [PATCH] Fix use of mbedtls_cipher_info_from_psa One branch added an extra argument, the other branch added a call of this function. Pass the extra argument on the code from the other branch. --- library/psa_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 4d42c8d2b..e4f2a8722 100755 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -1411,7 +1411,7 @@ static psa_status_t psa_cipher_setup( psa_cipher_operation_t *operation, return( status ); slot = &global_data.key_slots[key]; - cipher_info = mbedtls_cipher_info_from_psa( alg, key_type, key_bits ); + cipher_info = mbedtls_cipher_info_from_psa( alg, key_type, key_bits, NULL ); if( cipher_info == NULL ) return( PSA_ERROR_NOT_SUPPORTED );