/mcuboot-3.6.0/boot/bootutil/include/bootutil/crypto/ |
D | aes_ctr.h | 66 static inline int bootutil_aes_ctr_encrypt(bootutil_aes_ctr_context *ctx, uint8_t *counter, const u… in bootutil_aes_ctr_encrypt() argument 69 return mbedtls_aes_crypt_ctr(ctx, mlen, &blk_off, counter, stream_block, m, c); in bootutil_aes_ctr_encrypt() 72 static inline int bootutil_aes_ctr_decrypt(bootutil_aes_ctr_context *ctx, uint8_t *counter, const u… in bootutil_aes_ctr_decrypt() argument 75 return mbedtls_aes_crypt_ctr(ctx, clen, &blk_off, counter, stream_block, c, m); in bootutil_aes_ctr_decrypt() 101 static int _bootutil_aes_ctr_crypt(bootutil_aes_ctr_context *ctx, uint8_t *counter, const uint8_t *… in _bootutil_aes_ctr_crypt() argument 104 rc = tc_ctr_mode(out, inlen, in, inlen, counter, &blk_off, ctx); in _bootutil_aes_ctr_crypt() 111 static inline int bootutil_aes_ctr_encrypt(bootutil_aes_ctr_context *ctx, uint8_t *counter, const u… in bootutil_aes_ctr_encrypt() argument 113 return _bootutil_aes_ctr_crypt(ctx, counter, m, mlen, blk_off, c); in bootutil_aes_ctr_encrypt() 116 static inline int bootutil_aes_ctr_decrypt(bootutil_aes_ctr_context *ctx, uint8_t *counter, const u… in bootutil_aes_ctr_decrypt() argument 118 return _bootutil_aes_ctr_crypt(ctx, counter, c, clen, blk_off, m); in bootutil_aes_ctr_decrypt()
|
/mcuboot-3.6.0/sim/mcuboot-sys/csupport/ |
D | security_cnt.c | 27 uint32_t counter = 0; in boot_nv_security_counter_get() local 29 fih_rc = fih_ret_encode_zero_equality(sim_get_nv_counter_for_image(image_id, &counter)); in boot_nv_security_counter_get() 31 MCUBOOT_LOG_INF("Read security counter value (%d) for image: %d\n", counter, image_id); in boot_nv_security_counter_get() 32 *security_cnt = fih_int_encode(counter); in boot_nv_security_counter_get()
|
/mcuboot-3.6.0/boot/bootutil/src/ |
D | image_rsa.c | 90 uint8_t counter[4] = { 0, 0, 0, 0 }; in pss_mgf1() local 98 bootutil_sha_update(&ctx, counter, 4); in pss_mgf1() 101 counter[3]++; in pss_mgf1()
|
D | encrypted.c | 249 uint8_t counter; in hkdf() local 284 counter = 1; in hkdf() 286 for (off = 0; len > 0; off += BOOTUTIL_CRYPTO_SHA256_DIGEST_SIZE, ++counter) { in hkdf() 308 rc = bootutil_hmac_sha256_update(&hmac, &counter, 1); in hkdf() 438 uint8_t counter[BOOTUTIL_CRYPTO_AES_CTR_BLOCK_SIZE]; in boot_enc_decrypt() local 587 memset(counter, 0, BOOTUTIL_CRYPTO_AES_CTR_BLOCK_SIZE); in boot_enc_decrypt() 588 …rc = bootutil_aes_ctr_decrypt(&aes_ctr, counter, &buf[EC_CIPHERKEY_INDEX], BOOTUTIL_CRYPTO_AES_CTR… in boot_enc_decrypt()
|
/mcuboot-3.6.0/sim/mcuboot-sys/src/ |
D | c.rs | 70 counter: Option<&mut i32>, image_index: Option<i32>, in boot_go() 78 flash_counter: match counter { in boot_go() 104 if let Some(c) = counter { in boot_go()
|
/mcuboot-3.6.0/sim/src/ |
D | image.rs | 1418 let mut counter = stop.unwrap_or(0); in try_upgrade() localVariable 1422 Some(&mut counter), in try_upgrade() 1425 x if x.success() => (false, -counter), in try_upgrade() 1429 counter = 0; in try_upgrade() 1432 match c::boot_go(&mut flash, &self.areadesc, Some(&mut counter), in try_upgrade() 1440 (flash, count - counter) in try_upgrade() 1458 let mut counter = stop; in try_revert_with_fail_at() localVariable 1459 if !c::boot_go(&mut flash, &self.areadesc, Some(&mut counter), None, in try_revert_with_fail_at() 1499 let mut counter = stop; in try_revert_with_fail_at() localVariable 1500 if !c::boot_go(&mut flash, &self.areadesc, Some(&mut counter), None, in try_revert_with_fail_at() [all …]
|
/mcuboot-3.6.0/docs/ |
D | imgtool.md | 66 -s, --security-counter TEXT Specify the value of security counter. Use
|
D | PORTING.md | 174 …counter of the number of times a given flash area has been opened by MCUboot. The `flash_area_clos…
|
D | readme-espressif.md | 210 ### [Downgrade prevention with security counter](#downgrade-prevention-with-security-counter) 212 It is also possible to rely on a security counter, also added to the image when signing with 214 since any update must have greater or equal security counter value. Enable using the following 222 been signed using security counter `-s 1` or greater.
|
D | release-notes.md | 227 - Add rollback protection. There is support for a HW rollback counter
|
/mcuboot-3.6.0/boot/zephyr/ |
D | Kconfig | 641 bool "Use image security counter instead of version number" 645 Security counter is used for version eligibility check instead of pure 647 equal security counter value. 655 set, any upgrade must have greater or equal security counter value.
|