mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-01 10:06:53 +03:00
Change pake input: key_lifetime -> key attributes
In the future key attributes will be available for opaque driver via psa_crypto_driver_pake_get_password_key(). Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com> Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
@ -7306,7 +7306,7 @@ psa_status_t psa_pake_set_password_key(
|
||||
|
||||
memcpy(operation->data.inputs.password, slot->key.data, slot->key.bytes);
|
||||
operation->data.inputs.password_len = slot->key.bytes;
|
||||
operation->data.inputs.key_lifetime = attributes.core.lifetime;
|
||||
operation->data.inputs.attributes = attributes;
|
||||
error:
|
||||
unlock_status = psa_unlock_key_slot(slot);
|
||||
return (status == PSA_SUCCESS) ? unlock_status : status;
|
||||
|
Reference in New Issue
Block a user