/trusted-firmware-m-3.7.0/platform/ext/target/arm/rse/common/ |
D | rse_trng.c | 22 int32_t bl1_trng_generate_random(uint8_t *output, size_t output_size) in bl1_trng_generate_random() argument 29 copy_size = output_size < copy_size ? output_size : copy_size; in bl1_trng_generate_random() 32 output_size -= copy_size; in bl1_trng_generate_random() 34 while(output_size >= sizeof(uint32_t)) { in bl1_trng_generate_random() 37 output_size -= sizeof(uint32_t); in bl1_trng_generate_random() 41 copy_size = output_size % sizeof(uint32_t); in bl1_trng_generate_random()
|
/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/src/ |
D | cc3xx_psa_entropy.c | 29 uint8_t *output, size_t output_size) in cc3xx_get_entropy() argument 35 CC3XX_ASSERT(output_size != 0); in cc3xx_get_entropy() 39 err = cc3xx_lowlevel_rng_get_random(output, output_size); in cc3xx_get_entropy() 44 *estimate_bits = output_size * 8; in cc3xx_get_entropy()
|
D | cc3xx_psa_cipher.c | 96 size_t output_size, in cipher_crypt() argument 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() 333 uint8_t *output, size_t output_size, size_t *output_length) in cc3xx_cipher_update() argument 364 output, output_size, output_length); in cc3xx_cipher_update() 368 output_size -= *output_length; in cc3xx_cipher_update() 376 cc3xx_lowlevel_chacha20_set_output_buffer(output, output_size); in cc3xx_cipher_update() 389 output, output_size, output_length); in cc3xx_cipher_update() 412 cc3xx_lowlevel_aes_set_output_buffer(output, output_size); in cc3xx_cipher_update() 476 uint8_t *output, size_t output_size, size_t *output_length) in cc3xx_cipher_finish() argument [all …]
|
D | cc3xx_psa_random.c | 106 size_t output_size, in cc3xx_get_random() argument 115 err = cc3xx_lowlevel_drbg_generate(&(context->state), output_size * 8, output, NULL, 0); in cc3xx_get_random() 121 *output_length = output_size; in cc3xx_get_random() 134 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_psa_external_get_random() argument 152 output, output_size, output_length); in mbedtls_psa_external_get_random()
|
D | cc3xx_psa_asymmetric_encryption.c | 37 uint8_t *output, size_t output_size, in cc3xx_asymmetric_encrypt() argument 50 uint8_t *output, size_t output_size, in cc3xx_asymmetric_decrypt() argument
|
D | cc3xx_psa_aead.c | 56 size_t output_size, size_t *output_length, in aead_crypt() argument 74 CC3XX_ASSERT(!output_size ^ (output != NULL)); in aead_crypt() 86 if (output_size < input_length + tag_len) { in aead_crypt() 90 if (output_size < input_length - tag_len) { in aead_crypt() 142 cc3xx_lowlevel_chacha20_set_output_buffer(output, output_size); in aead_crypt() 207 cc3xx_lowlevel_aes_set_output_buffer(output, output_size); in aead_crypt() 383 size_t output_size, in cc3xx_aead_update() argument 414 output, output_size, output_length); in cc3xx_aead_update() 418 output_size -= *output_length; in cc3xx_aead_update() 426 cc3xx_lowlevel_chacha20_set_output_buffer(output, output_size); in cc3xx_aead_update() [all …]
|
/trusted-firmware-m-3.7.0/bl1/bl1_1/shared_lib/trng/ |
D | trng_dummy.c | 11 int32_t bl1_trng_generate_random(uint8_t *output, size_t output_size) in bl1_trng_generate_random() argument 13 if (output_size == 0) { in bl1_trng_generate_random() 21 memset(output, 4, output_size); in bl1_trng_generate_random()
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/rse/common/bl1/ |
D | cc312_rom_trng.c | 12 int32_t bl1_trng_generate_random(uint8_t *output, size_t output_size) in bl1_trng_generate_random() argument 14 if (output_size == 0) { 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/ |
D | cc312_rom_trng.c | 11 int32_t bl1_trng_generate_random(uint8_t *output, size_t output_size) in bl1_trng_generate_random() argument 13 if (output_size == 0) { 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/secure_fw/partitions/crypto/ |
D | crypto_cipher.c | 46 size_t output_size = out_vec[0].len; in tfm_crypto_cipher_interface() 49 output, output_size, &out_vec[0].len); in tfm_crypto_cipher_interface() 64 size_t output_size = out_vec[0].len; in tfm_crypto_cipher_interface() 67 output, output_size, &out_vec[0].len); in tfm_crypto_cipher_interface() 154 size_t output_size = out_vec[0].len; in tfm_crypto_cipher_interface() local 157 output, output_size, &out_vec[0].len); in tfm_crypto_cipher_interface() 166 size_t output_size = out_vec[1].len; in tfm_crypto_cipher_interface() local 169 output, output_size, &out_vec[1].len); in tfm_crypto_cipher_interface()
|
D | crypto_rng.c | 34 size_t output_size = out_vec[0].len; in tfm_crypto_random_interface() 36 return psa_generate_random(output, output_size); in tfm_crypto_random_interface()
|
D | crypto_asymmetric.c | 122 size_t output_size = out_vec[0].len; in tfm_crypto_asymmetric_encrypt_interface() local 127 output, output_size, in tfm_crypto_asymmetric_encrypt_interface() 141 size_t output_size = out_vec[0].len; in tfm_crypto_asymmetric_encrypt_interface() local 146 output, output_size, in tfm_crypto_asymmetric_encrypt_interface()
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_psa_key_agreement.c | 31 uint8_t *output, size_t output_size, size_t *output_length, in cc3xx_key_agreement() argument 52 &output_size) ) in cc3xx_key_agreement() 90 &output_size) ) in cc3xx_key_agreement() 97 *output_length = output_size; in cc3xx_key_agreement()
|
D | cc3xx_psa_asymmetric_encryption.c | 42 uint8_t *output, size_t output_size, size_t *output_length) in cc3xx_internal_rsa_encrypt() argument 144 uint8_t *output, size_t output_size, size_t *output_length) in cc3xx_internal_rsa_decrypt() argument 175 *output_length = output_size; in cc3xx_internal_rsa_decrypt() 231 uint8_t *output, size_t output_size, in cc3xx_asymmetric_encrypt() argument 243 if (output_size < in cc3xx_asymmetric_encrypt() 249 salt, salt_length, output, output_size, output_length); in cc3xx_asymmetric_encrypt() 271 uint8_t *output, size_t output_size, in cc3xx_asymmetric_decrypt() argument 287 salt, salt_length, output, output_size, output_length); in cc3xx_asymmetric_decrypt()
|
D | cc3xx_psa_cipher.c | 28 size_t output_size, in add_pkcs_padding() argument 35 uint8_t padding_size = output_size - data_size; in add_pkcs_padding() 267 uint8_t *output, size_t output_size, size_t *output_length) in cc3xx_cipher_update() argument 281 if (output_size < expected_output_size) { in cc3xx_cipher_update() 430 if (*output_length > output_size) { in cc3xx_cipher_update() 442 output_size, in cc3xx_cipher_update() 460 size_t output_size, in cc3xx_cipher_finish() argument 552 if (output_size < data_len) { in cc3xx_cipher_finish() 580 output_size, output_length); in cc3xx_cipher_finish() 624 size_t output_size, in cc3xx_cipher_encrypt() argument [all …]
|
D | cc3xx_psa_entropy.c | 33 uint8_t *output, size_t output_size) in cc3xx_get_entropy() argument 55 if (output_size == 0) { in cc3xx_get_entropy() 86 output_size); in cc3xx_get_entropy()
|
D | cc3xx_internal_chacha20.c | 130 size_t output_size, in cc3xx_chacha20_update() argument 145 if (output_size < input_len) { in cc3xx_chacha20_update() 211 size_t output_size, in cc3xx_chacha20_finish() argument 216 (void)output_size; in cc3xx_chacha20_finish()
|
/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/include/ |
D | cc3xx_psa_cipher.h | 102 uint8_t *output, size_t output_size, size_t *output_length); 117 uint8_t *output, size_t output_size, size_t *output_length); 157 size_t output_size, 184 size_t output_size,
|
D | cc3xx_psa_asymmetric_encryption.h | 52 uint8_t *output, size_t output_size, 80 uint8_t *output, size_t output_size,
|
D | cc3xx_internal_cipher.h | 90 uint8_t *output, size_t output_size, size_t *output_length); 112 uint8_t *output, size_t output_size, size_t *output_length);
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/ |
D | cc3xx_psa_cipher.h | 102 uint8_t *output, size_t output_size, size_t *output_length); 117 uint8_t *output, size_t output_size, size_t *output_length); 157 size_t output_size, 184 size_t output_size,
|
D | cc3xx_psa_asymmetric_encryption.h | 50 uint8_t *output, size_t output_size, 78 uint8_t *output, size_t output_size,
|
D | cc3xx_internal_chacha20.h | 65 size_t output_size, 73 size_t output_size,
|
/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/psa-adac/ |
D | adac_crypto_cc312_rng.c | 63 psa_status_t psa_adac_generate_challenge(uint8_t *output, size_t output_size) in psa_adac_generate_challenge() argument 68 while ((status == PSA_SUCCESS) && (size < output_size)) { in psa_adac_generate_challenge() 70 status = hardware_rng_poll(output + size, output_size - size, &part) == 0 ? in psa_adac_generate_challenge()
|
/trusted-firmware-m-3.7.0/secure_fw/partitions/internal_trusted_storage/ |
D | its_crypto_interface.c | 92 const size_t output_size, in tfm_its_crypt_file() argument 143 output_size, in tfm_its_crypt_file() 153 output_size); in tfm_its_crypt_file()
|