Home
last modified time | relevance | path

Searched refs:BOOT_CURR_ENC (Results 1 – 6 of 6) sorted by relevance

/mcuboot-latest/boot/boot_serial/src/
Dboot_serial_encryption.c49 rc = boot_enc_set_key(BOOT_CURR_ENC(state), 1, bs); in boot_image_validate_encrypted()
186 boot_enc_decrypt(BOOT_CURR_ENC(state), slot, in decrypt_region_inplace()
260 if (rc == 0 && boot_enc_set_key(BOOT_CURR_ENC(state), 0, bs)) { in decrypt_image_inplace()
/mcuboot-latest/boot/bootutil/src/
Dram_load.c162 if (rc == 0 && boot_enc_set_key(BOOT_CURR_ENC(state), slot, &bs)) { in boot_decrypt_and_copy_image_to_sram()
183 boot_enc_decrypt(BOOT_CURR_ENC(state), slot, in boot_decrypt_and_copy_image_to_sram()
Dbootutil_priv.h403 #define BOOT_CURR_ENC(state) ((state)->enc[BOOT_CURR_IMG(state)]) macro
405 #define BOOT_CURR_ENC(state) NULL macro
Dloader.c808 if (rc == 0 && boot_enc_set_key(BOOT_CURR_ENC(state), 1, bs)) { in boot_image_check()
1431 boot_enc_encrypt(BOOT_CURR_ENC(state), source_slot,
1435 boot_enc_decrypt(BOOT_CURR_ENC(state), source_slot,
1557 if (rc == 0 && boot_enc_set_key(BOOT_CURR_ENC(state), 1, bs)) {
1686 rc = boot_enc_set_key(BOOT_CURR_ENC(state), 0, bs);
1714 rc = boot_enc_set_key(BOOT_CURR_ENC(state), 1, bs);
1753 boot_enc_init(BOOT_CURR_ENC(state), slot);
1756 boot_enc_set_key(BOOT_CURR_ENC(state), slot, bs);
2300 boot_enc_zeroize(BOOT_CURR_ENC(state));
2394 boot_enc_zeroize(BOOT_CURR_ENC(state));
Dimage_validate.c116 enc_state = BOOT_CURR_ENC(state); in bootutil_img_hash()
Dencrypted.c643 struct enc_key_data *enc_state = BOOT_CURR_ENC(state); in boot_enc_load()