@@ -46,12 +46,12 @@ static const uint8_t ec_pubkey_oid[] = MBEDTLS_OID_ISO_IDENTIFIED_ORG \
4646/* Partitioning of HKDF derived material, from the exchange derived key */
4747/* AES key encryption key */
4848#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)
5050/* 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 )
5252#define HKDF_MAC_FEED_SIZE (32) /* This is SHA independent */
5353/* 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)
5555
5656/* Fixme: This duplicates code from encrypted.c and depends on mbedtls */
5757static int
@@ -270,7 +270,7 @@ boot_decrypt_key(const uint8_t *buf, uint8_t *enckey)
270270
271271 /* Import the AES partition of derived key, the first 16 bytes */
272272 psa_ret = psa_import_key (& kattr , & derived_key [HKDF_AES_KEY_INDEX ],
273- HKDF_ASE_KEY_SIZE , & kid );
273+ HKDF_AES_KEY_SIZE , & kid );
274274 memset (derived_key , 0 , sizeof (derived_key ));
275275 if (psa_ret != PSA_SUCCESS ) {
276276 BOOT_LOG_ERR ("AES key import failed %d" , psa_ret );
0 commit comments