/trusted-firmware-m-3.6.0/platform/ext/target/arm/drivers/flash/strata/ |
D | spi_strataflashj3_flash_lib.c | 39 for(uint32_t counter = 0; in cfi_strataflashj3_erase_chip() local 40 counter < FLASH_END_ADDRESS_8MB; in cfi_strataflashj3_erase_chip() 41 counter += FLASH_SECTOR_ERASE_SIZE) in cfi_strataflashj3_erase_chip() 43 ret = nor_erase(base_addr+counter); in cfi_strataflashj3_erase_chip() 58 for(int counter = 0;counter<ERASE_BLOCK_SIZE;counter++){ in erase_block() local 59 ret = nor_byte_program(base_addr+addr+counter,0xFF); in erase_block() 108 for(int counter = 0; counter < write_size; counter++){ in cfi_strataflashj3_program_data_byte() local 109 nor_byte_program(base_addr + current_addr + (counter), in cfi_strataflashj3_program_data_byte() 110 send_buf_strata[counter]); in cfi_strataflashj3_program_data_byte() 210 for (int counter = 0; counter < read_size; counter++) { in cfi_strataflashj3_read() local [all …]
|
/trusted-firmware-m-3.6.0/docs/design_docs/booting/ |
D | secure_boot_rollback_protection.rst | 58 Security counter 60 The aim of a security counter is to have an independent (from the image version) 61 counter in the image manifest to ensure anti-rollback protection. During 62 software release the value of this counter must be increased if a security flaw 65 to handle this counter independently from image main version number: 69 counter has the same value in the older image then it is accepted. 74 as the security counter of the image. Even the version number itself could be 76 counter could be derived from the image main version. It is the responsibility 79 Implementation of security counter 81 The value of the security counter is a security critical data. Any change in [all …]
|
/trusted-firmware-m-3.6.0/tools/templates/ |
D | partition_load_info.template | 28 {% set counter = namespace() %} 29 {% set counter.dep_counter = manifest.dependencies|count + manifest.weak_dependencies|count %} 30 #define {{"%-55s"|format(manifest.name|upper + "_NDEPS")}} ({{"%d"|format(counter.dep_counter)}}) 31 {% set counter.service_counter = manifest.services|count %} 32 #define {{"%-55s"|format(manifest.name|upper + "_NSERVS")}} ({{"%d"|format(counter.service_counter)… 33 {% set counter.asset_counter = manifest.mmio_regions|count %} 35 #define {{"%-55s"|format(manifest.name|upper + "_NASSETS")}} ({{"%d"|format(counter.asset_counter)}… 37 #define {{"%-55s"|format(manifest.name|upper + "_NASSETS")}} ({{"%d"|format(counter.asset_counter)}… 39 {% set counter.irq_counter = manifest.irqs|count %} 40 #define {{"%-55s"|format(manifest.name|upper + "_NIRQS")}} ({{"%d"|format(counter.irq_counter)}}) [all …]
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/crypto_driver/ |
D | rsa_verify.c | 53 uint32_t i, counter; in RSA_PSS_Decode() local 95 for (counter = 0; counter <= (MASKED_DB_SIZE/HASH_RESULT_SIZE_IN_BYTES); counter++ ) { in RSA_PSS_Decode() 98 tmpBuff[HASH_RESULT_SIZE_IN_WORDS] = UTIL_INVERSE_UINT32_BYTES(counter); in RSA_PSS_Decode() 104 &dbMask[counter*HASH_RESULT_SIZE_IN_WORDS]); in RSA_PSS_Decode()
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | chacha20_alt.c | 77 uint32_t counter ) in mbedtls_chacha20_starts() argument 95 chachaCtx->blockCounterLsb = counter; in mbedtls_chacha20_starts() 155 uint32_t counter, in mbedtls_chacha20_crypt() argument 169 ret = mbedtls_chacha20_starts( &ctx, nonce, counter ); in mbedtls_chacha20_crypt()
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/kdf/ |
D | cc_kdf.c | 233 uint32_t counter; in CC_KdfKeyDerivFunc() local 367 counter = i; in CC_KdfKeyDerivFunc() 369 counter = i+1; in CC_KdfKeyDerivFunc() 372 counter = CC_COMMON_REVERSE32(counter); in CC_KdfKeyDerivFunc() 378 (uint8_t *)&counter, in CC_KdfKeyDerivFunc() 384 (uint8_t *)&counter, in CC_KdfKeyDerivFunc()
|
D | cc_hkdf.c | 167 uint8_t counter; in HkdfExpand() local 197 counter = (uint8_t)i; in HkdfExpand() 216 Error = CC_HmacUpdate(&UserContext, &counter, 1); in HkdfExpand()
|
D | mbedtls_cc_hkdf.c | 180 uint8_t counter; in HkdfExpand() local 219 counter = (uint8_t)i; in HkdfExpand() 239 Error = mbedtls_md_hmac_update( &hmacCtx, &counter, 1 ); in HkdfExpand()
|
/trusted-firmware-m-3.6.0/bl1/bl1_1/shared_lib/crypto/ |
D | crypto_mbedcrypto.c | 64 uint8_t *counter, in bl1_aes_256_ctr_decrypt() argument 79 if (ciphertext == NULL || plaintext == NULL || counter == NULL) { in bl1_aes_256_ctr_decrypt() 99 rc = mbedtls_aes_crypt_ctr(&ctx, ciphertext_length, &nc_off, counter, in bl1_aes_256_ctr_decrypt()
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/rss/common/bl1/ |
D | cc312_rom_crypto.c | 115 uint8_t *counter, in bl1_aes_256_ctr_decrypt() argument 130 if (counter == NULL || ciphertext == NULL || plaintext == NULL) { in bl1_aes_256_ctr_decrypt() 134 if ((uintptr_t)counter & 0x3) { in bl1_aes_256_ctr_decrypt() 150 CC3XX_AES_KEYSIZE_256, (uint32_t *)counter, 16); in bl1_aes_256_ctr_decrypt()
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/corstone1000/bl1/ |
D | cc312_rom_crypto.c | 113 uint8_t *counter, in bl1_aes_256_ctr_decrypt() argument 128 if (counter == NULL || ciphertext == NULL || plaintext == NULL) { in bl1_aes_256_ctr_decrypt() 132 if ((uintptr_t)counter & 0x3) { in bl1_aes_256_ctr_decrypt() 149 (uint32_t *)counter, 16); in bl1_aes_256_ctr_decrypt()
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/drivers/flash/sst26vf064b/ |
D | spi_sst26vf064b_flash_lib.c | 84 uint32_t counter = 0; in spi_flash_wait_for_ready() local 97 if ((counter % 1000) == 0) { in spi_flash_wait_for_ready() 100 counter++; in spi_flash_wait_for_ready() 139 for(uint8_t counter = 0; counter < 18; counter++) { in spi_flash_unblock() local 140 send_buf_flash1[counter + 1] = 0; in spi_flash_unblock()
|
/trusted-firmware-m-3.6.0/lib/fih/inc/ |
D | fih.h | 174 volatile uint32_t counter = 0; in fih_delay() local 185 counter++; in fih_delay() 188 if (counter != delay) { in fih_delay()
|
/trusted-firmware-m-3.6.0/bl2/ext/mcuboot/ |
D | Kconfig | 15 bool "Use the default security counter configuration" 18 Use the default security counter configuration defined by TF-M project 130 bool "Enable security counter validation against non-volatile HW counters" 199 int "Security counter for S image. auto sets it to IMAGE_VERSION_S" 203 int "Security counter for NS image. auto sets it to IMAGE_VERSION_NS"
|
D | mcuboot_default_config.cmake | 12 …NTERS ON CACHE BOOL "Whether to use the default security counter configuration def… 38 set(MCUBOOT_HW_ROLLBACK_PROT ON CACHE BOOL "Enable security counter valida… 56 set(MCUBOOT_SECURITY_COUNTER_S 1 CACHE STRING "Security counter for S image. … 57 set(MCUBOOT_SECURITY_COUNTER_NS 1 CACHE STRING "Security counter for NS image.…
|
/trusted-firmware-m-3.6.0/bl1/bl1_1/shared_lib/interface/ |
D | crypto.h | 38 uint8_t *counter,
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/ |
D | cc3xx_internal_chacha20.h | 55 uint32_t counter);
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_internal_chacha20.c | 109 uint32_t counter) in cc3xx_chacha20_set_counter() argument 114 ctx->blockCounterLsb = counter; in cc3xx_chacha20_set_counter()
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/platform/ |
D | Kconfig.comp | 28 bool "Disable Non-volatile counter module"
|
/trusted-firmware-m-3.6.0/docs/integration_guide/services/ |
D | tfm_platform_integration_guide.rst | 83 - Increment a counter. 84 - Read a counter value to a preallocated buffer. 100 dependency for access to the NV counter API.
|
/trusted-firmware-m-3.6.0/platform/ext/accelerator/cc312/cc312-rom/ |
D | cc3xx_chacha.h | 46 uint64_t counter; member
|
D | cc3xx_chacha.c | 170 state->counter = get_ctr(); in cc3xx_chacha20_get_state() 185 set_ctr(state->counter); in cc3xx_chacha20_set_state()
|
D | cc3xx_aes.c | 211 static void gcm_calc_initial_counter_from_iv(uint32_t *counter, in gcm_calc_initial_counter_from_iv() argument 244 counter[0] = P_CC3XX->ghash.ghash_iv_0[0]; in gcm_calc_initial_counter_from_iv() 245 counter[1] = P_CC3XX->ghash.ghash_iv_0[1]; in gcm_calc_initial_counter_from_iv() 246 counter[2] = P_CC3XX->ghash.ghash_iv_0[2]; in gcm_calc_initial_counter_from_iv() 247 counter[3] = P_CC3XX->ghash.ghash_iv_0[3]; in gcm_calc_initial_counter_from_iv()
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/drivers/flash/n25q256a/ |
D | spi_n25q256a_flash_lib.c | 63 uint32_t counter = 0; in spi_flash_wait_for_ready() local 76 if ((counter % 1000) == 0) { in spi_flash_wait_for_ready() 79 counter++; in spi_flash_wait_for_ready()
|
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/common/Native_Driver/drivers/ |
D | fsl_usart.c | 334 config->rxTimeout.counter = 0U; in USART_GetDefaultConfig() 364 uint16_t counter = 0U; in USART_CalcTimeoutConfig() local 369 counter = target_us * (srcClock_Hz / 1000000UL) / (16U * (perscalar + 1U)); in USART_CalcTimeoutConfig() 370 calculate_us = 16U * (perscalar + 1U) * counter / (srcClock_Hz / 1000000UL); in USART_CalcTimeoutConfig() 375 *rxTimeoutcounter = counter; in USART_CalcTimeoutConfig() 384 *rxTimeoutcounter = counter; in USART_CalcTimeoutConfig() 404 USART_FIFORXTIMEOUTCFG_RXTIMEOUT_VALUE(config->counter) | in USART_SetRxTimeoutConfig()
|