Home
last modified time | relevance | path

Searched refs:ciphertext_length (Results 1 – 17 of 17) sorted by relevance

/trusted-firmware-m-3.5.0/platform/ext/accelerator/cc312/bl1/
Dcc312_rom_crypto.c142 size_t ciphertext_length, in bl1_aes_256_ctr_decrypt() argument
151 if (ciphertext_length == 0) { in bl1_aes_256_ctr_decrypt()
170 for (idx = 0; idx + 0x8000 < ciphertext_length; idx += 0x8000) { in bl1_aes_256_ctr_decrypt()
181 ciphertext + idx, ciphertext_length - idx, counter, in bl1_aes_256_ctr_decrypt()
188 size_t ciphertext_length, in aes_256_ecb_encrypt() argument
195 if (ciphertext_length == 0) { in aes_256_ecb_encrypt()
209 ciphertext_length, NULL, ciphertext, in aes_256_ecb_encrypt()
/trusted-firmware-m-3.5.0/bl1/bl1_1/shared_lib/crypto/
Dcrypto_mbedcrypto.c66 size_t ciphertext_length, in bl1_aes_256_ctr_decrypt() argument
75 if (ciphertext_length == 0) { in bl1_aes_256_ctr_decrypt()
99 rc = mbedtls_aes_crypt_ctr(&ctx, ciphertext_length, &nc_off, counter, in bl1_aes_256_ctr_decrypt()
/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/
Dcc3xx_psa_aead.h52 size_t ciphertext_size, size_t *ciphertext_length);
80 size_t ciphertext_length, uint8_t *plaintext,
225 size_t *ciphertext_length,
Dcc3xx_internal_ccm.h38 size_t *ciphertext_length);
48 size_t ciphertext_length, uint8_t *plaintext, size_t plaintext_size,
Dcc3xx_internal_gcm.h33 size_t *ciphertext_length);
43 size_t ciphertext_length, uint8_t *plaintext, size_t plaintext_size,
Dcc3xx_internal_chacha20_poly1305.h176 size_t *ciphertext_length);
186 size_t ciphertext_length, uint8_t *plaintext, size_t plaintext_size,
/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_aead.c357 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 …]
Dcc3xx_internal_chacha20_poly1305.c398 size_t *ciphertext_length) in cc3xx_encrypt_chacha20_poly1305() argument
411 ciphertext_length, tag, ciphertext_size - plaintext_length); in cc3xx_encrypt_chacha20_poly1305()
420 size_t ciphertext_length, uint8_t *plaintext, size_t plaintext_size, in cc3xx_decrypt_chacha20_poly1305() argument
434 size_t ciphertext_length_without_tag = ciphertext_length - tag_length; in cc3xx_decrypt_chacha20_poly1305()
Dcc3xx_internal_gcm.c535 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()
Dcc3xx_internal_ccm.c621 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-3.5.0/interface/include/psa/
Dcrypto_sizes.h355 #define PSA_AEAD_DECRYPT_OUTPUT_SIZE(key_type, alg, ciphertext_length) \ argument
357 (ciphertext_length) > PSA_ALG_AEAD_GET_TAG_LENGTH(alg) ? \
358 (ciphertext_length) - PSA_ALG_AEAD_GET_TAG_LENGTH(alg) : \
379 #define PSA_AEAD_DECRYPT_OUTPUT_MAX_SIZE(ciphertext_length) \ argument
380 (ciphertext_length)
Dcrypto.h2111 size_t *ciphertext_length);
2181 size_t ciphertext_length,
2703 size_t *ciphertext_length,
/trusted-firmware-m-3.5.0/bl1/bl1_1/shared_lib/interface/
Dcrypto.h40 size_t ciphertext_length,
/trusted-firmware-m-3.5.0/secure_fw/partitions/crypto/
Dcrypto_aead.c77 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-3.5.0/interface/src/
Dtfm_crypto_api.c702 size_t *ciphertext_length) in TFM_CRYPTO_API()
748 *ciphertext_length = out_vec[0].len; in TFM_CRYPTO_API()
760 size_t ciphertext_length, in TFM_CRYPTO_API()
780 {.base = ciphertext, .len = ciphertext_length}, in TFM_CRYPTO_API()
994 size_t *ciphertext_length, in TFM_CRYPTO_API()
1024 if ((out_len == 3) && (ciphertext_length == NULL)) { in TFM_CRYPTO_API()
1033 *ciphertext_length = out_vec[2].len; in TFM_CRYPTO_API()
1035 *ciphertext_length = 0; in TFM_CRYPTO_API()
/trusted-firmware-m-3.5.0/lib/ext/mbedcrypto/
D0005-CC3XX-Manually-enforce-no-software-builtin-fallback-.patch326 ciphertext, ciphertext_size, ciphertext_length ) );
343 ciphertext, ciphertext_length,
461 ciphertext_length, tag,
D0003-Driver-wrapper-entry-points-for-CC3XX.patch643 + ciphertext, ciphertext_size, ciphertext_length );
660 + ciphertext, ciphertext_length,
767 + ciphertext_length, tag, tag_size, tag_length ) );