mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-05 19:35:48 +03:00
Use operation alg for locking key slot
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
@@ -7281,7 +7281,7 @@ psa_status_t psa_pake_set_password_key(
|
|||||||
|
|
||||||
status = psa_get_and_lock_key_slot_with_policy(password, &slot,
|
status = psa_get_and_lock_key_slot_with_policy(password, &slot,
|
||||||
PSA_KEY_USAGE_DERIVE,
|
PSA_KEY_USAGE_DERIVE,
|
||||||
PSA_ALG_JPAKE);
|
operation->alg);
|
||||||
if (status != PSA_SUCCESS) {
|
if (status != PSA_SUCCESS) {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user