Home
last modified time | relevance | path

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

123456789

/trusted-firmware-m-3.7.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()
/trusted-firmware-m-3.7.0/platform/ext/target/arm/rse/common/
Drse_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.7.0/interface/include/mbedtls/
Daes.h250 unsigned char output[16]);
300 unsigned char *output);
345 unsigned char *output);
395 unsigned char *output);
439 unsigned char *output);
494 unsigned char *output);
578 unsigned char *output);
595 unsigned char output[16]);
612 unsigned char output[16]);
Dpkcs5.h87 unsigned char *output);
128 unsigned char *output, size_t output_size,
153 uint32_t key_length, unsigned char *output);
180 unsigned char *output);
/trusted-firmware-m-3.7.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.7.0/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/src/
Dcc3xx_psa_entropy.c29 uint8_t *output, size_t output_size) in cc3xx_get_entropy() argument
33 CC3XX_ASSERT(output != NULL); in cc3xx_get_entropy()
39 err = cc3xx_lowlevel_rng_get_random(output, output_size); in cc3xx_get_entropy()
56 int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, size_t *olen) in mbedtls_hardware_poll() argument
59 return cc3xx_get_entropy(0, olen, output, len); in mbedtls_hardware_poll()
Dcc3xx_psa_cipher.c95 uint8_t *output, in cipher_crypt() argument
109 CC3XX_ASSERT(output != NULL); in cipher_crypt()
151 cc3xx_lowlevel_chacha20_set_output_buffer(output, output_size); in cipher_crypt()
213 cc3xx_lowlevel_aes_set_output_buffer(output, output_size); in cipher_crypt()
258 &output[*output_length - last_block_length], in cipher_crypt()
333 uint8_t *output, size_t output_size, size_t *output_length) in cc3xx_cipher_update() argument
341 CC3XX_ASSERT(output != NULL); in cc3xx_cipher_update()
364 output, output_size, output_length); in cc3xx_cipher_update()
369 output += *output_length; in cc3xx_cipher_update()
376 cc3xx_lowlevel_chacha20_set_output_buffer(output, output_size); in cc3xx_cipher_update()
[all …]
Dcc3xx_psa_random.c105 uint8_t *output, in cc3xx_get_random() argument
112 CC3XX_ASSERT(output != NULL); in cc3xx_get_random()
115 err = cc3xx_lowlevel_drbg_generate(&(context->state), output_size * 8, output, NULL, 0); in cc3xx_get_random()
134 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_psa_external_get_random() argument
139 CC3XX_ASSERT(output != NULL); in mbedtls_psa_external_get_random()
152 output, output_size, output_length); in mbedtls_psa_external_get_random()
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/hal/accelerator/
Daes_alt.c309 unsigned char output[16]) in mbedtls_aes_crypt_ecb()
315 AES_VALIDATE_RET( output != NULL ); in mbedtls_aes_crypt_ecb()
333 ret = mbedtls_internal_aes_decrypt(ctx, input, output); in mbedtls_aes_crypt_ecb()
337 ret = mbedtls_internal_aes_encrypt(ctx, input, output); in mbedtls_aes_crypt_ecb()
373 unsigned char *output) in mbedtls_aes_crypt_cbc() argument
383 AES_VALIDATE_RET( output != NULL ); in mbedtls_aes_crypt_cbc()
413 …if (HAL_CRYP_Decrypt(&ctx->hcryp_aes, (uint32_t *)input, length, (uint32_t *)output, ST_AES_TIMEOU… in mbedtls_aes_crypt_cbc()
424 …if (HAL_CRYP_Encrypt(&ctx->hcryp_aes, (uint32_t *)input, length, (uint32_t *)output, ST_AES_TIMEOU… in mbedtls_aes_crypt_cbc()
429 memcpy(iv, &output[length - 16], 16); in mbedtls_aes_crypt_cbc()
502 unsigned char *output ) in mbedtls_aes_crypt_xts() argument
[all …]
Dccm_alt.c171 const unsigned char *input, unsigned char *output, in ccm_auth_crypt() argument
322 (uint32_t *)output, in ccm_auth_crypt()
334 (uint32_t *)output, in ccm_auth_crypt()
374 const unsigned char *input, unsigned char *output, in mbedtls_ccm_star_encrypt_and_tag() argument
381 CCM_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_ccm_star_encrypt_and_tag()
384 add, add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_star_encrypt_and_tag()
390 const unsigned char *input, unsigned char *output, in mbedtls_ccm_encrypt_and_tag() argument
397 CCM_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_ccm_encrypt_and_tag()
403 add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_encrypt_and_tag()
412 const unsigned char *input, unsigned char *output, in mbedtls_ccm_star_auth_decrypt() argument
[all …]
Dgcm_alt.c82 unsigned char *output );
300 unsigned char output[16] ) in gcm_mult()
335 PUT_UINT32_BE( zh >> 32, output, 0 ); in gcm_mult()
336 PUT_UINT32_BE( zh, output, 4 ); in gcm_mult()
337 PUT_UINT32_BE( zl >> 32, output, 8 ); in gcm_mult()
338 PUT_UINT32_BE( zl, output, 12 ); in gcm_mult()
425 unsigned char *output ) in gcm_update() argument
430 unsigned char *out_p = output; in gcm_update()
435 GCM_VALIDATE_RET( length == 0 || output != NULL ); in gcm_update()
437 if( output > input && (size_t) ( output - input ) < length ) in gcm_update()
[all …]
/trusted-firmware-m-3.7.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.7.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.7.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.7.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.7.0/platform/ext/target/arm/rse/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_lowlevel_rng_get_random(output, output_size); in bl1_trng_generate_random()
/trusted-firmware-m-3.7.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_lowlevel_rng_get_random(output, output_size); in bl1_trng_generate_random()
/trusted-firmware-m-3.7.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.7.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()

123456789