From 8800136156816ac3d0313751eb6942a73fede607 Mon Sep 17 00:00:00 2001 From: Darryl Green Date: Thu, 26 Jul 2018 13:59:04 +0100 Subject: [PATCH] Fix key parameter in psa_key_derivation to use correct type --- include/psa/crypto.h | 2 +- library/psa_crypto.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/psa/crypto.h b/include/psa/crypto.h index 0ba34929b..9f0b13541 100644 --- a/include/psa/crypto.h +++ b/include/psa/crypto.h @@ -2724,7 +2724,7 @@ psa_status_t psa_generator_abort(psa_crypto_generator_t *generator); * \retval #PSA_ERROR_TAMPERING_DETECTED */ psa_status_t psa_key_derivation(psa_crypto_generator_t *generator, - psa_key_type_t key, + psa_key_slot_t key, psa_algorithm_t alg, const uint8_t *salt, size_t salt_length, diff --git a/library/psa_crypto.c b/library/psa_crypto.c index a62fac7b1..210fa5ff4 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -3257,7 +3257,7 @@ static psa_status_t psa_generator_hkdf_setup( psa_hkdf_generator_t *hkdf, } psa_status_t psa_key_derivation( psa_crypto_generator_t *generator, - psa_key_type_t key, + psa_key_slot_t key, psa_algorithm_t alg, const uint8_t *salt, size_t salt_length,