From c16033e0a3609a0efe7856e20da26030bc4dd905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 30 Apr 2021 11:59:40 +0200 Subject: [PATCH] Fix the encodings of the new key types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel Pégourié-Gonnard --- include/psa/crypto_values.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/psa/crypto_values.h b/include/psa/crypto_values.h index a3256f6144..fafd3ec350 100644 --- a/include/psa/crypto_values.h +++ b/include/psa/crypto_values.h @@ -441,14 +441,14 @@ * The key policy determines which key derivation algorithm the key can be * used for, among the permissible subset defined above. */ -#define PSA_KEY_TYPE_PASSWORD ((psa_key_type_t)0x1300) +#define PSA_KEY_TYPE_PASSWORD ((psa_key_type_t)0x1203) /** A secret value that can be used in when computing a password hash. * * The key policy determines which key derivation algorithm the key * can be used for, among the subset of algorithms that can use pepper. */ -#define PSA_KEY_TYPE_PEPPER ((psa_key_type_t)0x1400) +#define PSA_KEY_TYPE_PEPPER ((psa_key_type_t)0x1205) /** Key for a cipher, AEAD or MAC algorithm based on the AES block cipher. *