From 4f594eca401edce71e599bbc28e22f8d177138db Mon Sep 17 00:00:00 2001 From: Nir Sonnenschein Date: Tue, 29 May 2018 16:09:13 +0300 Subject: [PATCH] remove check for key pair (public key should be enough for verification) --- library/psa_crypto.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index e24638a3a..05df3e32f 100755 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -1371,8 +1371,6 @@ psa_status_t psa_asymmetric_verify(psa_key_slot_t key, slot = &global_data.key_slots[key]; if( slot->type == PSA_KEY_TYPE_NONE ) return( PSA_ERROR_EMPTY_SLOT ); - if( ! PSA_KEY_TYPE_IS_KEYPAIR( slot->type ) ) - return( PSA_ERROR_INVALID_ARGUMENT ); #if defined(MBEDTLS_RSA_C) if( slot->type == PSA_KEY_TYPE_RSA_KEYPAIR )