Home
last modified time | relevance | path

Searched refs:assert (Results 1 – 25 of 53) sorted by relevance

123

/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/cc312-rom/
Dcc3xx_init.c19 assert(P_CC3XX->host_rgf.host_boot & (1 << 17)); /* HASH_EXISTS_LOCAL */ in check_features()
20 assert(P_CC3XX->host_rgf.host_boot & (1 << 15)); /* SHA_256_PRSNT_LOCAL */ in check_features()
24 assert(P_CC3XX->host_rgf.host_boot & (1 << 30)); /* AES_EXISTS_LOCAL */ in check_features()
25 assert(P_CC3XX->host_rgf.host_boot & (1 << 25)); /* CTR_EXISTS_LOCAL */ in check_features()
26 assert(P_CC3XX->aes.aes_hw_flags & (1 << 3)); /* CTR_EXISTS */ in check_features()
30 assert(P_CC3XX->host_rgf.host_boot & (1 << 30)); /* AES_EXISTS_LOCAL */ in check_features()
34 assert(P_CC3XX->host_rgf.host_boot & (1 << 30)); /* AES_EXISTS_LOCAL */ in check_features()
38 assert(P_CC3XX->host_rgf.host_boot & (1 << 30)); /* AES_EXISTS_LOCAL */ in check_features()
42 assert(P_CC3XX->host_rgf.host_boot & (1 << 30)); /* AES_EXISTS_LOCAL */ in check_features()
43 assert(P_CC3XX->host_rgf.host_boot & (1 << 21)); /* AES_CMAC_EXISTS_LOCAL */ in check_features()
[all …]
Dcc3xx_pka.c170 assert((pka_state.reg_size & ((PKA_WORD_SIZE) - 1)) == 0); in pka_init_from_state()
171 assert(pka_state.reg_size >= (PKA_WORD_SIZE)); in pka_init_from_state()
181 assert(pka_reg_am_max > 4); in pka_init_from_state()
233 assert(size <= 256); in cc3xx_lowlevel_pka_init()
247 assert(phys_reg_next_mapped <= PKA_PHYS_REG_LAST_MAPPABLE); in allocate_phys_reg()
248 assert(phys_reg_mapping_list[PKA_PHYS_REG_TEMP_0] == 0); in allocate_phys_reg()
249 assert(phys_reg_mapping_list[PKA_PHYS_REG_TEMP_1] == 0); in allocate_phys_reg()
268 assert(reg_id != pka_reg_am_max); in cc3xx_lowlevel_pka_allocate_reg()
282 assert(reg_id == pka_state.virt_reg_next_mapped - 1); in cc3xx_lowlevel_pka_free_reg()
283 assert(virt_reg_in_use[reg_id]); in cc3xx_lowlevel_pka_free_reg()
[all …]
Dcc3xx_drbg_ctr.c20 assert(acc_size == CC3XX_DRBG_CTR_BLOCKLEN); in long_inc_int()
68 assert(data_len <= CC3XX_DRBG_CTR_SEEDLEN); in cc3xx_drbg_ctr_update()
122 assert(entropy_len == CC3XX_DRBG_CTR_SEEDLEN); in cc3xx_lowlevel_drbg_ctr_init()
133 assert(personalization_len <= CC3XX_DRBG_CTR_SEEDLEN); in cc3xx_lowlevel_drbg_ctr_init()
187 assert(len_bits != 0); in cc3xx_lowlevel_drbg_ctr_generate()
188 assert((len_bits % 8) == 0); in cc3xx_lowlevel_drbg_ctr_generate()
192 assert(additional_input_len <= CC3XX_DRBG_CTR_SEEDLEN); in cc3xx_lowlevel_drbg_ctr_generate()
272 assert(entropy_len == CC3XX_DRBG_CTR_SEEDLEN); in cc3xx_lowlevel_drbg_ctr_reseed()
275 assert(additional_input_len <= CC3XX_DRBG_CTR_SEEDLEN); in cc3xx_lowlevel_drbg_ctr_reseed()
Dcc3xx_hash.c176 assert(((uintptr_t)res & 0b11) == 0); in cc3xx_lowlevel_hash_finish()
180 assert(length >= SHA256_OUTPUT_SIZE); in cc3xx_lowlevel_hash_finish()
183 assert(length >= SHA224_OUTPUT_SIZE); in cc3xx_lowlevel_hash_finish()
186 assert(length >= SHA1_OUTPUT_SIZE); in cc3xx_lowlevel_hash_finish()
Dcc3xx_aes.c101 assert(0); /* Wrong programming for this driver configuration */ in set_key()
308 assert(false); in gcm_init_iv()
328 assert(iv_len >= 7 && iv_len <= 13); in ccm_init_iv()
354 assert(!(P_CC3XX->ao.host_ao_lock_bits & (0b1U << 7))); in init_from_state()
445 assert(((uintptr_t)key & 0b11) == 0); in cc3xx_lowlevel_aes_init()
446 assert(((uintptr_t)iv & 0b11) == 0); in cc3xx_lowlevel_aes_init()
449 assert(P_CC3XX->host_rgf.host_boot & (1 << 28)); /* SUPPORT_256_192_KEY_LOCAL */ in cc3xx_lowlevel_aes_init()
450 assert(P_CC3XX->aes.aes_hw_flags & 1); /* SUPPORT_256_192_KEY */ in cc3xx_lowlevel_aes_init()
500 assert(iv_len == 16); in cc3xx_lowlevel_aes_init()
506 assert(iv_len == 16); in cc3xx_lowlevel_aes_init()
[all …]
Dcc3xx_kdf.c36 assert(((uintptr_t)output_key & 0b11) == 0); in cc3xx_lowlevel_kdf_cmac()
37 assert((out_length / sizeof(cmac_buf)) != 0); in cc3xx_lowlevel_kdf_cmac()
Dcc3xx_drbg_hash.c31 assert(acc_size == CC3XX_DRBG_HASH_SEEDLEN); in long_acc()
89 assert(out_len_bits == CC3XX_DRBG_HASH_SEEDLEN * 8); in hash_df()
241 assert(len_bits != 0); in cc3xx_lowlevel_drbg_hash_generate()
242 assert((len_bits % 8) == 0); in cc3xx_lowlevel_drbg_hash_generate()
/trusted-firmware-m-3.7.0/platform/ext/target/nxp/common/Native_Driver/components/uart/
Dfsl_adapter_usart.c25 #undef assert
26 #define assert(n) macro
190 assert(callbackParam); in HAL_UartCallback()
280 assert(handle); in HAL_UartInitCommon()
281 assert(config); in HAL_UartInitCommon()
282 assert(config->instance < (sizeof(s_UsartAdapterBase) / sizeof(USART_Type *))); in HAL_UartInitCommon()
283 assert(s_UsartAdapterBase[config->instance]); in HAL_UartInitCommon()
284 assert(HAL_UART_HANDLE_SIZE >= sizeof(hal_uart_state_t)); in HAL_UartInitCommon()
372 assert(handle); in HAL_UartDeinit()
385 assert(handle); in HAL_UartReceiveBlocking()
[all …]
/trusted-firmware-m-3.7.0/platform/ext/target/nxp/common/Native_Driver/components/serial_manager/
Dfsl_component_serial_port_uart.c23 #undef assert
24 #define assert(n) macro
27 #undef assert
28 #define assert(n) \ macro
135 assert(userData); in Serial_UartCallback()
188 assert(serialConfig); in Serial_UartInit()
189 assert(serialHandle); in Serial_UartInit()
190 assert(SERIAL_PORT_UART_HANDLE_SIZE >= sizeof(serial_uart_state_t)); in Serial_UartInit()
195 assert(kStatus_SerialManager_Success == serialManagerStatus); in Serial_UartInit()
217 assert(serialHandle); in Serial_UartDeinit()
[all …]
Dfsl_component_serial_manager.c42 #undef assert
43 #define assert(n) macro
46 #undef assert
47 #define assert(n) \ macro
768 assert(NULL != callbackParam);
769 assert(NULL != message);
839 assert(NULL != callbackParam);
840 assert(NULL != message);
1045 assert(NULL != writeHandle);
1046 assert(NULL != buffer);
[all …]
/trusted-firmware-m-3.7.0/platform/ext/target/arm/corstone1000/io/
Dio_storage.c71 assert(dev_info != NULL); in io_storage_dev_open()
72 assert(is_valid_dev_connector(dev_con)); in io_storage_dev_open()
79 assert(handle != NULL); in set_handle()
100 assert(entity != NULL); in allocate_entity()
105 assert(result == 0); in allocate_entity()
118 assert(entity != NULL); in free_entity()
134 assert(dev_info != NULL); in io_register_device()
148 assert(handle != NULL); in io_dev_open()
156 assert(dev_handle != (uintptr_t)NULL); in io_dev_init()
157 assert(is_valid_dev(dev_handle)); in io_dev_init()
[all …]
Dio_block.c93 assert(dev_info != NULL); in allocate_dev_info()
98 assert(result == 0); in allocate_dev_info()
114 assert(dev_info != NULL); in free_dev_info()
133 assert((dev_info->info != (uintptr_t)NULL) && (spec != (uintptr_t)NULL) && in block_open()
138 assert(((region->offset % cur->dev_spec->block_size) == 0) && in block_open()
153 assert(entity->info != (uintptr_t)NULL); in block_seek()
157 assert((offset >= 0) && ((uint32_t)offset < cur->size)); in block_seek()
168 assert(cur->file_pos < cur->size); in block_seek()
264 assert(entity->info != (uintptr_t)NULL); in block_read()
269 assert((length <= cur->size) && (length > 0U) && (ops->read != 0)); in block_read()
[all …]
Dio_flash.c138 assert(dev_info != NULL); in flash_dev_open()
139 assert(dev_spec != NULL); in flash_dev_open()
144 assert(flashs_ops[index].read && flashs_ops[index].write); in flash_dev_open()
173 assert(dev_con != NULL); in register_io_dev_flash()
/trusted-firmware-m-3.7.0/platform/ext/target/nxp/common/Native_Driver/drivers/
Dfsl_flexcomm.c95 assert(i < (uint32_t)FSL_FEATURE_SOC_FLEXCOMM_COUNT); in FLEXCOMM_GetInstance()
172 assert(s_flexcommIrqHandler[instance] != NULL); in FLEXCOMM0_DriverIRQHandler()
186 assert(s_flexcommIrqHandler[instance] != NULL); in FLEXCOMM1_DriverIRQHandler()
200 assert(s_flexcommIrqHandler[instance] != NULL); in FLEXCOMM2_DriverIRQHandler()
214 assert(s_flexcommIrqHandler[instance] != NULL); in FLEXCOMM3_DriverIRQHandler()
228 assert(s_flexcommIrqHandler[instance] != NULL); in FLEXCOMM4_DriverIRQHandler()
243 assert(s_flexcommIrqHandler[instance] != NULL); in FLEXCOMM5_DriverIRQHandler()
257 assert(s_flexcommIrqHandler[instance] != NULL); in FLEXCOMM6_DriverIRQHandler()
271 assert(s_flexcommIrqHandler[instance] != NULL); in FLEXCOMM7_DriverIRQHandler()
285 assert(s_flexcommIrqHandler[instance] != NULL); in FLEXCOMM8_DriverIRQHandler()
[all …]
Dfsl_iap.c306 assert(VERSION1_FLASH_API_TREE); in FLASH_Program()
340 assert(VERSION1_FLASH_API_TREE); in FLASH_VerifyErase()
367 assert(VERSION1_FLASH_API_TREE); in FLASH_VerifyProgram()
378 assert(VERSION1_FLASH_API_TREE); in FLASH_GetProperty()
431 assert(VERSION0_FLASH_API_TREE); in FFR_Init()
441 assert(VERSION1_FLASH_API_TREE); in FFR_Init()
458 assert(VERSION0_FLASH_API_TREE); in FFR_Lock_All()
463 assert(VERSION1_FLASH_API_TREE); in FFR_Lock_All()
476 assert(VERSION0_FLASH_API_TREE); in FFR_CustFactoryPageWrite()
481 assert(VERSION1_FLASH_API_TREE); in FFR_CustFactoryPageWrite()
[all …]
Dfsl_usart.c67 assert(i < (uint32_t)FSL_FEATURE_SOC_USART_COUNT); in USART_GetInstance()
82 assert(NULL != handle); in USART_TransferGetRxRingBufferLength()
102 assert(NULL != handle); in USART_TransferIsRxRingBufferFull()
135 assert(NULL != base); in USART_TransferStartRingBuffer()
136 assert(NULL != handle); in USART_TransferStartRingBuffer()
137 assert(NULL != ringBuffer); in USART_TransferStartRingBuffer()
159 assert(NULL != base); in USART_TransferStopRingBuffer()
160 assert(NULL != handle); in USART_TransferStopRingBuffer()
198 assert(!((NULL == base) || (NULL == config) || (0U == srcClock_Hz))); in USART_Init()
278 assert(NULL != base); in USART_Deinit()
[all …]
Dfsl_ctimer.c85 assert(instance < ctimerArrayCount); in CTIMER_GetInstance()
100 assert(config != NULL); in CTIMER_Init()
155 assert(config != NULL); in CTIMER_GetDefaultConfig()
198 assert(pwmFreq_Hz > 0U); in CTIMER_SetupPwm()
289 assert(!((FSL_FEATURE_CTIMER_BIT_SIZEn(base) < 32) && (pulsePeriod > 0xFFFFU))); in CTIMER_SetupPwmPeriod()
384 assert(!(FSL_FEATURE_CTIMER_BIT_SIZEn(base) < 32 && config->matchValue > 0xFFFFU)); in CTIMER_SetupMatch()
/trusted-firmware-m-3.7.0/bl2/src/
Dthin_psa_crypto_core.c158 assert(operation->id == 0); in psa_hash_setup()
159 assert(PSA_ALG_IS_HASH(alg)); in psa_hash_setup()
181 assert(operation->id != 0); in psa_hash_update()
205 assert(operation->id != 0); in psa_hash_finish()
261 assert(data[0] == 0x04); in psa_import_key()
282 assert(g_key_slot.is_valid && (g_key_slot.key_id == key)); in psa_get_key_attributes()
291 assert(g_key_slot.is_valid && (g_key_slot.key_id == key)); in psa_destroy_key()
322 assert(g_key_slot.is_valid && (g_key_slot.key_id == key)); in psa_verify_hash()
324 assert((key >= MCUBOOT_BUILTIN_KEY_ID_MIN) && in psa_verify_hash()
535 assert(PSA_KEY_TYPE_IS_PUBLIC_KEY(psa_get_key_type(attributes))); in psa_driver_wrapper_export_public_key()
[all …]
/trusted-firmware-m-3.7.0/platform/ext/target/arm/corstone1000/partition/
Dgpt.c19 assert((str_in != NULL) && (str_out != NULL)); in unicode_to_ascii()
23 assert(name[0] != '\0'); in unicode_to_ascii()
40 assert((gpt_entry != NULL) && (entry != NULL)); in parse_gpt_entry()
Dpartition.c60 assert(mbr_entry != NULL); in load_mbr_header()
140 assert(mbr_entry != NULL); in load_mbr_entry()
186 assert(entry != NULL); in load_gpt_entry()
199 assert(result == 0); in verify_partition_gpt()
248 assert(result == 0); in load_partition_table()
254 assert(result == 0); in load_partition_table()
/trusted-firmware-m-3.7.0/platform/ext/target/nxp/lpcxpresso55s69/
Dtarget_cfg.c69 assert((memory_regions.non_secure_partition_base % FLASH_SUBREGION_SIZE) == 0); in mpc_init_cfg()
70 assert(((memory_regions.non_secure_partition_limit+1) % FLASH_SUBREGION_SIZE) == 0); in mpc_init_cfg()
103 assert((memory_regions.secondary_partition_base % FLASH_SUBREGION_SIZE) == 0); in mpc_init_cfg()
104 assert(((memory_regions.secondary_partition_limit+1) % FLASH_SUBREGION_SIZE) == 0); in mpc_init_cfg()
148 assert((S_DATA_SIZE % DATA_SUBREGION_SIZE) == 0); in mpc_init_cfg()
149 assert(((S_DATA_SIZE + NS_DATA_SIZE) % DATA_SUBREGION_SIZE) == 0); in mpc_init_cfg()
/trusted-firmware-m-3.7.0/platform/ext/target/nxp/lpcxpresso55s69/Native_Driver/drivers/
Dfsl_reset.c48 assert(bitPos < 32u); in RESET_SetPeripheralReset()
73 assert(bitPos < 32u); in RESET_ClearPeripheralReset()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/
Drun_integration_helper.c40 #define assert(a) do{} while(0) in runIt_unhexify() macro
43 assert(strlen( ibuf ) % 2 == 0); /* must be even number of bytes */ in runIt_unhexify()
55 assert(0); in runIt_unhexify()
65 assert(0); in runIt_unhexify()
/trusted-firmware-m-3.7.0/platform/ext/target/nxp/common/Native_Driver/utilities/debug_console/
Dfsl_debug_console.c63 #undef assert
64 #define assert(n) macro
67 #undef assert
68 #define assert(n) \ macro
502 assert(NULL != ch); in DbgConsole_SendData()
503 assert(0U != size); in DbgConsole_SendData()
561 assert(NULL != ch); in DbgConsole_SendDataReliable()
633 assert(buf != NULL); in DbgConsole_ReadLine()
699 assert(ch); in DbgConsole_ReadCharacter()
879 assert(kStatus_SerialManager_Success == status); in DbgConsole_Init()
[all …]
/trusted-firmware-m-3.7.0/secure_fw/spm/include/private/
Dassert.h30 #define assert(cond) SPM_ASSERT(cond) macro

123