Home
last modified time | relevance | path

Searched refs:enckey (Results 1 – 8 of 8) sorted by relevance

/mcuboot-3.6.0/scripts/imgtool/
Dimage.py165 self.enckey = None
251 self.enckey,
281 self.overwrite_only, self.enckey,
290 def ecies_hkdf(self, enckey, plainkey): argument
291 if isinstance(enckey, ecdsa.ECDSA256P1Public):
293 shared = newpk.exchange(ec.ECDH(), enckey._get_public())
296 shared = newpk.exchange(enckey._get_public())
308 if isinstance(enckey, ecdsa.ECDSA256P1Public):
318 def create(self, key, public_key_format, enckey, dependencies=None, argument
321 self.enckey = enckey
[all …]
Dmain.py426 enckey = load_key(encrypt) if encrypt else None
427 if enckey and key:
429 not isinstance(enckey, keys.ECDSA256P1Public))
431 not isinstance(enckey, keys.ECDSA384P1Public))
433 not isinstance(enckey, keys.RSAPublic))):
476 img.create(key, public_key_format, enckey, dependencies, boot_record,
/mcuboot-3.6.0/boot/bootutil/src/
Dencrypted.c70 key_unwrap(const uint8_t *wrapped, uint8_t *enckey) 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()
356 rc = bootutil_aes_ctr_set_key(&enc_state[slot].aes_ctr, bs->enckey[slot]); in boot_enc_set_key()
415 boot_enc_decrypt(const uint8_t *buf, uint8_t *enckey) in boot_enc_decrypt() argument
456 rc = bootutil_rsa_oaep_decrypt(&rsa, &olen, buf, enckey, BOOT_ENC_KEY_SIZE); in boot_enc_decrypt()
467 rc = key_unwrap(buf, enckey); in boot_enc_decrypt()
588 …_decrypt(&aes_ctr, counter, &buf[EC_CIPHERKEY_INDEX], BOOTUTIL_CRYPTO_AES_CTR_KEY_SIZE, 0, enckey); in boot_enc_decrypt()
660 return boot_enc_decrypt(buf, bs->enckey[slot]); in boot_enc_load()
Dbootutil_misc.c286 rc = boot_enc_decrypt(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()
Dbootutil_priv.h88 uint8_t enckey[BOOT_NUM_SLOTS][BOOT_ENC_KEY_ALIGN_SIZE]; member
Dloader.c400 memset(&bs->enckey, 0xff, BOOT_NUM_SLOTS * BOOT_ENC_KEY_ALIGN_SIZE); in boot_status_reset()
1306 memset(bs->enckey[0], 0xff, BOOT_ENC_KEY_ALIGN_SIZE); in boot_swap_image()
1330 memset(bs->enckey[1], 0xff, BOOT_ENC_KEY_ALIGN_SIZE); in boot_swap_image()
1358 if (bs->enckey[slot][i] != 0xff) { in boot_swap_image()
/mcuboot-3.6.0/boot/bootutil/include/bootutil/
Denc_key.h58 int boot_enc_decrypt(const uint8_t *buf, uint8_t *enckey);
/mcuboot-3.6.0/boot/zephyr/
DCMakeLists.txt340 set(GENERATED_ENCKEY ${ZEPHYR_BINARY_DIR}/autogen-enckey.c)