Home
last modified time | relevance | path

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

/trusted-firmware-m-3.7.0/secure_fw/partitions/crypto/
Dcrypto_aead.c49 size_t nonce_length = aead_pack_input->nonce_length; in tfm_crypto_aead_interface()
57 status = psa_aead_encrypt(library_key, iov->alg, nonce, nonce_length, in tfm_crypto_aead_interface()
75 size_t nonce_length = aead_pack_input->nonce_length; in tfm_crypto_aead_interface()
83 status = psa_aead_decrypt(library_key, iov->alg, nonce, nonce_length, in tfm_crypto_aead_interface()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_aead.c235 size_t nonce_length, const uint8_t *additional_data, in aead_one_shot_with_multipart() argument
287 status = cc3xx_aead_set_nonce(&operation, nonce, nonce_length); in aead_one_shot_with_multipart()
354 size_t nonce_length, const uint8_t *additional_data, in cc3xx_aead_encrypt() argument
373 attributes, key_buffer, key_buffer_size, alg, nonce, nonce_length, in cc3xx_aead_encrypt()
381 attributes, key_buffer, key_buffer_size, alg, nonce, nonce_length, in cc3xx_aead_encrypt()
389 attributes, key_buffer, key_buffer_size, alg, nonce, nonce_length, in cc3xx_aead_encrypt()
402 nonce_length, additional_data, in cc3xx_aead_encrypt()
415 const uint8_t *nonce, size_t nonce_length, in cc3xx_aead_decrypt() argument
434 attributes, key_buffer, key_buffer_size, alg, nonce, nonce_length, in cc3xx_aead_decrypt()
442 attributes, key_buffer, key_buffer_size, alg, nonce, nonce_length, in cc3xx_aead_decrypt()
[all …]
Dcc3xx_internal_chacha20_poly1305.c394 size_t nonce_length, const uint8_t *additional_data, in cc3xx_encrypt_chacha20_poly1305() argument
409 nonce, nonce_length, additional_data, additional_data_length, plaintext, ciphertext, in cc3xx_encrypt_chacha20_poly1305()
417 size_t nonce_length, const uint8_t *additional_data, in cc3xx_decrypt_chacha20_poly1305() argument
440 ciphertext_length_without_tag, nonce, nonce_length, additional_data, in cc3xx_decrypt_chacha20_poly1305()
Dcc3xx_internal_gcm.c452 const uint8_t *nonce, size_t nonce_length, const uint8_t *additional_data, in gcm_crypt_and_tag() argument
469 status = gcm_init(&context, direction, nonce, nonce_length, additional_data, in gcm_crypt_and_tag()
532 size_t nonce_length, const uint8_t *additional_data, in cc3xx_gcm_encrypt() argument
557 nonce, nonce_length, additional_data, additional_data_length, tag, in cc3xx_gcm_encrypt()
566 size_t nonce_length, const uint8_t *additional_data, in cc3xx_gcm_decrypt() argument
592 nonce, nonce_length, additional_data, additional_data_length, in cc3xx_gcm_decrypt()
Dcc3xx_internal_ccm.c618 size_t nonce_length, const uint8_t *additional_data, in cc3xx_encrypt_ccm() argument
641 nonce_length, additional_data, additional_data_length, in cc3xx_encrypt_ccm()
649 size_t nonce_length, const uint8_t *additional_data, in cc3xx_decrypt_ccm() argument
678 ciphertext_length_without_tag, nonce, nonce_length, in cc3xx_decrypt_ccm()
/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/include/
Dcc3xx_psa_aead.h50 size_t nonce_length, const uint8_t *additional_data,
79 size_t nonce_length, const uint8_t *additional_data,
145 size_t nonce_length);
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/
Dcc3xx_psa_aead.h49 size_t nonce_length, const uint8_t *additional_data,
78 size_t nonce_length, const uint8_t *additional_data,
144 size_t nonce_length);
Dcc3xx_internal_ccm.h35 size_t nonce_length, const uint8_t *additional_data,
46 size_t nonce_length, const uint8_t *additional_data,
Dcc3xx_internal_gcm.h30 size_t nonce_length, const uint8_t *additional_data,
41 size_t nonce_length, const uint8_t *additional_data,
Dcc3xx_internal_chacha20_poly1305.h173 size_t nonce_length, const uint8_t *additional_data,
184 size_t nonce_length, const uint8_t *additional_data,
/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/src/
Dcc3xx_psa_aead.c53 size_t nonce_length, const uint8_t *additional_data, in aead_crypt() argument
118 if (nonce_length == 16) { in aead_crypt()
123 nonce_length -= sizeof(uint32_t); in aead_crypt()
129 initial_counter, (uint32_t *)nonce, nonce_length); in aead_crypt()
189 (uint32_t *)nonce, nonce_length); in aead_crypt()
281 size_t nonce_length) in cc3xx_aead_set_nonce() argument
284 operation, nonce, nonce_length); in cc3xx_aead_set_nonce()
761 size_t nonce_length, const uint8_t *additional_data, in cc3xx_aead_encrypt() argument
768 nonce, nonce_length, additional_data, additional_data_length, in cc3xx_aead_encrypt()
777 size_t nonce_length, const uint8_t *additional_data, in cc3xx_aead_decrypt() argument
[all …]
Dcc3xx_internal_cipher.c175 uint32_t *key, uint32_t *nonce, size_t nonce_length, in cc3xx_internal_chacha20_poly1305_gen_otk() argument
184 key, 0UL, nonce, nonce_length); in cc3xx_internal_chacha20_poly1305_gen_otk()
/trusted-firmware-m-3.7.0/interface/src/
Dtfm_crypto_api.c682 size_t nonce_length, in TFM_CRYPTO_API()
696 .aead_in = {.nonce = {0}, .nonce_length = 0} in TFM_CRYPTO_API()
713 if (nonce_length > TFM_CRYPTO_MAX_NONCE_LENGTH) { in TFM_CRYPTO_API()
718 for (size_t idx = 0; idx < nonce_length; idx++) { in TFM_CRYPTO_API()
721 iov.aead_in.nonce_length = nonce_length; in TFM_CRYPTO_API()
743 size_t nonce_length, in TFM_CRYPTO_API()
757 .aead_in = {.nonce = {0}, .nonce_length = 0} in TFM_CRYPTO_API()
774 if (nonce_length > TFM_CRYPTO_MAX_NONCE_LENGTH) { in TFM_CRYPTO_API()
779 for (size_t idx = 0; idx < nonce_length; idx++) { in TFM_CRYPTO_API()
782 iov.aead_in.nonce_length = nonce_length; in TFM_CRYPTO_API()
[all …]
/trusted-firmware-m-3.7.0/interface/include/psa/
Dcrypto.h2109 size_t nonce_length,
2182 size_t nonce_length,
2405 size_t *nonce_length);
2444 size_t nonce_length);
Dcrypto_se_driver.h728 size_t nonce_length,
770 size_t nonce_length,
/trusted-firmware-m-3.7.0/interface/include/
Dtfm_crypto_defs.h36 uint32_t nonce_length; member
/trusted-firmware-m-3.7.0/lib/ext/mbedcrypto/
D0005-Hardcode-CC3XX-entry-points.patch564 + nonce, nonce_length,
582 + nonce, nonce_length,
633 + nonce, nonce_length ) );