/third_party/mbedtls/programs/psa/ |
D | key_ladder_demo.c | 371 size_t ciphertext_size; in wrap_data() local 418 &ciphertext_size)); in wrap_data() 426 SYS_CHECK(fwrite(buffer, 1, ciphertext_size, in wrap_data() 427 output_file) == ciphertext_size); in wrap_data() 455 size_t ciphertext_size = 0; in unwrap_data() local 479 ciphertext_size = in unwrap_data() 482 if (ciphertext_size < header.payload_size) { in unwrap_data() 489 SYS_CHECK((buffer = calloc(1, ciphertext_size)) != NULL); in unwrap_data() 490 SYS_CHECK(fread(buffer, 1, ciphertext_size, in unwrap_data() 491 input_file) == ciphertext_size); in unwrap_data() [all …]
|
/third_party/mbedtls/tests/src/drivers/ |
D | test_driver_aead.c | 42 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length) in mbedtls_test_transparent_aead_encrypt() argument 60 ciphertext, ciphertext_size, ciphertext_length); in mbedtls_test_transparent_aead_encrypt() 69 ciphertext, ciphertext_size, ciphertext_length); in mbedtls_test_transparent_aead_encrypt() 82 (void) ciphertext_size; in mbedtls_test_transparent_aead_encrypt() 350 size_t ciphertext_size, in mbedtls_test_transparent_aead_finish() argument 366 ciphertext_size, ciphertext_length, in mbedtls_test_transparent_aead_finish() 370 mbedtls_psa_aead_finish(operation, ciphertext, ciphertext_size, in mbedtls_test_transparent_aead_finish() 376 (void) ciphertext_size; in mbedtls_test_transparent_aead_finish()
|
/third_party/mbedtls/library/ |
D | psa_crypto_aead.h | 86 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length); 478 size_t ciphertext_size,
|
D | psa_crypto_aead.c | 140 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length) in mbedtls_psa_aead_encrypt() argument 155 if (ciphertext_size < (plaintext_length + operation.tag_length)) { in mbedtls_psa_aead_encrypt() 568 size_t ciphertext_size, in mbedtls_psa_aead_finish() argument 585 ciphertext, ciphertext_size, ciphertext_length, in mbedtls_psa_aead_finish() 619 (void) ciphertext_size; in mbedtls_psa_aead_finish()
|
D | psa_crypto_driver_wrappers.c | 1808 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length ) in psa_driver_wrapper_aead_encrypt() argument 1828 ciphertext, ciphertext_size, ciphertext_length ); in psa_driver_wrapper_aead_encrypt() 1842 ciphertext, ciphertext_size, ciphertext_length ) ); in psa_driver_wrapper_aead_encrypt() 2150 size_t ciphertext_size, in psa_driver_wrapper_aead_finish() argument 2162 ciphertext_size, in psa_driver_wrapper_aead_finish() 2173 ciphertext, ciphertext_size, in psa_driver_wrapper_aead_finish() 2183 (void)ciphertext_size; in psa_driver_wrapper_aead_finish()
|
D | psa_crypto_driver_wrappers.h | 255 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length); 304 size_t ciphertext_size,
|
D | psa_crypto.c | 4366 size_t ciphertext_size, in psa_aead_encrypt() argument 4399 ciphertext, ciphertext_size, ciphertext_length); in psa_aead_encrypt() 4401 if (status != PSA_SUCCESS && ciphertext_size != 0) { in psa_aead_encrypt() 4402 memset(ciphertext, 0, ciphertext_size); in psa_aead_encrypt() 4877 size_t ciphertext_size, in psa_aead_finish() argument 4899 ciphertext_size, in psa_aead_finish()
|
/third_party/mbedtls/tests/include/test/drivers/ |
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/ |
D | crypto.h | 2120 size_t ciphertext_size, 2712 size_t ciphertext_size,
|
D | crypto_se_driver.h | 746 size_t ciphertext_size,
|
/third_party/mbedtls/scripts/data_files/driver_templates/ |
D | psa_crypto_driver_wrappers.c.jinja | 1793 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length ) 1813 ciphertext, ciphertext_size, ciphertext_length ); 1827 ciphertext, ciphertext_size, ciphertext_length ) ); 2135 size_t ciphertext_size, 2147 ciphertext_size, 2158 ciphertext, ciphertext_size, 2168 (void)ciphertext_size;
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_psa_crypto.function | 5107 size_t ciphertext_size = 0; 5127 ciphertext_size = PSA_AEAD_FINISH_OUTPUT_SIZE(key_type, alg); 5129 TEST_LE_U(ciphertext_size, PSA_AEAD_FINISH_OUTPUT_MAX_SIZE); 5131 ASSERT_ALLOC(ciphertext, ciphertext_size); 5172 PSA_ASSERT(psa_aead_finish(&operation, ciphertext, ciphertext_size, 5208 size_t ciphertext_size = 0; 5230 ciphertext_size = PSA_AEAD_FINISH_OUTPUT_SIZE(key_type, alg); 5232 TEST_LE_U(ciphertext_size, PSA_AEAD_FINISH_OUTPUT_MAX_SIZE); 5234 ASSERT_ALLOC(ciphertext, ciphertext_size); 5293 TEST_EQUAL(psa_aead_finish(&operation, ciphertext, ciphertext_size, [all …]
|