Home
last modified time | relevance | path

Searched refs:derived_key (Results 1 – 3 of 3) sorted by relevance

/mcuboot-2.7.6/boot/bootutil/src/
Dencrypted.c480 uint8_t derived_key[BOOTUTIL_CRYPTO_AES_CTR_KEY_SIZE + BOOTUTIL_CRYPTO_SHA256_DIGEST_SIZE]; in boot_enc_decrypt() local
578 derived_key, &len); in boot_enc_decrypt()
589 rc = bootutil_hmac_sha256_set_key(&hmac, &derived_key[BOOT_ENC_KEY_SIZE], 32); in boot_enc_decrypt()
625 rc = bootutil_aes_ctr_set_key(&aes_ctr, derived_key); in boot_enc_decrypt()
/mcuboot-2.7.6/sim/src/
Dtlv.rs595 let derived_key = match agreement::agree_ephemeral( in make_tlv() localVariable
618 let key: &GenericArray<u8, U32> = GenericArray::from_slice(&derived_key[..32]); in make_tlv()
622 let key: &GenericArray<u8, U16> = GenericArray::from_slice(&derived_key[..16]); in make_tlv()
628 let key = hmac::Key::new(hmac::HMAC_SHA256, &derived_key[size..]); in make_tlv()
/mcuboot-2.7.6/scripts/imgtool/
Dimage.py270 derived_key = HKDF(
273 encryptor = Cipher(algorithms.AES(derived_key[:16]),
277 mac = hmac.HMAC(derived_key[16:], hashes.SHA256(),