Home
last modified time | relevance | path

Searched refs:output (Results 1 – 25 of 155) sorted by relevance

1234567

/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Daes_alt.c163 unsigned char output[AES_BLOCK_SIZE]) in mbedtls_aes_crypt_ecb()
170 if (NULL == ctx || NULL == input || NULL == output) in mbedtls_aes_crypt_ecb()
194 output, AES_BLOCK_SIZE, &outBuffInfo); in mbedtls_aes_crypt_ecb()
219 unsigned char *output ) in mbedtls_aes_crypt_cbc() argument
232 if (NULL == ctx || NULL == input || NULL == output || NULL == iv) in mbedtls_aes_crypt_cbc()
264 output, length, &outBuffInfo); in mbedtls_aes_crypt_cbc()
294 unsigned char *output ) in mbedtls_aes_crypt_cfb128() argument
302 CC_UNUSED_PARAM(output); in mbedtls_aes_crypt_cfb128()
314 unsigned char *output ) in mbedtls_aes_crypt_cfb8() argument
321 CC_UNUSED_PARAM(output); in mbedtls_aes_crypt_cfb8()
[all …]
Dchachapoly_alt.c84 unsigned char *output ) in mbedtls_chachapoly_update() argument
89 CC_UNUSED_PARAM(output); in mbedtls_chachapoly_update()
109 unsigned char *output, in chachapoly_crypt_and_tag() argument
124 pCipherData = output; in chachapoly_crypt_and_tag()
142 rc = mbedtls_chacha20_crypt( key, nonce, 1, length, (uint8_t *)input, (uint8_t *)output ); in chachapoly_crypt_and_tag()
158 rc = mbedtls_chacha20_crypt( key, nonce, 1, length, (uint8_t *)input, (uint8_t *)output ); in chachapoly_crypt_and_tag()
167 if (output != NULL) { in chachapoly_crypt_and_tag()
168 CC_PalMemSetZero(output, length); in chachapoly_crypt_and_tag()
179 unsigned char *output, in mbedtls_chachapoly_encrypt_and_tag() argument
193 if ( length != 0 && output == NULL ) { in mbedtls_chachapoly_encrypt_and_tag()
[all …]
Dccm_alt.c62 unsigned char *output, in mbedtls_ccm_encrypt_and_tag() argument
66 …return mbedtls_ccm_encrypt_and_tag_int(ctx, length, iv, iv_len, add, add_len, input, output, tag, … in mbedtls_ccm_encrypt_and_tag()
79 unsigned char *output, in mbedtls_ccm_auth_decrypt() argument
85 …return mbedtls_ccm_auth_decrypt_int( ctx, length, iv, iv_len, add, add_len, input, output, tag, ta… in mbedtls_ccm_auth_decrypt()
95 unsigned char *output, in mbedtls_ccm_star_encrypt_and_tag() argument
99 …return mbedtls_ccm_encrypt_and_tag_int(ctx, length, iv, iv_len, add, add_len, input, output, tag, … in mbedtls_ccm_star_encrypt_and_tag()
109 unsigned char *output, in mbedtls_ccm_star_auth_decrypt() argument
113 …return mbedtls_ccm_auth_decrypt_int(ctx, length, iv, iv_len, add, add_len, input, output, tag, tag… in mbedtls_ccm_star_auth_decrypt()
156 unsigned char *output, size_t output_size, in mbedtls_ccm_update() argument
162 CC_UNUSED_PARAM(output); in mbedtls_ccm_update()
Dsha256_alt.c104 int mbedtls_sha256_finish( mbedtls_sha256_context *ctx, unsigned char output[32] ) in mbedtls_sha256_finish()
109 if (NULL == ctx || NULL == output){ in mbedtls_sha256_finish()
114 if (NULL == output){ in mbedtls_sha256_finish()
130 CC_PalMemCopy(output, pHashCtx->digest, SHA224_DIGEST_SIZE_IN_BYTES); in mbedtls_sha256_finish()
133 CC_PalMemCopy(output, pHashCtx->digest, SHA256_DIGEST_SIZE_IN_BYTES); in mbedtls_sha256_finish()
Dchacha20_alt.c104 unsigned char *output ) in mbedtls_chacha20_update() argument
121 if ( size != 0 && output == NULL ) { in mbedtls_chacha20_update()
129 upDataIn = (uintptr_t)output; in mbedtls_chacha20_update()
136 output, size, &outBuffInfo); in mbedtls_chacha20_update()
158 unsigned char* output ) in mbedtls_chacha20_crypt() argument
173 ret = mbedtls_chacha20_update( &ctx, data_len, input, output ); in mbedtls_chacha20_crypt()
/trusted-firmware-m-3.6.0/platform/ext/target/arm/rss/common/
Drss_trng.c22 int32_t bl1_trng_generate_random(uint8_t *output, size_t output_size) in bl1_trng_generate_random() argument
28 copy_size = sizeof(uint32_t) - ((uintptr_t)output % sizeof(uint32_t)); in bl1_trng_generate_random()
30 memcpy(output, &random_word, copy_size); in bl1_trng_generate_random()
31 output += copy_size; in bl1_trng_generate_random()
35 *((uint32_t *)output) = otp_trng_get_random_uint32_t(); in bl1_trng_generate_random()
36 output += sizeof(uint32_t); in bl1_trng_generate_random()
42 memcpy(output, &random_word, copy_size); in bl1_trng_generate_random()
/trusted-firmware-m-3.6.0/bl2/ext/mcuboot/scripts/
Dassemble.py34 def __init__(self, layout_path, output): argument
35 self.output = output
39 os.unlink(output)
61 with open(self.output, 'ab') as ofd:
87 output = Assembly(args.layout, args.output)
89 output.add_image(args.secure, "SECURE")
90 output.add_image(args.non_secure, "NON_SECURE")
/trusted-firmware-m-3.6.0/platform/ext/target/stm/common/hal/accelerator/
Daes_alt.c311 unsigned char output[16]) in mbedtls_aes_crypt_ecb()
317 AES_VALIDATE_RET( output != NULL ); in mbedtls_aes_crypt_ecb()
335 ret = mbedtls_internal_aes_decrypt(ctx, input, output); in mbedtls_aes_crypt_ecb()
339 ret = mbedtls_internal_aes_encrypt(ctx, input, output); in mbedtls_aes_crypt_ecb()
375 unsigned char *output) in mbedtls_aes_crypt_cbc() argument
385 AES_VALIDATE_RET( output != NULL ); in mbedtls_aes_crypt_cbc()
415 …if (HAL_CRYP_Decrypt(&ctx->hcryp_aes, (uint32_t *)input, length, (uint32_t *)output, ST_AES_TIMEOU… in mbedtls_aes_crypt_cbc()
426 …if (HAL_CRYP_Encrypt(&ctx->hcryp_aes, (uint32_t *)input, length, (uint32_t *)output, ST_AES_TIMEOU… in mbedtls_aes_crypt_cbc()
431 memcpy(iv, &output[length - 16], 16); in mbedtls_aes_crypt_cbc()
504 unsigned char *output ) in mbedtls_aes_crypt_xts() argument
[all …]
Dccm_alt.c173 const unsigned char *input, unsigned char *output, in ccm_auth_crypt() argument
324 (uint32_t *)output, in ccm_auth_crypt()
336 (uint32_t *)output, in ccm_auth_crypt()
376 const unsigned char *input, unsigned char *output, in mbedtls_ccm_star_encrypt_and_tag() argument
383 CCM_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_ccm_star_encrypt_and_tag()
386 add, add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_star_encrypt_and_tag()
392 const unsigned char *input, unsigned char *output, in mbedtls_ccm_encrypt_and_tag() argument
399 CCM_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_ccm_encrypt_and_tag()
405 add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_encrypt_and_tag()
414 const unsigned char *input, unsigned char *output, in mbedtls_ccm_star_auth_decrypt() argument
[all …]
Dgcm_alt.c84 unsigned char *output );
302 unsigned char output[16] ) in gcm_mult()
337 PUT_UINT32_BE( zh >> 32, output, 0 ); in gcm_mult()
338 PUT_UINT32_BE( zh, output, 4 ); in gcm_mult()
339 PUT_UINT32_BE( zl >> 32, output, 8 ); in gcm_mult()
340 PUT_UINT32_BE( zl, output, 12 ); in gcm_mult()
427 unsigned char *output ) in gcm_update() argument
432 unsigned char *out_p = output; in gcm_update()
437 GCM_VALIDATE_RET( length == 0 || output != NULL ); in gcm_update()
439 if( output > input && (size_t) ( output - input ) < length ) in gcm_update()
[all …]
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_asymmetric_encryption.c42 uint8_t *output, size_t output_size, size_t *output_length) in cc3xx_internal_rsa_encrypt() argument
100 output); in cc3xx_internal_rsa_encrypt()
109 (unsigned char *)output); in cc3xx_internal_rsa_encrypt()
126 CC_PalMemSetZero(output, *output_length); in cc3xx_internal_rsa_encrypt()
144 uint8_t *output, size_t output_size, size_t *output_length) in cc3xx_internal_rsa_decrypt() argument
186 output, in cc3xx_internal_rsa_decrypt()
195 output, in cc3xx_internal_rsa_decrypt()
203 CC_PalMemSetZero(output, *output_length); in cc3xx_internal_rsa_decrypt()
231 uint8_t *output, size_t output_size, in cc3xx_asymmetric_encrypt() argument
249 salt, salt_length, output, output_size, output_length); in cc3xx_asymmetric_encrypt()
[all …]
Dcc3xx_internal_chacha20.c24 uint8_t *output, size_t size) in chacha_block() argument
31 output, size, &outBuffInfo); in chacha_block()
129 uint8_t *output, in cc3xx_chacha20_update() argument
135 if ((ctx == NULL) || (input == NULL) || (output == NULL) || (output_len == NULL)) { in cc3xx_chacha20_update()
157 output[i] = in cc3xx_chacha20_update()
173 &output[size_to_process], process_len); in cc3xx_chacha20_update()
195 output[i+size_to_process+process_len] = in cc3xx_chacha20_update()
210 uint8_t *output, in cc3xx_chacha20_finish() argument
215 (void)output; in cc3xx_chacha20_finish()
Dcc3xx_psa_entropy.c33 uint8_t *output, size_t output_size) in cc3xx_get_entropy() argument
43 if (output == NULL) { in cc3xx_get_entropy()
84 CC_PalMemCopy(output, in cc3xx_get_entropy()
107 int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, size_t *olen) in mbedtls_hardware_poll() argument
110 return cc3xx_get_entropy(0, olen, output, len); in mbedtls_hardware_poll()
Dcc3xx_psa_cipher.c27 uint8_t *output, in add_pkcs_padding() argument
31 if (NULL == output) { in add_pkcs_padding()
38 output[data_size + i] = padding_size; in add_pkcs_padding()
267 uint8_t *output, size_t output_size, size_t *output_length) in cc3xx_cipher_update() argument
331 output) ) in cc3xx_cipher_update()
339 output += block_size; in cc3xx_cipher_update()
369 output) ) in cc3xx_cipher_update()
386 output) ) in cc3xx_cipher_update()
402 output) ) in cc3xx_cipher_update()
418 output) ) in cc3xx_cipher_update()
[all …]
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/
Dmbedtls_cc_sha512_t.c111 void mbedtls_sha512_t_finish( mbedtls_sha512_context *ctx, unsigned char output[32], int is224 ) in mbedtls_sha512_t_finish()
115 if (ctx == NULL || output == NULL) { in mbedtls_sha512_t_finish()
124 CC_PalMemCopy(output, output512, MBEDTLS_SHA512_T_224_DIGEST_SIZE_BYTES); in mbedtls_sha512_t_finish()
127 CC_PalMemCopy(output, output512, MBEDTLS_SHA512_T_256_DIGEST_SIZE_BYTES); in mbedtls_sha512_t_finish()
137 unsigned char output[32], int is224 ) in mbedtls_sha512_t()
141 if (input == NULL || output == NULL) { in mbedtls_sha512_t()
148 mbedtls_sha512_t_finish( &ctx, output, is224 ); in mbedtls_sha512_t()
/trusted-firmware-m-3.6.0/platform/ext/accelerator/cc312/psa-adac/
Dadac_crypto_cc312_rng.c14 int hardware_rng_poll(uint8_t *output, size_t len, size_t *olen) in hardware_rng_poll() argument
22 if ((NULL == output) || (NULL == olen) || (0 == len)) { in hardware_rng_poll()
52 CC_PalMemCopy (output, entrSource_ptr + CC_RND_TRNG_SRC_INNER_OFFSET_WORDS, in hardware_rng_poll()
63 psa_status_t psa_adac_generate_challenge(uint8_t *output, size_t output_size) in psa_adac_generate_challenge() argument
70 status = hardware_rng_poll(output + size, output_size - size, &part) == 0 ? in psa_adac_generate_challenge()
/trusted-firmware-m-3.6.0/bl1/bl1_1/shared_lib/trng/
Dtrng_dummy.c11 int32_t bl1_trng_generate_random(uint8_t *output, size_t output_size) in bl1_trng_generate_random() argument
17 if (output == NULL) { in bl1_trng_generate_random()
21 memset(output, 4, output_size); in bl1_trng_generate_random()
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/
Drun_integration_mac.c138 unsigned char *output = NULL; in runIt_cmacProfiling() local
152 ALLOC(outputPtr, output, MBEDTLS_CIPHER_BLKSIZE_MAX); in runIt_cmacProfiling()
176 RUNIT_ASSERT_API(mbedtls_cipher_cmac_finish(ctx, output) == 0); in runIt_cmacProfiling()
209 unsigned char *output = NULL; in runIt_cmac() local
224 ALLOC(outputPtr, output, MBEDTLS_CIPHER_BLKSIZE_MAX); in runIt_cmac()
251 RUNIT_ASSERT_API(mbedtls_cipher_cmac_finish(ctx, output) == 0); in runIt_cmac()
253 RUNIT_PRINT_BUF(output, MBEDTLS_CIPHER_BLKSIZE_MAX, "output"); in runIt_cmac()
256 RUNIT_ASSERT(memcmp(output, expected_result, block_size) == 0); in runIt_cmac()
261 memset(output, 0, MBEDTLS_CIPHER_BLKSIZE_MAX); in runIt_cmac()
266 output) == 0); in runIt_cmac()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/rss/common/bl1/
Dcc312_rom_trng.c12 int32_t bl1_trng_generate_random(uint8_t *output, size_t output_size) in bl1_trng_generate_random() argument
18 if (output == NULL) { in bl1_trng_generate_random()
22 return cc3xx_rng_get_random(output, output_size); in bl1_trng_generate_random()
/trusted-firmware-m-3.6.0/secure_fw/partitions/crypto/
Dcrypto_cipher.c45 uint8_t *output = out_vec[0].base; in tfm_crypto_cipher_interface()
49 output, output_size, &out_vec[0].len); in tfm_crypto_cipher_interface()
63 uint8_t *output = out_vec[0].base; in tfm_crypto_cipher_interface()
67 output, output_size, &out_vec[0].len); in tfm_crypto_cipher_interface()
153 unsigned char *output = out_vec[0].base; in tfm_crypto_cipher_interface() local
157 output, output_size, &out_vec[0].len); in tfm_crypto_cipher_interface()
165 uint8_t *output = out_vec[1].base; in tfm_crypto_cipher_interface() local
169 output, output_size, &out_vec[1].len); in tfm_crypto_cipher_interface()
/trusted-firmware-m-3.6.0/platform/ext/target/arm/corstone1000/bl1/
Dcc312_rom_trng.c11 int32_t bl1_trng_generate_random(uint8_t *output, size_t output_size) in bl1_trng_generate_random() argument
17 if (output == NULL) { in bl1_trng_generate_random()
21 return cc3xx_rng_get_random(output, output_size); in bl1_trng_generate_random()
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/
Drun_integration_helper.c106 static int runIt_rndStdRand(void *rng_state, unsigned char *output, size_t len) in runIt_rndStdRand() argument
115 output[i] = rand(); in runIt_rndStdRand()
120 arc4random_buf( output, len ); in runIt_rndStdRand()
137 int runIt_rndBufferRand(void *rng_state, unsigned char *output, size_t len) in runIt_rndBufferRand() argument
143 return (runIt_rndStdRand( NULL, output, len)); in runIt_rndBufferRand()
151 memcpy(output, info->buf, use_len); in runIt_rndBufferRand()
157 return (runIt_rndStdRand( NULL, output + use_len, len - use_len)); in runIt_rndBufferRand()
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/lpcxpresso55s69/project_template/bl2/
Dboard.h127 #define LED_RED_INIT(output) … argument
131 … &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}); /*!< Enable target LED1 */ \
144 #define LED_BLUE_INIT(output) … argument
148 … &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}); /*!< Enable target LED1 */ \
160 #define LED_GREEN_INIT(output) \ argument
162 &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}) /*!< Enable target LED1 */
182 #define BOARD_SERIAL_MWM_RST_WRITE(output) argument
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/lpcxpresso55s69/project_template/ns/
Dboard.h127 #define LED_RED_INIT(output) … argument
131 … &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}); /*!< Enable target LED1 */ \
144 #define LED_BLUE_INIT(output) … argument
148 … &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}); /*!< Enable target LED1 */ \
160 #define LED_GREEN_INIT(output) \ argument
162 &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}) /*!< Enable target LED1 */
182 #define BOARD_SERIAL_MWM_RST_WRITE(output) argument
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/lpcxpresso55s69/project_template/s/
Dboard.h127 #define LED_RED_INIT(output) … argument
131 … &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}); /*!< Enable target LED1 */ \
144 #define LED_BLUE_INIT(output) … argument
148 … &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}); /*!< Enable target LED1 */ \
160 #define LED_GREEN_INIT(output) \ argument
162 &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}) /*!< Enable target LED1 */
182 #define BOARD_SERIAL_MWM_RST_WRITE(output) argument

1234567