| /trusted-firmware-m-latest/platform/ext/target/arm/corstone1000/bl1/ |
| D | cc312_rom_crypto.c | 113 size_t ciphertext_length, in bl1_aes_256_ctr_decrypt() argument 122 if (ciphertext_length == 0) { in bl1_aes_256_ctr_decrypt() 152 cc3xx_lowlevel_aes_set_output_buffer(plaintext, ciphertext_length); in bl1_aes_256_ctr_decrypt() 153 cc3xx_lowlevel_aes_update(ciphertext, ciphertext_length); in bl1_aes_256_ctr_decrypt() 161 size_t ciphertext_length, in aes_256_ecb_encrypt() argument 169 if (ciphertext_length == 0) { in aes_256_ecb_encrypt() 190 cc3xx_lowlevel_aes_set_output_buffer(ciphertext, ciphertext_length); in aes_256_ecb_encrypt() 191 cc3xx_lowlevel_aes_update(plaintext, ciphertext_length); in aes_256_ecb_encrypt()
|
| /trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/ |
| D | cc3xx_psa_aead.h | 52 size_t ciphertext_size, size_t *ciphertext_length); 80 size_t ciphertext_length, uint8_t *plaintext, 225 size_t *ciphertext_length,
|
| D | cc3xx_internal_ccm.h | 38 size_t *ciphertext_length); 48 size_t ciphertext_length, uint8_t *plaintext, size_t plaintext_size,
|
| D | cc3xx_internal_gcm.h | 33 size_t *ciphertext_length); 43 size_t ciphertext_length, uint8_t *plaintext, size_t plaintext_size,
|
| D | cc3xx_internal_chacha20_poly1305.h | 176 size_t *ciphertext_length); 186 size_t ciphertext_length, uint8_t *plaintext, size_t plaintext_size,
|
| /trusted-firmware-m-latest/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/include/ |
| D | cc3xx_psa_aead.h | 53 size_t ciphertext_size, size_t *ciphertext_length); 81 size_t ciphertext_length, uint8_t *plaintext, 226 size_t *ciphertext_length,
|
| /trusted-firmware-m-latest/platform/ext/target/arm/rse/common/bl1/ |
| D | cc312_rom_crypto.c | 117 size_t ciphertext_length, in bl1_aes_256_ctr_decrypt() argument 126 if (ciphertext_length == 0) { in bl1_aes_256_ctr_decrypt() 155 cc3xx_lowlevel_aes_set_output_buffer(plaintext, ciphertext_length); in bl1_aes_256_ctr_decrypt() 156 cc3xx_lowlevel_aes_update(ciphertext, ciphertext_length); in bl1_aes_256_ctr_decrypt()
|
| /trusted-firmware-m-latest/bl1/bl1_1/shared_lib/crypto/ |
| D | crypto_mbedcrypto.c | 107 size_t ciphertext_length, in bl1_aes_256_ctr_decrypt() argument 117 if (ciphertext_length == 0) { in bl1_aes_256_ctr_decrypt() 147 rc = mbedtls_aes_crypt_ctr(&ctx, ciphertext_length, &nc_off, counter, in bl1_aes_256_ctr_decrypt()
|
| /trusted-firmware-m-latest/platform/ext/common/template/ |
| D | tfm_hal_its_encryption.c | 186 size_t ciphertext_length; in tfm_hal_its_aead_encrypt() local 206 &ciphertext_length); in tfm_hal_its_aead_encrypt() 213 ciphertext_length -= TFM_ITS_AUTH_TAG_LENGTH; in tfm_hal_its_aead_encrypt() 214 (void)memcpy(tag, (ciphertext + ciphertext_length), tag_size); in tfm_hal_its_aead_encrypt()
|
| /trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
| D | cc3xx_psa_aead.c | 357 size_t ciphertext_size, size_t *ciphertext_length) in cc3xx_aead_encrypt() argument 375 plaintext_length, ciphertext, ciphertext_size, ciphertext_length); in cc3xx_aead_encrypt() 383 plaintext_length, ciphertext, ciphertext_size, ciphertext_length); in cc3xx_aead_encrypt() 391 plaintext_length, ciphertext, ciphertext_size, ciphertext_length); in cc3xx_aead_encrypt() 405 ciphertext_size, ciphertext_length, in cc3xx_aead_encrypt() 417 const uint8_t *ciphertext, size_t ciphertext_length, in cc3xx_aead_decrypt() argument 436 ciphertext_length, plaintext, plaintext_size, plaintext_length); in cc3xx_aead_decrypt() 444 ciphertext_length, plaintext, plaintext_size, plaintext_length); in cc3xx_aead_decrypt() 452 ciphertext_length, plaintext, plaintext_size, plaintext_length); in cc3xx_aead_decrypt() 467 ciphertext_length, plaintext, in cc3xx_aead_decrypt() [all …]
|
| D | cc3xx_internal_chacha20_poly1305.c | 397 size_t *ciphertext_length) in cc3xx_encrypt_chacha20_poly1305() argument 410 ciphertext_length, tag, ciphertext_size - plaintext_length); in cc3xx_encrypt_chacha20_poly1305() 419 size_t ciphertext_length, uint8_t *plaintext, size_t plaintext_size, in cc3xx_decrypt_chacha20_poly1305() argument 433 size_t ciphertext_length_without_tag = ciphertext_length - tag_length; in cc3xx_decrypt_chacha20_poly1305()
|
| D | cc3xx_internal_gcm.c | 535 size_t *ciphertext_length) in cc3xx_gcm_encrypt() argument 558 tag_length, plaintext, plaintext_length, ciphertext, ciphertext_length); in cc3xx_gcm_encrypt() 568 size_t ciphertext_length, uint8_t *plaintext, size_t plaintext_size, in cc3xx_gcm_decrypt() argument 581 size_t ciphertext_length_without_tag = ciphertext_length - tag_length; in cc3xx_gcm_decrypt()
|
| D | cc3xx_internal_ccm.c | 621 size_t *ciphertext_length) in cc3xx_encrypt_ccm() argument 642 plaintext, ciphertext, ciphertext_length, tag, in cc3xx_encrypt_ccm() 651 size_t ciphertext_length, uint8_t *plaintext, size_t plaintext_size, in cc3xx_decrypt_ccm() argument 662 size_t ciphertext_length_without_tag = ciphertext_length - tag_length; in cc3xx_decrypt_ccm()
|
| /trusted-firmware-m-latest/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/src/ |
| D | cc3xx_psa_aead.c | 517 size_t *ciphertext_length, in cc3xx_aead_finish() argument 529 CC3XX_ASSERT(ciphertext_length != NULL); in cc3xx_aead_finish() 534 *ciphertext_length = 0; in cc3xx_aead_finish() 581 *ciphertext_length = bytes_produced_on_finish - operation->last_output_num_bytes; in cc3xx_aead_finish() 607 *ciphertext_length = bytes_produced_on_finish - operation->last_output_num_bytes; in cc3xx_aead_finish() 766 size_t ciphertext_size, size_t *ciphertext_length) in cc3xx_aead_encrypt() argument 771 plaintext, plaintext_length, ciphertext, ciphertext_size, ciphertext_length, in cc3xx_aead_encrypt() 781 size_t ciphertext_length, uint8_t *plaintext, in cc3xx_aead_decrypt() argument 787 ciphertext, ciphertext_length, plaintext, plaintext_size, plaintext_length, in cc3xx_aead_decrypt()
|
| /trusted-firmware-m-latest/interface/include/psa/ |
| D | crypto_sizes.h | 413 #define PSA_AEAD_DECRYPT_OUTPUT_SIZE(key_type, alg, ciphertext_length) \ argument 415 (ciphertext_length) > PSA_ALG_AEAD_GET_TAG_LENGTH(alg) ? \ 416 (ciphertext_length) - PSA_ALG_AEAD_GET_TAG_LENGTH(alg) : \ 437 #define PSA_AEAD_DECRYPT_OUTPUT_MAX_SIZE(ciphertext_length) \ argument 438 (ciphertext_length)
|
| D | crypto.h | 2119 size_t *ciphertext_length); 2189 size_t ciphertext_length, 2711 size_t *ciphertext_length,
|
| D | crypto_se_driver.h | 774 size_t ciphertext_length,
|
| /trusted-firmware-m-latest/bl1/bl1_1/shared_lib/interface/ |
| D | crypto.h | 40 size_t ciphertext_length,
|
| /trusted-firmware-m-latest/secure_fw/partitions/crypto/ |
| D | crypto_aead.c | 77 size_t ciphertext_length = in_vec[1].len; in tfm_crypto_aead_interface() 85 ciphertext, ciphertext_length, in tfm_crypto_aead_interface()
|
| /trusted-firmware-m-latest/interface/src/ |
| D | tfm_crypto_api.c | 689 size_t *ciphertext_length) in TFM_CRYPTO_API() 735 *ciphertext_length = out_vec[0].len; in TFM_CRYPTO_API() 747 size_t ciphertext_length, in TFM_CRYPTO_API() 767 {.base = ciphertext, .len = ciphertext_length}, in TFM_CRYPTO_API() 981 size_t *ciphertext_length, in TFM_CRYPTO_API() 1011 if ((out_len == 3) && (ciphertext_length == NULL)) { in TFM_CRYPTO_API() 1020 *ciphertext_length = out_vec[2].len; in TFM_CRYPTO_API() 1022 *ciphertext_length = 0; in TFM_CRYPTO_API()
|
| /trusted-firmware-m-latest/lib/ext/mbedcrypto/ |
| D | 0005-Hardcode-CC3XX-entry-points.patch | 572 + ciphertext, ciphertext_size, ciphertext_length ); 589 + ciphertext, ciphertext_length, 692 + ciphertext_length, tag, tag_size, tag_length ) );
|