Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 99) sorted by relevance

1234

/trusted-firmware-m-3.6.0/platform/ext/accelerator/cc312/cc312-rom/
Dcc3xx_endian_helpers.h21 uint32_t out = 0; in bswap_32() local
23 out |= (in & 0xFF000000) >> 24; in bswap_32()
24 out |= (in & 0x00FF0000) >> 8; in bswap_32()
25 out |= (in & 0x0000FF00) << 8; in bswap_32()
26 out |= (in & 0x000000FF) << 24; in bswap_32()
28 return out; in bswap_32()
32 uint64_t out = 0; in bswap_64() local
34 out |= (in & 0xFF00000000000000) >> 56; in bswap_64()
35 out |= (in & 0x00FF000000000000) >> 40; in bswap_64()
36 out |= (in & 0x0000FF0000000000) >> 24; in bswap_64()
[all …]
Dcc3xx_hmac.c39 goto out; in cc3xx_hmac_set_key()
57 goto out; in cc3xx_hmac_set_key()
62 out: in cc3xx_hmac_set_key()
115 goto out; in cc3xx_hmac_finish()
120 goto out; in cc3xx_hmac_finish()
125 goto out; in cc3xx_hmac_finish()
130 out: in cc3xx_hmac_finish()
Dcc3xx_rng.c140 goto out; in cc3xx_rng_get_random()
145 goto out; in cc3xx_rng_get_random()
151 out: in cc3xx_rng_get_random()
Dcc3xx_kdf.c36 goto out; in cc3xx_kdf_cmac()
55 out: in cc3xx_kdf_cmac()
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/
Drun_integration_drbg.c58 unsigned char out[16]; in runIt_ctrDrbgEntropyUsageTest() local
79 memset(out, 0, sizeof(out)); in runIt_ctrDrbgEntropyUsageTest()
92 RUNIT_ASSERT_API(mbedtls_ctr_drbg_random(pCtx, out, sizeof(out) - 4) == 0); in runIt_ctrDrbgEntropyUsageTest()
93 …RUNIT_ASSERT_API(mbedtls_ctr_drbg_random_with_add(pCtx, out, sizeof(out) - 4, add, sizeof(add)) ==… in runIt_ctrDrbgEntropyUsageTest()
98 RUNIT_ASSERT(out[sizeof(out) - 4] == 0); in runIt_ctrDrbgEntropyUsageTest()
99 RUNIT_ASSERT(out[sizeof(out) - 3] == 0); in runIt_ctrDrbgEntropyUsageTest()
100 RUNIT_ASSERT(out[sizeof(out) - 2] == 0); in runIt_ctrDrbgEntropyUsageTest()
101 RUNIT_ASSERT(out[sizeof(out) - 1] == 0); in runIt_ctrDrbgEntropyUsageTest()
106 RUNIT_ASSERT_API(mbedtls_ctr_drbg_random(pCtx, out, sizeof(out)) == 0); in runIt_ctrDrbgEntropyUsageTest()
113 RUNIT_ASSERT_API(mbedtls_ctr_drbg_random(pCtx, out, sizeof(out)) == 0); in runIt_ctrDrbgEntropyUsageTest()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/musca_b1/services/src/
Dtfm_ioctl_ns_api.c110 struct tfm_gpio_service_out_t out; in tfm_platform_gpio_init() local
117 out_vec.base = (void *)&out; in tfm_platform_gpio_init()
118 out_vec.len = sizeof(out); in tfm_platform_gpio_init()
124 *result = out.u.result; in tfm_platform_gpio_init()
137 struct tfm_gpio_service_out_t out; in tfm_platform_gpio_pin_config() local
146 out_vec.base = (void *)&out; in tfm_platform_gpio_pin_config()
147 out_vec.len = sizeof(out); in tfm_platform_gpio_pin_config()
153 *result = out.u.result; in tfm_platform_gpio_pin_config()
165 struct tfm_gpio_service_out_t out; in tfm_platform_gpio_pin_write() local
174 out_vec.base = (void *)&out; in tfm_platform_gpio_pin_write()
[all …]
Dtfm_ioctl_s_api.c120 struct tfm_gpio_service_out_t out; in tfm_platform_gpio_init() local
127 out_vec.base = (void *)&out; in tfm_platform_gpio_init()
128 out_vec.len = sizeof(out); in tfm_platform_gpio_init()
134 *result = out.u.result; in tfm_platform_gpio_init()
147 struct tfm_gpio_service_out_t out; in tfm_platform_gpio_pin_config() local
156 out_vec.base = (void *)&out; in tfm_platform_gpio_pin_config()
157 out_vec.len = sizeof(out); in tfm_platform_gpio_pin_config()
163 *result = out.u.result; in tfm_platform_gpio_pin_config()
175 struct tfm_gpio_service_out_t out; in tfm_platform_gpio_pin_write() local
184 out_vec.base = (void *)&out; in tfm_platform_gpio_pin_write()
[all …]
Dtfm_platform_system.c80 struct tfm_gpio_service_out_t *out; in tfm_platform_hal_gpio_service() local
93 out = (struct tfm_gpio_service_out_t *)out_vec->base; in tfm_platform_hal_gpio_service()
97 out->u.result = GPIO_CMSDK_ERR_NONE; in tfm_platform_hal_gpio_service()
101 out->u.result = gpio_cmsdk_pin_config( in tfm_platform_hal_gpio_service()
107 out->u.result = gpio_cmsdk_pin_write( in tfm_platform_hal_gpio_service()
113 out->u.gpio_read_result.result = in tfm_platform_hal_gpio_service()
116 &out->u.gpio_read_result.data); in tfm_platform_hal_gpio_service()
120 out->u.result = gpio_cmsdk_port_config( in tfm_platform_hal_gpio_service()
126 out->u.result = gpio_cmsdk_port_write( in tfm_platform_hal_gpio_service()
132 out->u.gpio_read_result.result = in tfm_platform_hal_gpio_service()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/musca_s1/services/src/
Dtfm_ioctl_ns_api.c110 struct tfm_gpio_service_out_t out; in tfm_platform_gpio_init() local
117 out_vec.base = (void *)&out; in tfm_platform_gpio_init()
118 out_vec.len = sizeof(out); in tfm_platform_gpio_init()
124 *result = out.u.result; in tfm_platform_gpio_init()
137 struct tfm_gpio_service_out_t out; in tfm_platform_gpio_pin_config() local
146 out_vec.base = (void *)&out; in tfm_platform_gpio_pin_config()
147 out_vec.len = sizeof(out); in tfm_platform_gpio_pin_config()
153 *result = out.u.result; in tfm_platform_gpio_pin_config()
165 struct tfm_gpio_service_out_t out; in tfm_platform_gpio_pin_write() local
174 out_vec.base = (void *)&out; in tfm_platform_gpio_pin_write()
[all …]
Dtfm_ioctl_s_api.c120 struct tfm_gpio_service_out_t out; in tfm_platform_gpio_init() local
127 out_vec.base = (void *)&out; in tfm_platform_gpio_init()
128 out_vec.len = sizeof(out); in tfm_platform_gpio_init()
134 *result = out.u.result; in tfm_platform_gpio_init()
148 struct tfm_gpio_service_out_t out; in tfm_platform_gpio_pin_config() local
157 out_vec.base = (void *)&out; in tfm_platform_gpio_pin_config()
158 out_vec.len = sizeof(out); in tfm_platform_gpio_pin_config()
164 *result = out.u.result; in tfm_platform_gpio_pin_config()
177 struct tfm_gpio_service_out_t out; in tfm_platform_gpio_pin_write() local
186 out_vec.base = (void *)&out; in tfm_platform_gpio_pin_write()
[all …]
Dtfm_platform_system.c80 struct tfm_gpio_service_out_t *out; in tfm_platform_hal_gpio_service() local
93 out = (struct tfm_gpio_service_out_t *)out_vec->base; in tfm_platform_hal_gpio_service()
97 out->u.result = GPIO_CMSDK_ERR_NONE; in tfm_platform_hal_gpio_service()
101 out->u.result = gpio_cmsdk_pin_config( in tfm_platform_hal_gpio_service()
107 out->u.result = gpio_cmsdk_pin_write( in tfm_platform_hal_gpio_service()
113 out->u.gpio_read_result.result = in tfm_platform_hal_gpio_service()
116 &out->u.gpio_read_result.data); in tfm_platform_hal_gpio_service()
120 out->u.result = gpio_cmsdk_port_config( in tfm_platform_hal_gpio_service()
126 out->u.result = gpio_cmsdk_port_write( in tfm_platform_hal_gpio_service()
132 out->u.gpio_read_result.result = in tfm_platform_hal_gpio_service()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/common/template/
Dotp_flash.c28 uint8_t *out) in write_to_output() argument
41 err = read_otp_nv_counters_flash(offset, out, copy_size); in write_to_output()
50 size_t out_len, uint8_t *out) in tfm_plat_otp_read() argument
54 … return write_to_output(id, offsetof(struct flash_otp_nv_counters_region_t, huk), out_len, out); in tfm_plat_otp_read()
56 … return write_to_output(id, offsetof(struct flash_otp_nv_counters_region_t, iak), out_len, out); in tfm_plat_otp_read()
58 …return write_to_output(id, offsetof(struct flash_otp_nv_counters_region_t, iak_len), out_len, out); in tfm_plat_otp_read()
60 …eturn write_to_output(id, offsetof(struct flash_otp_nv_counters_region_t, iak_type), out_len, out); in tfm_plat_otp_read()
62 … return write_to_output(id, offsetof(struct flash_otp_nv_counters_region_t, iak_id), out_len, out); in tfm_plat_otp_read()
65 …turn write_to_output(id, offsetof(struct flash_otp_nv_counters_region_t, boot_seed), out_len, out); in tfm_plat_otp_read()
67 … return write_to_output(id, offsetof(struct flash_otp_nv_counters_region_t, lcs), out_len, out); in tfm_plat_otp_read()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/nordic_nrf/common/core/services/src/
Dtfm_ioctl_core_ns_api.c19 struct tfm_read_service_out_t out; in tfm_platform_mem_read() local
24 out_vec.base = (void *)&out; in tfm_platform_mem_read()
25 out_vec.len = sizeof(out); in tfm_platform_mem_read()
34 *result = out.result; in tfm_platform_mem_read()
47 struct tfm_gpio_service_out out; in tfm_platform_gpio_pin_mcu_select() local
56 out_vec.base = (void *)&out; in tfm_platform_gpio_pin_mcu_select()
57 out_vec.len = sizeof(out); in tfm_platform_gpio_pin_mcu_select()
62 *result = out.result; in tfm_platform_gpio_pin_mcu_select()
Dtfm_ioctl_core_s_api.c21 struct tfm_read_service_out_t out; in tfm_platform_mem_read() local
26 out_vec.base = (void *)&out; in tfm_platform_mem_read()
27 out_vec.len = sizeof(out); in tfm_platform_mem_read()
48 struct tfm_gpio_service_out out; in tfm_platform_gpio_pin_mcu_select() local
57 out_vec.base = (void *)&out; in tfm_platform_gpio_pin_mcu_select()
58 out_vec.len = sizeof(out); in tfm_platform_gpio_pin_mcu_select()
63 *result = out.result; in tfm_platform_gpio_pin_mcu_select()
Dtfm_platform_hal_ioctl.c28 struct tfm_read_service_out_t *out; in tfm_platform_hal_read_service() local
41 out = (struct tfm_read_service_out_t *)out_vec->base; in tfm_platform_hal_read_service()
44 out->result = -1; in tfm_platform_hal_read_service()
66 out->result = 0; in tfm_platform_hal_read_service()
104 struct tfm_gpio_service_out *out; in tfm_platform_hal_gpio_service() local
112 out = (struct tfm_gpio_service_out *)out_vec->base; in tfm_platform_hal_gpio_service()
113 out->result = -1; in tfm_platform_hal_gpio_service()
118 out->result = gpio_service_mcu_select(args); in tfm_platform_hal_gpio_service()
/trusted-firmware-m-3.6.0/bl1/bl1_1/shared_lib/crypto/
Dcrypto_mbedcrypto.c43 goto out; in bl1_sha256_compute()
49 goto out; in bl1_sha256_compute()
55 goto out; in bl1_sha256_compute()
58 out: in bl1_sha256_compute()
91 goto out; in bl1_aes_256_ctr_decrypt()
96 goto out; in bl1_aes_256_ctr_decrypt()
102 goto out; in bl1_aes_256_ctr_decrypt()
105 out: in bl1_aes_256_ctr_decrypt()
/trusted-firmware-m-3.6.0/platform/ext/accelerator/cc312/
Dotp_cc312.c277 size_t out_len, uint8_t *out) in otp_read() argument
312 memcpy(out + out_done, ((uint8_t*)&word) + start_offset, copy_size); in otp_read()
602 static enum tfm_plat_err_t otp_read_lcs(size_t out_len, uint8_t *out) { in otp_read_lcs() argument
604 enum plat_otp_lcs_t *lcs = (enum plat_otp_lcs_t*) out; in otp_read_lcs()
663 size_t out_len, uint8_t *out) in tfm_plat_otp_read() argument
669 return otp_read(otp->huk, sizeof(otp->huk), out_len, out); in tfm_plat_otp_read()
673 sizeof(otp->rot_public_key), out_len, out); in tfm_plat_otp_read()
677 out); in tfm_plat_otp_read()
679 return otp_read_lcs(out_len, out); in tfm_plat_otp_read()
682 sizeof(otp->implementation_id), out_len, out); in tfm_plat_otp_read()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/corstone1000/bl1/
Dcc312_rom_trng.c25 uint32_t out = 0; in fih_delay_random_uchar() local
26 cc3xx_rng_get_random_uint(256, &out); in fih_delay_random_uchar()
27 return (unsigned char)out; in fih_delay_random_uchar()
/trusted-firmware-m-3.6.0/platform/ext/target/arm/rss/common/bl1/
Dboot_hal_bl1_2.c256 goto out; in setup_kmu_slot_from_otp()
264 goto out; in setup_kmu_slot_from_otp()
270 goto out; in setup_kmu_slot_from_otp()
276 goto out; in setup_kmu_slot_from_otp()
280 out: in setup_kmu_slot_from_otp()
/trusted-firmware-m-3.6.0/bl1/bl1_2/lib/
Dimage.c32 fih_int bl1_image_copy_to_sram(uint32_t image_id, uint8_t *out) in bl1_image_copy_to_sram() argument
38 fih_rc = fih_int_encode(FLASH_DEV_NAME.ReadData(flash_offset, out, in bl1_image_copy_to_sram()
/trusted-firmware-m-3.6.0/secure_fw/partitions/protected_storage/crypto/
Dps_crypto_interface.c196 uint8_t *out, in ps_crypto_encrypt_and_tag() argument
206 out, out_size, out_len); in ps_crypto_encrypt_and_tag()
213 (void)memcpy(crypto->ref.tag, (out + *out_len), PS_TAG_LEN_BYTES); in ps_crypto_encrypt_and_tag()
223 uint8_t *out, in ps_crypto_auth_and_decrypt() argument
237 out, out_size, out_len); in ps_crypto_auth_and_decrypt()
Dps_crypto_interface.h80 uint8_t *out,
103 uint8_t *out,
/trusted-firmware-m-3.6.0/lib/ext/t_cose/test/keys/
DREADME.txt7 openssl ecparam -genkey -name secp384r1 -out k.pem
9 To print out the ECDSA key:
/trusted-firmware-m-3.6.0/bl2/ext/mcuboot/
Dflash_map_legacy.c46 goto out; in flash_area_get_sectors()
80 out: in flash_area_get_sectors()
/trusted-firmware-m-3.6.0/platform/ext/target/arm/rss/common/native_drivers/
Dkmu_drv.c393 goto out; in kmu_export_key()
396 goto out; in kmu_export_key()
399 goto out; in kmu_export_key()
404 goto out; in kmu_export_key()
415 goto out; in kmu_export_key()
418 goto out; in kmu_export_key()
421 goto out; in kmu_export_key()
425 out: in kmu_export_key()

1234