Home
last modified time | relevance | path

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

/third_party/mbedtls/programs/psa/
Dkey_ladder_demo.c371 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/
Dtest_driver_aead.c42 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/
Dpsa_crypto_aead.h86 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length);
478 size_t ciphertext_size,
Dpsa_crypto_aead.c140 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()
Dpsa_crypto_driver_wrappers.c1808 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()
Dpsa_crypto_driver_wrappers.h255 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length);
304 size_t ciphertext_size,
Dpsa_crypto.c4366 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/
Daead.h66 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length);
115 size_t ciphertext_size,
/third_party/mbedtls/include/psa/
Dcrypto.h2120 size_t ciphertext_size,
2712 size_t ciphertext_size,
Dcrypto_se_driver.h746 size_t ciphertext_size,
/third_party/mbedtls/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.c.jinja1793 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/
Dtest_suite_psa_crypto.function5107 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 …]