From 017db4cddae4ce022f976b12bc89150c5cd688b8 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Tue, 13 Sep 2022 14:49:53 +0200 Subject: [PATCH] Drop calls to mbedtls_ecjpake_check() Signed-off-by: Neil Armstrong --- library/psa_crypto_pake.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/library/psa_crypto_pake.c b/library/psa_crypto_pake.c index 617187f10..83fcb4117 100644 --- a/library/psa_crypto_pake.c +++ b/library/psa_crypto_pake.c @@ -419,12 +419,6 @@ psa_status_t psa_pake_output( psa_pake_operation_t *operation, } } - if( operation->state >= PSA_PAKE_STATE_READY && - mbedtls_ecjpake_check( &operation->ctx.ecjpake ) != 0 ) - { - return( PSA_ERROR_BAD_STATE ); - } - if( operation->state != PSA_PAKE_STATE_READY && operation->state != PSA_PAKE_OUTPUT_X1_X2 && operation->state != PSA_PAKE_OUTPUT_X2S ) @@ -625,12 +619,6 @@ psa_status_t psa_pake_input( psa_pake_operation_t *operation, } } - if( operation->state >= PSA_PAKE_STATE_READY && - mbedtls_ecjpake_check( &operation->ctx.ecjpake ) != 0 ) - { - return( PSA_ERROR_BAD_STATE ); - } - if( operation->state != PSA_PAKE_STATE_READY && operation->state != PSA_PAKE_INPUT_X1_X2 && operation->state != PSA_PAKE_INPUT_X4S )