/third_party/mbedtls/programs/psa/ |
H A D | key_ladder_demo.c | 359 size_t ciphertext_size; in wrap_data() local 406 &ciphertext_size)); in wrap_data() 414 SYS_CHECK(fwrite(buffer, 1, ciphertext_size, in wrap_data() 415 output_file) == ciphertext_size); in wrap_data() 443 size_t ciphertext_size = 0; in unwrap_data() local 467 ciphertext_size = in unwrap_data() 470 if (ciphertext_size < header.payload_size) { in unwrap_data() 477 SYS_CHECK((buffer = calloc(1, ciphertext_size)) != NULL); in unwrap_data() 478 SYS_CHECK(fread(buffer, 1, ciphertext_size, in unwrap_data() 479 input_file) == ciphertext_size); in unwrap_data() [all...] |
/third_party/mbedtls/tests/src/drivers/ |
H A D | test_driver_aead.c | 32 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length) in mbedtls_test_transparent_aead_encrypt() 50 ciphertext, ciphertext_size, ciphertext_length); in mbedtls_test_transparent_aead_encrypt() 59 ciphertext, ciphertext_size, ciphertext_length); in mbedtls_test_transparent_aead_encrypt() 72 (void) ciphertext_size; in mbedtls_test_transparent_aead_encrypt() 340 size_t ciphertext_size, in mbedtls_test_transparent_aead_finish() 356 ciphertext_size, ciphertext_length, in mbedtls_test_transparent_aead_finish() 360 mbedtls_psa_aead_finish(operation, ciphertext, ciphertext_size, in mbedtls_test_transparent_aead_finish() 366 (void) ciphertext_size; in mbedtls_test_transparent_aead_finish() 25 mbedtls_test_transparent_aead_encrypt( const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *nonce, size_t nonce_length, const uint8_t *additional_data, size_t additional_data_length, const uint8_t *plaintext, size_t plaintext_length, uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length) mbedtls_test_transparent_aead_encrypt() argument 337 mbedtls_test_transparent_aead_finish( mbedtls_transparent_test_driver_aead_operation_t *operation, uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length, uint8_t *tag, size_t tag_size, size_t *tag_length) mbedtls_test_transparent_aead_finish() argument
|
/third_party/mbedtls/library/ |
H A D | psa_crypto_aead.h | 57 * \param ciphertext_size Size of the ciphertext buffer in bytes. This 76 * ciphertext_size is too small. 86 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length); 437 * \param ciphertext_size Size of the \p ciphertext buffer in bytes. 478 size_t ciphertext_size,
|
H A D | psa_crypto_aead.c | 124 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length) in mbedtls_psa_aead_encrypt() 139 if (ciphertext_size < (plaintext_length + operation.tag_length)) { in mbedtls_psa_aead_encrypt() 552 size_t ciphertext_size, in mbedtls_psa_aead_finish() 569 ciphertext, ciphertext_size, ciphertext_length, in mbedtls_psa_aead_finish() 603 (void) ciphertext_size; in mbedtls_psa_aead_finish() 117 mbedtls_psa_aead_encrypt( const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *nonce, size_t nonce_length, const uint8_t *additional_data, size_t additional_data_length, const uint8_t *plaintext, size_t plaintext_length, uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length) mbedtls_psa_aead_encrypt() argument 549 mbedtls_psa_aead_finish( mbedtls_psa_aead_operation_t *operation, uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length, uint8_t *tag, size_t tag_size, size_t *tag_length) mbedtls_psa_aead_finish() argument
|
H A D | psa_crypto_driver_wrappers.c | 1435 size_t plaintext_length, uint8_t *ciphertext, size_t ciphertext_size, in psa_driver_wrapper_aead_encrypt() 1450 additional_data_length, plaintext, plaintext_length, ciphertext, ciphertext_size, ciphertext_length); in psa_driver_wrapper_aead_encrypt() 1460 ciphertext, ciphertext_size, ciphertext_length)); in psa_driver_wrapper_aead_encrypt() 1708 size_t ciphertext_size, size_t *ciphertext_length, uint8_t *tag, in psa_driver_wrapper_aead_finish() 1714 return (mbedtls_psa_aead_finish(&operation->ctx.mbedtls_ctx, ciphertext, ciphertext_size, ciphertext_length, in psa_driver_wrapper_aead_finish() 1723 ciphertext_size, ciphertext_length, tag, tag_size, in psa_driver_wrapper_aead_finish() 1733 (void)ciphertext_size; in psa_driver_wrapper_aead_finish() 1431 psa_driver_wrapper_aead_encrypt(const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *nonce, size_t nonce_length, const uint8_t *additional_data, size_t additional_data_length, const uint8_t *plaintext, size_t plaintext_length, uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length) psa_driver_wrapper_aead_encrypt() argument 1707 psa_driver_wrapper_aead_finish(psa_aead_operation_t *operation, uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length, uint8_t *tag, size_t tag_size, size_t *tag_length) psa_driver_wrapper_aead_finish() argument
|
H A D | psa_crypto_driver_wrappers.h | 287 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length); 336 size_t ciphertext_size,
|
H A D | psa_crypto.c | 4733 size_t ciphertext_size, in psa_aead_encrypt() 4760 LOCAL_OUTPUT_ALLOC(ciphertext_external, ciphertext_size, ciphertext); in psa_aead_encrypt() 4773 ciphertext, ciphertext_size, ciphertext_length); in psa_aead_encrypt() 4775 if (status != PSA_SUCCESS && ciphertext_size != 0) { in psa_aead_encrypt() 4776 memset(ciphertext, 0, ciphertext_size); in psa_aead_encrypt() 5310 size_t ciphertext_size, in psa_aead_finish() 5321 LOCAL_OUTPUT_ALLOC(ciphertext_external, ciphertext_size, ciphertext); in psa_aead_finish() 5338 ciphertext_size, in psa_aead_finish() 4724 psa_aead_encrypt(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *nonce_external, size_t nonce_length, const uint8_t *additional_data_external, size_t additional_data_length, const uint8_t *plaintext_external, size_t plaintext_length, uint8_t *ciphertext_external, size_t ciphertext_size, size_t *ciphertext_length) psa_aead_encrypt() argument 5308 psa_aead_finish(psa_aead_operation_t *operation, uint8_t *ciphertext_external, size_t ciphertext_size, size_t *ciphertext_length, uint8_t *tag_external, size_t tag_size, size_t *tag_length) psa_aead_finish() argument
|
/third_party/mbedtls/tests/include/test/drivers/ |
H A D | aead.h | 66 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length); 115 size_t ciphertext_size,
|
/third_party/mbedtls/include/psa/ |
H A D | crypto.h | 2068 * \param ciphertext_size Size of the \p ciphertext buffer in bytes. 2092 * \p ciphertext_size is too small. 2115 size_t ciphertext_size, 2647 * \param ciphertext_size Size of the \p ciphertext buffer in bytes. 2707 size_t ciphertext_size,
|
H A D | crypto_se_driver.h | 728 * \param[in] ciphertext_size Size of the `p_ciphertext` buffer in 746 size_t ciphertext_size,
|