| /mcuboot-latest/boot/bootutil/include/bootutil/crypto/ |
| D | aes_ctr.h | 64 static inline int bootutil_aes_ctr_encrypt(bootutil_aes_ctr_context *ctx, uint8_t *counter, const u… in bootutil_aes_ctr_encrypt() argument 67 return mbedtls_aes_crypt_ctr(ctx, mlen, &blk_off, counter, stream_block, m, c); in bootutil_aes_ctr_encrypt() 70 static inline int bootutil_aes_ctr_decrypt(bootutil_aes_ctr_context *ctx, uint8_t *counter, const u… in bootutil_aes_ctr_decrypt() argument 73 return mbedtls_aes_crypt_ctr(ctx, clen, &blk_off, counter, stream_block, c, m); in bootutil_aes_ctr_decrypt() 99 static int _bootutil_aes_ctr_crypt(bootutil_aes_ctr_context *ctx, uint8_t *counter, const uint8_t *… in _bootutil_aes_ctr_crypt() argument 102 rc = tc_ctr_mode(out, inlen, in, inlen, counter, &blk_off, ctx); in _bootutil_aes_ctr_crypt() 109 static inline int bootutil_aes_ctr_encrypt(bootutil_aes_ctr_context *ctx, uint8_t *counter, const u… in bootutil_aes_ctr_encrypt() argument 111 return _bootutil_aes_ctr_crypt(ctx, counter, m, mlen, blk_off, c); in bootutil_aes_ctr_encrypt() 114 static inline int bootutil_aes_ctr_decrypt(bootutil_aes_ctr_context *ctx, uint8_t *counter, const u… in bootutil_aes_ctr_decrypt() argument 116 return _bootutil_aes_ctr_crypt(ctx, counter, c, clen, blk_off, m); in bootutil_aes_ctr_decrypt()
|
| /mcuboot-latest/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-latest/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 286 counter = 1; in hkdf() 288 for (off = 0; len > 0; off += BOOTUTIL_CRYPTO_SHA256_DIGEST_SIZE, ++counter) { in hkdf() 310 rc = bootutil_hmac_sha256_update(&hmac, &counter, 1); in hkdf() 456 uint8_t counter[BOOTUTIL_CRYPTO_AES_CTR_BLOCK_SIZE]; in boot_decrypt_key() local 615 memset(counter, 0, BOOTUTIL_CRYPTO_AES_CTR_BLOCK_SIZE); in boot_decrypt_key() 616 …rc = bootutil_aes_ctr_decrypt(&aes_ctr, counter, &buf[EC_CIPHERKEY_INDEX], BOOTUTIL_CRYPTO_AES_CTR… in boot_decrypt_key()
|
| /mcuboot-latest/sim/mcuboot-sys/src/ |
| D | c.rs | 72 counter: Option<&mut i32>, image_index: Option<i32>, in boot_go() 80 flash_counter: match counter { in boot_go() 105 if let Some(c) = counter { in boot_go()
|
| /mcuboot-latest/sim/src/ |
| D | image.rs | 1436 let mut counter = stop.unwrap_or(0); in try_upgrade() localVariable 1440 Some(&mut counter), in try_upgrade() 1443 x if x.success() => (false, -counter), in try_upgrade() 1447 counter = 0; in try_upgrade() 1450 match c::boot_go(&mut flash, &self.areadesc, Some(&mut counter), in try_upgrade() 1458 (flash, count - counter) in try_upgrade() 1476 let mut counter = stop; in try_revert_with_fail_at() localVariable 1477 if !c::boot_go(&mut flash, &self.areadesc, Some(&mut counter), None, in try_revert_with_fail_at() 1517 let mut counter = stop; in try_revert_with_fail_at() localVariable 1518 if !c::boot_go(&mut flash, &self.areadesc, Some(&mut counter), None, in try_revert_with_fail_at() [all …]
|
| /mcuboot-latest/docs/ |
| D | PORTING.md | 174 …counter of the number of times a given flash area has been opened by MCUboot. The `flash_area_clos…
|
| D | imgtool.md | 90 -s, --security-counter TEXT Specify the value of security counter. Use
|
| D | readme-espressif.md | 214 ### [Downgrade prevention with security counter](#downgrade-prevention-with-security-counter) 216 It is also possible to rely on a security counter, also added to the image when signing with 218 since any update must have greater or equal security counter value. Enable using the following 226 been signed using security counter `-s 1` or greater.
|
| D | release-notes.md | 281 - Add rollback protection. There is support for a HW rollback counter
|
| /mcuboot-latest/boot/zephyr/ |
| D | Kconfig | 822 bool "Use image security counter instead of version number" 826 Security counter is used for version eligibility check instead of pure 828 equal security counter value. 836 set, any upgrade must have greater or equal security counter value.
|