From 95893f834de554f7a5e04aba000cc799a74e2207 Mon Sep 17 00:00:00 2001 From: mohammad1603 Date: Sun, 3 Jun 2018 15:06:17 +0300 Subject: [PATCH] remove usless cast --- 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 1123a78c1..eadd42890 100755 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -1521,7 +1521,7 @@ psa_status_t psa_aead_encrypt( psa_key_slot_t key, mbedtls_gcm_context gcm; mbedtls_gcm_init( &gcm ); ret = mbedtls_gcm_setkey( &gcm, cipher_id, - ( const unsigned char * )slot->data.raw.data, + slot->data.raw.data, key_bits ); if( ret != 0 ) {