@@ -46,12 +46,12 @@ static const uint8_t ec_pubkey_oid[] = MBEDTLS_OID_ISO_IDENTIFIED_ORG \
46
46
/* Partitioning of HKDF derived material, from the exchange derived key */
47
47
/* AES key encryption key */
48
48
#define HKDF_AES_KEY_INDEX 0
49
- #define HKDF_ASE_KEY_SIZE (BOOT_ENC_KEY_SIZE)
49
+ #define HKDF_AES_KEY_SIZE (BOOT_ENC_KEY_SIZE)
50
50
/* MAC feed */
51
- #define HKDF_MAC_FEED_INDEX (HKDF_AES_KEY_INDEX + HKDF_ASE_KEY_SIZE )
51
+ #define HKDF_MAC_FEED_INDEX (HKDF_AES_KEY_INDEX + HKDF_AES_KEY_SIZE )
52
52
#define HKDF_MAC_FEED_SIZE (32) /* This is SHA independent */
53
53
/* Total size */
54
- #define HKDF_SIZE (HKDF_ASE_KEY_SIZE + HKDF_MAC_FEED_SIZE)
54
+ #define HKDF_SIZE (HKDF_AES_KEY_SIZE + HKDF_MAC_FEED_SIZE)
55
55
56
56
/* Fixme: This duplicates code from encrypted.c and depends on mbedtls */
57
57
static int
@@ -270,7 +270,7 @@ boot_decrypt_key(const uint8_t *buf, uint8_t *enckey)
270
270
271
271
/* Import the AES partition of derived key, the first 16 bytes */
272
272
psa_ret = psa_import_key (& kattr , & derived_key [HKDF_AES_KEY_INDEX ],
273
- HKDF_ASE_KEY_SIZE , & kid );
273
+ HKDF_AES_KEY_SIZE , & kid );
274
274
memset (derived_key , 0 , sizeof (derived_key ));
275
275
if (psa_ret != PSA_SUCCESS ) {
276
276
BOOT_LOG_ERR ("AES key import failed %d" , psa_ret );
0 commit comments