Home
last modified time | relevance | path

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

/mbedtls-3.7.0/programs/psa/
Dkey_ladder_demo.c359 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 …]
/mbedtls-3.7.0/tests/src/drivers/
Dtest_driver_aead.c32 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length) in mbedtls_test_transparent_aead_encrypt() argument
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() argument
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()
/mbedtls-3.7.0/library/
Dpsa_crypto_aead.c124 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length) in mbedtls_psa_aead_encrypt() argument
139 if (ciphertext_size < (plaintext_length + operation.tag_length)) { in mbedtls_psa_aead_encrypt()
552 size_t ciphertext_size, in mbedtls_psa_aead_finish() argument
569 ciphertext, ciphertext_size, ciphertext_length, in mbedtls_psa_aead_finish()
603 (void) ciphertext_size; in mbedtls_psa_aead_finish()
Dpsa_crypto_aead.h74 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length);
466 size_t ciphertext_size,
Dpsa_crypto_driver_wrappers.h1976 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length ) in psa_driver_wrapper_aead_encrypt() argument
1999 ciphertext, ciphertext_size, ciphertext_length ); in psa_driver_wrapper_aead_encrypt()
2011 ciphertext, ciphertext_size, ciphertext_length ); in psa_driver_wrapper_aead_encrypt()
2024 ciphertext, ciphertext_size, ciphertext_length ) ); in psa_driver_wrapper_aead_encrypt()
2396 size_t ciphertext_size, in psa_driver_wrapper_aead_finish() argument
2408 ciphertext_size, in psa_driver_wrapper_aead_finish()
2419 ciphertext, ciphertext_size, in psa_driver_wrapper_aead_finish()
2429 ciphertext, ciphertext_size, in psa_driver_wrapper_aead_finish()
2436 (void)ciphertext_size; in psa_driver_wrapper_aead_finish()
Dpsa_crypto.c4750 size_t ciphertext_size, argument
4777 LOCAL_OUTPUT_ALLOC(ciphertext_external, ciphertext_size, ciphertext);
4790 ciphertext, ciphertext_size, ciphertext_length);
4792 if (status != PSA_SUCCESS && ciphertext_size != 0) {
4793 memset(ciphertext, 0, ciphertext_size);
5327 size_t ciphertext_size, argument
5338 LOCAL_OUTPUT_ALLOC(ciphertext_external, ciphertext_size, ciphertext);
5355 ciphertext_size,
/mbedtls-3.7.0/tests/include/test/drivers/
Daead.h54 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length);
103 size_t ciphertext_size,
/mbedtls-3.7.0/include/psa/
Dcrypto.h2115 size_t ciphertext_size,
2707 size_t ciphertext_size,
Dcrypto_se_driver.h734 size_t ciphertext_size,
/mbedtls-3.7.0/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.h.jinja1683 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length )
1703 ciphertext, ciphertext_size, ciphertext_length );
1717 ciphertext, ciphertext_size, ciphertext_length ) );
2025 size_t ciphertext_size,
2037 ciphertext_size,
2048 ciphertext, ciphertext_size,
2058 (void)ciphertext_size;
/mbedtls-3.7.0/tests/suites/
Dtest_suite_psa_crypto.function5479 size_t ciphertext_size = 0;
5499 ciphertext_size = PSA_AEAD_FINISH_OUTPUT_SIZE(key_type, alg);
5501 TEST_LE_U(ciphertext_size, PSA_AEAD_FINISH_OUTPUT_MAX_SIZE);
5503 TEST_CALLOC(ciphertext, ciphertext_size);
5544 PSA_ASSERT(psa_aead_finish(&operation, ciphertext, ciphertext_size,
5580 size_t ciphertext_size = 0;
5602 ciphertext_size = PSA_AEAD_FINISH_OUTPUT_SIZE(key_type, alg);
5604 TEST_LE_U(ciphertext_size, PSA_AEAD_FINISH_OUTPUT_MAX_SIZE);
5606 TEST_CALLOC(ciphertext, ciphertext_size);
5665 TEST_EQUAL(psa_aead_finish(&operation, ciphertext, ciphertext_size,
[all …]