Remove redundant code
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
parent
3f9dbac83f
commit
be5e27b5ad
1 changed files with 0 additions and 7 deletions
|
@ -7196,7 +7196,6 @@ psa_status_t psa_pake_setup(
|
|||
return PSA_ERROR_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
;
|
||||
memset(&operation->data.inputs, 0, sizeof(operation->data.inputs));
|
||||
|
||||
operation->data.inputs.alg = cipher_suite->algorithm;
|
||||
|
@ -7233,7 +7232,6 @@ psa_status_t psa_pake_set_password_key(
|
|||
};
|
||||
|
||||
psa_key_type_t type = psa_get_key_type(&attributes);
|
||||
psa_key_usage_t usage = psa_get_key_usage_flags(&attributes);
|
||||
|
||||
if (type != PSA_KEY_TYPE_PASSWORD &&
|
||||
type != PSA_KEY_TYPE_PASSWORD_HASH) {
|
||||
|
@ -7241,11 +7239,6 @@ psa_status_t psa_pake_set_password_key(
|
|||
goto error;
|
||||
}
|
||||
|
||||
if ((usage & PSA_KEY_USAGE_DERIVE) == 0) {
|
||||
status = PSA_ERROR_NOT_PERMITTED;
|
||||
goto error;
|
||||
}
|
||||
|
||||
operation->data.inputs.password = mbedtls_calloc(1, slot->key.bytes);
|
||||
if (operation->data.inputs.password == NULL) {
|
||||
return PSA_ERROR_INSUFFICIENT_MEMORY;
|
||||
|
|
Loading…
Reference in a new issue