Home
last modified time | relevance | path

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

/third_party/mbedtls/programs/psa/
Dkey_ladder_demo.c370 size_t ciphertext_size; in wrap_data() local
417 &ciphertext_size ) ); in wrap_data()
423 SYS_CHECK( fwrite( buffer, 1, ciphertext_size, in wrap_data()
424 output_file ) == ciphertext_size ); in wrap_data()
449 size_t ciphertext_size = 0; in unwrap_data() local
473 ciphertext_size = in unwrap_data()
476 if( ciphertext_size < header.payload_size ) in unwrap_data()
484 SYS_CHECK( ( buffer = calloc( 1, ciphertext_size ) ) != NULL ); in unwrap_data()
485 SYS_CHECK( fread( buffer, 1, ciphertext_size, in unwrap_data()
486 input_file ) == ciphertext_size ); in unwrap_data()
[all …]
/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()
70 (void) ciphertext_size; in mbedtls_test_transparent_aead_encrypt()
314 size_t ciphertext_size, in mbedtls_test_transparent_aead_finish() argument
331 mbedtls_psa_aead_finish( operation, ciphertext, ciphertext_size, in mbedtls_test_transparent_aead_finish()
337 (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.c148 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length ) in mbedtls_psa_aead_encrypt() argument
162 if( ciphertext_size < ( plaintext_length + operation.tag_length ) ) in mbedtls_psa_aead_encrypt()
598 size_t ciphertext_size, in mbedtls_psa_aead_finish() argument
615 ciphertext, ciphertext_size, ciphertext_length, in mbedtls_psa_aead_finish()
652 ( void ) ciphertext_size; in mbedtls_psa_aead_finish()
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()
1863 size_t ciphertext_size, in psa_driver_wrapper_aead_finish() argument
1875 ciphertext_size, in psa_driver_wrapper_aead_finish()
1886 ciphertext, ciphertext_size, in psa_driver_wrapper_aead_finish()
1896 (void)ciphertext_size; in psa_driver_wrapper_aead_finish()
Dpsa_crypto_driver_wrappers.h219 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length );
268 size_t ciphertext_size,
Dpsa_crypto.c3723 size_t ciphertext_size, in psa_aead_encrypt() argument
3753 ciphertext, ciphertext_size, ciphertext_length ); in psa_aead_encrypt()
3755 if( status != PSA_SUCCESS && ciphertext_size != 0 ) in psa_aead_encrypt()
3756 memset( ciphertext, 0, ciphertext_size ); in psa_aead_encrypt()
4203 size_t ciphertext_size, in psa_aead_finish() argument
4225 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.h2139 size_t ciphertext_size,
2740 size_t ciphertext_size,
Dcrypto_se_driver.h746 size_t ciphertext_size,
/third_party/mbedtls/tests/suites/
Dtest_suite_psa_crypto.function4036 size_t ciphertext_size = 0;
4056 ciphertext_size = PSA_AEAD_FINISH_OUTPUT_SIZE( key_type, alg );
4058 TEST_ASSERT( ciphertext_size <= PSA_AEAD_FINISH_OUTPUT_MAX_SIZE );
4060 ASSERT_ALLOC( ciphertext, ciphertext_size );
4102 PSA_ASSERT( psa_aead_finish( &operation, ciphertext, ciphertext_size,
4137 size_t ciphertext_size = 0;
4158 ciphertext_size = PSA_AEAD_FINISH_OUTPUT_SIZE( key_type, alg );
4160 TEST_ASSERT( ciphertext_size <= PSA_AEAD_FINISH_OUTPUT_MAX_SIZE );
4162 ASSERT_ALLOC( ciphertext, ciphertext_size );
4216 PSA_ASSERT( psa_aead_finish( &operation, ciphertext, ciphertext_size,
[all …]