mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-05 19:35:48 +03:00
No need to check for state in psa_pake_setup()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
@@ -118,7 +118,7 @@ psa_status_t psa_pake_setup( psa_pake_operation_t *operation,
|
|||||||
const psa_pake_cipher_suite_t *cipher_suite)
|
const psa_pake_cipher_suite_t *cipher_suite)
|
||||||
{
|
{
|
||||||
/* A context must be freshly initialized before it can be set up. */
|
/* A context must be freshly initialized before it can be set up. */
|
||||||
if( operation->alg != 0 || operation->state != PSA_PAKE_STATE_INVALID )
|
if( operation->alg != 0 )
|
||||||
return( PSA_ERROR_BAD_STATE );
|
return( PSA_ERROR_BAD_STATE );
|
||||||
|
|
||||||
if( cipher_suite == NULL ||
|
if( cipher_suite == NULL ||
|
||||||
|
Reference in New Issue
Block a user