Searched refs:enc_state (Results 1 – 4 of 4) sorted by relevance
/mcuboot-latest/boot/bootutil/include/bootutil/ |
D | enc_key.h | 65 int boot_enc_init(struct enc_key_data *enc_state, uint8_t slot); 66 int boot_enc_drop(struct enc_key_data *enc_state, uint8_t slot); 67 int boot_enc_set_key(struct enc_key_data *enc_state, uint8_t slot, 69 int boot_enc_load(struct enc_key_data *enc_state, int slot, 72 bool boot_enc_valid(struct enc_key_data *enc_state, int slot); 73 void boot_enc_encrypt(struct enc_key_data *enc_state, int slot, 75 void boot_enc_decrypt(struct enc_key_data *enc_state, int slot, 77 void boot_enc_zeroize(struct enc_key_data *enc_state);
|
D | image.h | 196 fih_ret bootutil_img_validate(struct enc_key_data *enc_state, int image_index,
|
/mcuboot-latest/boot/bootutil/src/ |
D | encrypted.c | 355 boot_enc_init(struct enc_key_data *enc_state, uint8_t slot) in boot_enc_init() argument 357 bootutil_aes_ctr_init(&enc_state[slot].aes_ctr); in boot_enc_init() 362 boot_enc_drop(struct enc_key_data *enc_state, uint8_t slot) in boot_enc_drop() argument 364 bootutil_aes_ctr_drop(&enc_state[slot].aes_ctr); in boot_enc_drop() 365 enc_state[slot].valid = 0; in boot_enc_drop() 370 boot_enc_set_key(struct enc_key_data *enc_state, uint8_t slot, in boot_enc_set_key() argument 375 rc = bootutil_aes_ctr_set_key(&enc_state[slot].aes_ctr, bs->enckey[slot]); in boot_enc_set_key() 377 boot_enc_drop(enc_state, slot); in boot_enc_set_key() 381 enc_state[slot].valid = 1; in boot_enc_set_key() 635 boot_enc_load(struct enc_key_data *enc_state, int slot, in boot_enc_load() argument [all …]
|
D | image_validate.c | 65 bootutil_img_hash(struct enc_key_data *enc_state, int image_index, in bootutil_img_hash() argument 81 (void)enc_state; in bootutil_img_hash() 99 !boot_enc_valid(enc_state, 1)) { in bootutil_img_hash() 156 boot_enc_decrypt(enc_state, slot, off - hdr_size, in bootutil_img_hash() 385 bootutil_img_validate(struct enc_key_data *enc_state, int image_index, in bootutil_img_validate() argument 419 rc = bootutil_img_hash(enc_state, image_index, hdr, fap, tmp_buf, in bootutil_img_validate()
|