/mcuboot-3.4.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.4.0/sim/mcuboot-sys/src/ |
D | c.rs | 67 counter: Option<&mut i32>, image_index: Option<i32>, in boot_go() 73 flash_counter: match counter { in boot_go() 99 if let Some(c) = counter { in boot_go()
|
/mcuboot-3.4.0/boot/bootutil/src/ |
D | image_rsa.c | 134 uint8_t counter[4] = { 0, 0, 0, 0 }; in pss_mgf1() local 142 bootutil_sha256_update(&ctx, counter, 4); in pss_mgf1() 145 counter[3]++; in pss_mgf1()
|
D | encrypted.c | 322 uint8_t counter; in hkdf() local 357 counter = 1; in hkdf() 359 for (off = 0; len > 0; off += BOOTUTIL_CRYPTO_SHA256_DIGEST_SIZE, ++counter) { in hkdf() 381 rc = bootutil_hmac_sha256_update(&hmac, &counter, 1); in hkdf() 511 uint8_t counter[BOOTUTIL_CRYPTO_AES_CTR_BLOCK_SIZE]; in boot_enc_decrypt() local 666 memset(counter, 0, BOOTUTIL_CRYPTO_AES_CTR_BLOCK_SIZE); in boot_enc_decrypt() 667 …rc = bootutil_aes_ctr_decrypt(&aes_ctr, counter, &buf[EC_CIPHERKEY_INDEX], BOOTUTIL_CRYPTO_AES_CTR… in boot_enc_decrypt()
|
/mcuboot-3.4.0/sim/src/ |
D | image.rs | 1319 let mut counter = stop.unwrap_or(0); in try_upgrade() localVariable 1323 Some(&mut counter), in try_upgrade() 1326 x if x.success() => (false, -counter), in try_upgrade() 1330 counter = 0; in try_upgrade() 1333 match c::boot_go(&mut flash, &self.areadesc, Some(&mut counter), in try_upgrade() 1341 (flash, count - counter) in try_upgrade() 1359 let mut counter = stop; in try_revert_with_fail_at() localVariable 1360 if !c::boot_go(&mut flash, &self.areadesc, Some(&mut counter), None, in try_revert_with_fail_at() 1400 let mut counter = stop; in try_revert_with_fail_at() localVariable 1401 if !c::boot_go(&mut flash, &self.areadesc, Some(&mut counter), None, in try_revert_with_fail_at() [all …]
|
/mcuboot-3.4.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 | 148 ### [Downgrade prevention with security counter](#downgrade-prevention-with-security-counter) 150 …counter, also added to the image when signing with `imgtool` (`-s` parameter), apart from version … 156 …parameter, an eventual update image must have been signed using security counter `-s 1` or greater.
|
D | release-notes.md | 164 - Add rollback protection. There is support for a HW rollback counter
|
/mcuboot-3.4.0/boot/zephyr/ |
D | Kconfig | 549 bool "Use image security counter instead of version number" 553 Security counter is used for version eligibility check instead of pure 555 equal security counter value. 563 set, any upgrade must have greater or equal security counter value.
|