Home
last modified time | relevance | path

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

/third_party/mbedtls/library/
Dpsa_crypto_aead.c148 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length ) in mbedtls_psa_aead_encrypt() argument
228 *ciphertext_length = plaintext_length + operation.tag_length; in mbedtls_psa_aead_encrypt()
243 size_t ciphertext_length, in psa_aead_unpadded_locate_tag() argument
248 if( tag_length > ciphertext_length ) in psa_aead_unpadded_locate_tag()
250 payload_length = ciphertext_length - tag_length; in psa_aead_unpadded_locate_tag()
263 const uint8_t *ciphertext, size_t ciphertext_length, in mbedtls_psa_aead_decrypt() argument
277 ciphertext, ciphertext_length, in mbedtls_psa_aead_decrypt()
287 ciphertext_length - operation.tag_length, in mbedtls_psa_aead_decrypt()
301 ciphertext_length - operation.tag_length, in mbedtls_psa_aead_decrypt()
320 ciphertext_length - operation.tag_length, in mbedtls_psa_aead_decrypt()
[all …]
Dpsa_crypto_aead.h86 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length );
148 const uint8_t *ciphertext, size_t ciphertext_length,
479 size_t *ciphertext_length,
Dpsa_crypto_driver_wrappers.c1521 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length ) in psa_driver_wrapper_aead_encrypt() argument
1541 ciphertext, ciphertext_size, ciphertext_length ); in psa_driver_wrapper_aead_encrypt()
1555 ciphertext, ciphertext_size, ciphertext_length ) ); in psa_driver_wrapper_aead_encrypt()
1572 const uint8_t *ciphertext, size_t ciphertext_length, in psa_driver_wrapper_aead_decrypt() argument
1592 ciphertext, ciphertext_length, in psa_driver_wrapper_aead_decrypt()
1606 ciphertext, ciphertext_length, in psa_driver_wrapper_aead_decrypt()
1864 size_t *ciphertext_length, in psa_driver_wrapper_aead_finish() argument
1876 ciphertext_length, tag, in psa_driver_wrapper_aead_finish()
1887 ciphertext_length, tag, tag_size, tag_length ) ); in psa_driver_wrapper_aead_finish()
1897 (void)ciphertext_length; in psa_driver_wrapper_aead_finish()
Dpsa_crypto_driver_wrappers.h219 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length );
227 const uint8_t *ciphertext, size_t ciphertext_length,
269 size_t *ciphertext_length,
Dpsa_crypto.c3724 size_t *ciphertext_length ) in psa_aead_encrypt() argument
3729 *ciphertext_length = 0; in psa_aead_encrypt()
3753 ciphertext, ciphertext_size, ciphertext_length ); in psa_aead_encrypt()
3771 size_t ciphertext_length, in psa_aead_decrypt() argument
3802 ciphertext, ciphertext_length, in psa_aead_decrypt()
4204 size_t *ciphertext_length, in psa_aead_finish() argument
4211 *ciphertext_length = 0; in psa_aead_finish()
4226 ciphertext_length, in psa_aead_finish()
/third_party/mbedtls/tests/src/drivers/
Dtest_driver_aead.c38 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length ) in mbedtls_test_transparent_aead_encrypt() argument
57 ciphertext, ciphertext_size, ciphertext_length ); in mbedtls_test_transparent_aead_encrypt()
71 (void) ciphertext_length; in mbedtls_test_transparent_aead_encrypt()
85 const uint8_t *ciphertext, size_t ciphertext_length, in mbedtls_test_transparent_aead_decrypt() argument
104 ciphertext, ciphertext_length, in mbedtls_test_transparent_aead_decrypt()
116 (void) ciphertext_length; in mbedtls_test_transparent_aead_decrypt()
315 size_t *ciphertext_length, in mbedtls_test_transparent_aead_finish() argument
332 ciphertext_length, tag, tag_size, in mbedtls_test_transparent_aead_finish()
338 (void) ciphertext_length; in mbedtls_test_transparent_aead_finish()
/third_party/mbedtls/tests/src/
Dpsa_exercise_key.c171 size_t ciphertext_length = sizeof( ciphertext ); in exercise_cipher_key() local
184 &ciphertext_length ) ); in exercise_cipher_key()
186 ciphertext + ciphertext_length, in exercise_cipher_key()
187 sizeof( ciphertext ) - ciphertext_length, in exercise_cipher_key()
189 ciphertext_length += part_length; in exercise_cipher_key()
211 ciphertext, ciphertext_length, in exercise_cipher_key()
243 size_t ciphertext_length = sizeof( ciphertext ); in exercise_aead_key() local
273 &ciphertext_length ) ); in exercise_aead_key()
285 ciphertext, ciphertext_length, in exercise_aead_key()
387 size_t ciphertext_length = sizeof( ciphertext ); in exercise_asymmetric_encryption_key() local
[all …]
/third_party/mbedtls/tests/include/test/drivers/
Daead.h66 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length );
74 const uint8_t *ciphertext, size_t ciphertext_length,
116 size_t *ciphertext_length,
/third_party/mbedtls/include/psa/
Dcrypto_sizes.h351 #define PSA_AEAD_DECRYPT_OUTPUT_SIZE(key_type, alg, ciphertext_length) \ argument
353 (ciphertext_length) > PSA_ALG_AEAD_GET_TAG_LENGTH(alg) ? \
354 (ciphertext_length) - PSA_ALG_AEAD_GET_TAG_LENGTH(alg) : \
375 #define PSA_AEAD_DECRYPT_OUTPUT_MAX_SIZE(ciphertext_length) \ argument
376 (ciphertext_length)
Dcrypto.h2140 size_t *ciphertext_length);
2210 size_t ciphertext_length,
2741 size_t *ciphertext_length,
Dcrypto_se_driver.h786 size_t ciphertext_length,
/third_party/mbedtls/tests/suites/
Dtest_suite_psa_crypto.function4037 size_t ciphertext_length = 0;
4100 &ciphertext_length ) );
4103 &ciphertext_length, tag_buffer,
4138 size_t ciphertext_length = 0;
4214 &ciphertext_length ) );
4217 &ciphertext_length, tag_buffer,
4252 size_t ciphertext_length = 0;
4295 output, output_size, &ciphertext_length );
4303 &ciphertext_length, tag_buffer,
4338 size_t ciphertext_length = 0;
[all …]