psa_tls12_prf_set_key(): add PSA_TLS12_PRF_STATE_OTHER_KEY_SET as a valid state
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
parent
a7695a2d76
commit
d7a28646bc
1 changed files with 2 additions and 1 deletions
|
@ -5208,7 +5208,8 @@ static psa_status_t psa_tls12_prf_set_key( psa_tls12_prf_key_derivation_t *prf,
|
|||
const uint8_t *data,
|
||||
size_t data_length )
|
||||
{
|
||||
if( prf->state != PSA_TLS12_PRF_STATE_SEED_SET )
|
||||
if( prf->state != PSA_TLS12_PRF_STATE_SEED_SET &&
|
||||
prf->state != PSA_TLS12_PRF_STATE_OTHER_KEY_SET )
|
||||
return( PSA_ERROR_BAD_STATE );
|
||||
|
||||
if( data_length != 0 )
|
||||
|
|
Loading…
Reference in a new issue