bootutil: encryption: Fix typo in PSA code
Typo in identifier.
Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
diff --git a/boot/bootutil/src/encrypted_psa.c b/boot/bootutil/src/encrypted_psa.c
index 663cf9d..313372f 100644
--- a/boot/bootutil/src/encrypted_psa.c
+++ b/boot/bootutil/src/encrypted_psa.c
@@ -46,12 +46,12 @@
/* Partitioning of HKDF derived material, from the exchange derived key */
/* AES key encryption key */
#define HKDF_AES_KEY_INDEX 0
-#define HKDF_ASE_KEY_SIZE (BOOT_ENC_KEY_SIZE)
+#define HKDF_AES_KEY_SIZE (BOOT_ENC_KEY_SIZE)
/* MAC feed */
-#define HKDF_MAC_FEED_INDEX (HKDF_AES_KEY_INDEX + HKDF_ASE_KEY_SIZE)
+#define HKDF_MAC_FEED_INDEX (HKDF_AES_KEY_INDEX + HKDF_AES_KEY_SIZE)
#define HKDF_MAC_FEED_SIZE (32) /* This is SHA independent */
/* Total size */
-#define HKDF_SIZE (HKDF_ASE_KEY_SIZE + HKDF_MAC_FEED_SIZE)
+#define HKDF_SIZE (HKDF_AES_KEY_SIZE + HKDF_MAC_FEED_SIZE)
/* Fixme: This duplicates code from encrypted.c and depends on mbedtls */
static int
@@ -270,7 +270,7 @@
/* Import the AES partition of derived key, the first 16 bytes */
psa_ret = psa_import_key(&kattr, &derived_key[HKDF_AES_KEY_INDEX],
- HKDF_ASE_KEY_SIZE, &kid);
+ HKDF_AES_KEY_SIZE, &kid);
memset(derived_key, 0, sizeof(derived_key));
if (psa_ret != PSA_SUCCESS) {
BOOT_LOG_ERR("AES key import failed %d", psa_ret);