Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 11 of 11) sorted by relevance

/mcuboot-3.6.0/boot/bootutil/include/bootutil/crypto/
Daes_ctr.h66 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/
Dsecurity_cnt.c27 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/
Dimage_rsa.c90 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()
Dencrypted.c249 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/
Dc.rs70 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/
Dimage.rs1418 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/
Dimgtool.md66 -s, --security-counter TEXT Specify the value of security counter. Use
DPORTING.md174counter of the number of times a given flash area has been opened by MCUboot. The `flash_area_clos…
Dreadme-espressif.md210 ### [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.
Drelease-notes.md227 - Add rollback protection. There is support for a HW rollback counter
/mcuboot-3.6.0/boot/zephyr/
DKconfig641 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.