added key_type parameter to asymmetric operations because the accelerator need this info

This commit is contained in:
Derek Miller 2019-02-15 17:15:54 -06:00
parent 34b33f198b
commit 6aaa4fd73b

View File

@ -656,6 +656,7 @@ typedef psa_status_t (*psa_drv_accel_aead_decrypt_t)(const uint8_t *p_key,
typedef psa_status_t (*psa_drv_accel_asymmetric_sign_t)(const uint8_t *p_key, typedef psa_status_t (*psa_drv_accel_asymmetric_sign_t)(const uint8_t *p_key,
size_t key_size, size_t key_size,
psa_algorithm_t alg, psa_algorithm_t alg,
psa_key_type_t key_type,
const uint8_t *p_hash, const uint8_t *p_hash,
size_t hash_length, size_t hash_length,
uint8_t *p_signature, uint8_t *p_signature,
@ -689,6 +690,7 @@ typedef psa_status_t (*psa_drv_accel_asymmetric_sign_t)(const uint8_t *p_key,
typedef psa_status_t (*psa_drv_accel_asymmetric_verify_t)(const uint8_t *p_key, typedef psa_status_t (*psa_drv_accel_asymmetric_verify_t)(const uint8_t *p_key,
size_t key_size, size_t key_size,
psa_algorithm_t alg, psa_algorithm_t alg,
psa_key_type_t key_type,
const uint8_t *p_hash, const uint8_t *p_hash,
size_t hash_length, size_t hash_length,
const uint8_t *p_signature, const uint8_t *p_signature,
@ -733,6 +735,7 @@ typedef psa_status_t (*psa_drv_accel_asymmetric_verify_t)(const uint8_t *p_key,
typedef psa_status_t (*psa_drv_accel_asymmetric_encrypt_t)(const uint8_t *p_key, typedef psa_status_t (*psa_drv_accel_asymmetric_encrypt_t)(const uint8_t *p_key,
size_t key_size, size_t key_size,
psa_algorithm_t alg, psa_algorithm_t alg,
psa_key_type_t key_type,
const uint8_t *p_input, const uint8_t *p_input,
size_t input_length, size_t input_length,
const uint8_t *p_salt, const uint8_t *p_salt,
@ -779,6 +782,7 @@ typedef psa_status_t (*psa_drv_accel_asymmetric_encrypt_t)(const uint8_t *p_key,
typedef psa_status_t (*psa_drv_accel_asymmetric_decrypt_t)(const uint8_t *p_key, typedef psa_status_t (*psa_drv_accel_asymmetric_decrypt_t)(const uint8_t *p_key,
size_t key_size, size_t key_size,
psa_algorithm_t alg, psa_algorithm_t alg,
psa_key_type_t key_type,
const uint8_t *p_input, const uint8_t *p_input,
size_t input_length, size_t input_length,
const uint8_t *p_salt, const uint8_t *p_salt,