Home
last modified time | relevance | path

Searched refs:plaintext_length (Results 1 – 14 of 14) sorted by relevance

/mbedtls-3.4.0/tests/src/drivers/
Dtest_driver_aead.c41 const uint8_t *plaintext, size_t plaintext_length, in mbedtls_test_transparent_aead_encrypt() argument
62 plaintext, plaintext_length, in mbedtls_test_transparent_aead_encrypt()
71 plaintext, plaintext_length, in mbedtls_test_transparent_aead_encrypt()
83 (void) plaintext_length; in mbedtls_test_transparent_aead_encrypt()
101 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length ) in mbedtls_test_transparent_aead_decrypt() argument
122 plaintext, plaintext_size, plaintext_length ); in mbedtls_test_transparent_aead_decrypt()
131 plaintext, plaintext_size, plaintext_length ); in mbedtls_test_transparent_aead_decrypt()
145 (void) plaintext_length; in mbedtls_test_transparent_aead_decrypt()
265 size_t plaintext_length ) in mbedtls_test_transparent_aead_set_lengths() argument
280 plaintext_length ); in mbedtls_test_transparent_aead_set_lengths()
[all …]
/mbedtls-3.4.0/library/
Dpsa_crypto_aead.c133 const uint8_t *plaintext, size_t plaintext_length, in mbedtls_psa_aead_encrypt() argument
148 if( ciphertext_size < ( plaintext_length + operation.tag_length ) ) in mbedtls_psa_aead_encrypt()
153 tag = ciphertext + plaintext_length; in mbedtls_psa_aead_encrypt()
160 plaintext_length, in mbedtls_psa_aead_encrypt()
175 plaintext_length, in mbedtls_psa_aead_encrypt()
193 plaintext_length, in mbedtls_psa_aead_encrypt()
214 *ciphertext_length = plaintext_length + operation.tag_length; in mbedtls_psa_aead_encrypt()
250 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length ) in mbedtls_psa_aead_decrypt() argument
326 *plaintext_length = ciphertext_length - operation.tag_length; in mbedtls_psa_aead_decrypt()
332 *plaintext_length = ciphertext_length - operation.tag_length; in mbedtls_psa_aead_decrypt()
[all …]
Dpsa_crypto_aead.h85 const uint8_t *plaintext, size_t plaintext_length,
149 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length );
309 size_t plaintext_length );
Dpsa_crypto_driver_wrappers.c1853 const uint8_t *plaintext, size_t plaintext_length, in psa_driver_wrapper_aead_encrypt() argument
1876 plaintext, plaintext_length, in psa_driver_wrapper_aead_encrypt()
1888 plaintext, plaintext_length, in psa_driver_wrapper_aead_encrypt()
1901 plaintext, plaintext_length, in psa_driver_wrapper_aead_encrypt()
1920 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length ) in psa_driver_wrapper_aead_decrypt() argument
1943 plaintext, plaintext_size, plaintext_length ); in psa_driver_wrapper_aead_decrypt()
1955 plaintext, plaintext_size, plaintext_length ); in psa_driver_wrapper_aead_decrypt()
1968 plaintext, plaintext_size, plaintext_length ) ); in psa_driver_wrapper_aead_decrypt()
2146 size_t plaintext_length ) in psa_driver_wrapper_aead_set_lengths() argument
2154 plaintext_length ) ); in psa_driver_wrapper_aead_set_lengths()
[all …]
Dpsa_crypto_driver_wrappers.h217 const uint8_t *plaintext, size_t plaintext_length,
227 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length );
249 size_t plaintext_length );
277 size_t *plaintext_length,
Dpsa_crypto.c3609 size_t plaintext_length, in psa_aead_encrypt() argument
3641 plaintext, plaintext_length, in psa_aead_encrypt()
3663 size_t *plaintext_length ) in psa_aead_decrypt() argument
3668 *plaintext_length = 0; in psa_aead_decrypt()
3693 plaintext, plaintext_size, plaintext_length ); in psa_aead_decrypt()
3934 size_t plaintext_length ) in psa_aead_set_lengths() argument
3960 (( uint64_t ) plaintext_length ) > 0xFFFFFFFE0ull ) in psa_aead_set_lengths()
3987 plaintext_length ); in psa_aead_set_lengths()
3993 operation->body_remaining = plaintext_length; in psa_aead_set_lengths()
4181 size_t *plaintext_length, in psa_aead_verify() argument
[all …]
/mbedtls-3.4.0/tests/include/test/drivers/
Daead.h65 const uint8_t *plaintext, size_t plaintext_length,
75 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length );
97 size_t plaintext_length );
125 size_t *plaintext_length,
/mbedtls-3.4.0/include/psa/
Dcrypto_sizes.h307 #define PSA_AEAD_ENCRYPT_OUTPUT_SIZE(key_type, alg, plaintext_length) \ argument
309 (plaintext_length) + PSA_ALG_AEAD_GET_TAG_LENGTH(alg) : \
330 #define PSA_AEAD_ENCRYPT_OUTPUT_MAX_SIZE(plaintext_length) \ argument
331 ((plaintext_length) + PSA_AEAD_TAG_MAX_SIZE)
Dcrypto.h2118 size_t plaintext_length,
2194 size_t *plaintext_length);
2494 size_t plaintext_length);
2796 size_t *plaintext_length,
Dcrypto_se_driver.h744 size_t plaintext_length,
/mbedtls-3.4.0/tests/src/
Dpsa_exercise_key.c252 size_t plaintext_length = sizeof( ciphertext ); in exercise_aead_key() local
285 &plaintext_length ), in exercise_aead_key()
398 size_t plaintext_length = 16; in exercise_asymmetric_encryption_key() local
403 plaintext, plaintext_length, in exercise_asymmetric_encryption_key()
416 &plaintext_length ); in exercise_asymmetric_encryption_key()
/mbedtls-3.4.0/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.c.jinja1545 const uint8_t *plaintext, size_t plaintext_length,
1565 plaintext, plaintext_length,
1579 plaintext, plaintext_length,
1598 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length )
1618 plaintext, plaintext_size, plaintext_length );
1632 plaintext, plaintext_size, plaintext_length ) );
1778 size_t plaintext_length )
1786 plaintext_length ) );
1795 ad_length, plaintext_length ) );
1804 (void)plaintext_length;
[all …]
/mbedtls-3.4.0/tests/suites/
Dtest_suite_psa_crypto.function5598 size_t plaintext_length = 0;
5653 &plaintext_length ) );
5663 &plaintext_length,
Dtest_suite_ssl.function4082 /* Minimal non-zero plaintext_length giving desired padding.