Searched refs:enckey (Results 1 – 8 of 8) sorted by relevance
/mcuboot-latest/scripts/imgtool/ |
D | image.py | 275 self.enckey = None 380 self.enckey, 410 self.overwrite_only, self.enckey, 419 def ecies_hkdf(self, enckey, plainkey): argument 420 if isinstance(enckey, ecdsa.ECDSA256P1Public): 422 shared = newpk.exchange(ec.ECDH(), enckey._get_public()) 425 shared = newpk.exchange(enckey._get_public()) 437 if isinstance(enckey, ecdsa.ECDSA256P1Public): 447 def create(self, key, public_key_format, enckey, dependencies=None, argument 451 self.enckey = enckey [all …]
|
D | main.py | 462 enckey = load_key(encrypt) if encrypt else None 463 if enckey and key: 465 not isinstance(enckey, keys.ECDSA256P1Public)) 467 not isinstance(enckey, keys.ECDSA384P1Public)) 469 not isinstance(enckey, keys.RSAPublic))): 512 img.create(key, public_key_format, enckey, dependencies, boot_record, 552 compressed_img.create(key, public_key_format, enckey,
|
/mcuboot-latest/boot/bootutil/src/ |
D | encrypted.c | 70 key_unwrap(const uint8_t *wrapped, uint8_t *enckey, struct bootutil_key *bootutil_enc_key) in key_unwrap() argument 80 rc = bootutil_aes_kw_unwrap(&aes_kw, wrapped, TLV_ENC_KW_SZ, enckey, BOOT_ENC_KEY_SIZE); in key_unwrap() 375 rc = bootutil_aes_ctr_set_key(&enc_state[slot].aes_ctr, bs->enckey[slot]); in boot_enc_set_key() 433 boot_decrypt_key(const uint8_t *buf, uint8_t *enckey) in boot_decrypt_key() argument 484 rc = bootutil_rsa_oaep_decrypt(&rsa, &olen, buf, enckey, BOOT_ENC_KEY_SIZE); in boot_decrypt_key() 495 rc = key_unwrap(buf, enckey, bootutil_enc_key); in boot_decrypt_key() 616 …_decrypt(&aes_ctr, counter, &buf[EC_CIPHERKEY_INDEX], BOOTUTIL_CRYPTO_AES_CTR_KEY_SIZE, 0, enckey); in boot_decrypt_key() 681 return boot_decrypt_key(buf, bs->enckey[slot]); in boot_enc_load()
|
D | bootutil_misc.c | 286 rc = boot_decrypt_key(bs->enctlv[slot], bs->enckey[slot]); in boot_read_enc_key() 290 rc = flash_area_read(fap, off, bs->enckey[slot], BOOT_ENC_KEY_ALIGN_SIZE); in boot_read_enc_key() 324 rc = flash_area_write(fap, off, bs->enckey[slot], BOOT_ENC_KEY_ALIGN_SIZE); in boot_write_enc_key()
|
D | bootutil_priv.h | 94 uint8_t enckey[BOOT_NUM_SLOTS][BOOT_ENC_KEY_ALIGN_SIZE]; member
|
D | loader.c | 731 memset(&bs->enckey, 0xff, BOOT_NUM_SLOTS * BOOT_ENC_KEY_ALIGN_SIZE); in boot_status_reset() 1642 memset(bs->enckey[0], 0xff, BOOT_ENC_KEY_ALIGN_SIZE); 1666 memset(bs->enckey[1], 0xff, BOOT_ENC_KEY_ALIGN_SIZE); 1694 if (bs->enckey[slot][i] != 0xff) {
|
/mcuboot-latest/boot/bootutil/include/bootutil/ |
D | enc_key.h | 63 int boot_decrypt_key(const uint8_t *buf, uint8_t *enckey);
|
/mcuboot-latest/boot/zephyr/ |
D | CMakeLists.txt | 336 set(GENERATED_ENCKEY ${ZEPHYR_BINARY_DIR}/autogen-enckey.c)
|