Home
last modified time | relevance | path

Searched refs:ciphertext_length (Results 1 – 13 of 13) sorted by relevance

/mbedtls-3.5.0/library/
Dpsa_crypto_aead.c140 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length) in mbedtls_psa_aead_encrypt() argument
213 *ciphertext_length = plaintext_length + operation.tag_length; in mbedtls_psa_aead_encrypt()
229 size_t ciphertext_length, in psa_aead_unpadded_locate_tag() argument
234 if (tag_length > ciphertext_length) { in psa_aead_unpadded_locate_tag()
237 payload_length = ciphertext_length - tag_length; in psa_aead_unpadded_locate_tag()
251 const uint8_t *ciphertext, size_t ciphertext_length, in mbedtls_psa_aead_decrypt() argument
266 ciphertext, ciphertext_length, in mbedtls_psa_aead_decrypt()
276 ciphertext_length - operation.tag_length, in mbedtls_psa_aead_decrypt()
288 ciphertext_length - operation.tag_length, in mbedtls_psa_aead_decrypt()
304 ciphertext_length - operation.tag_length, in mbedtls_psa_aead_decrypt()
[all …]
Dpsa_crypto_aead.h86 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length);
148 const uint8_t *ciphertext, size_t ciphertext_length,
479 size_t *ciphertext_length,
Dpsa_crypto_driver_wrappers.c2107 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length ) in psa_driver_wrapper_aead_encrypt() argument
2130 ciphertext, ciphertext_size, ciphertext_length ); in psa_driver_wrapper_aead_encrypt()
2142 ciphertext, ciphertext_size, ciphertext_length ); in psa_driver_wrapper_aead_encrypt()
2155 ciphertext, ciphertext_size, ciphertext_length ) ); in psa_driver_wrapper_aead_encrypt()
2172 const uint8_t *ciphertext, size_t ciphertext_length, in psa_driver_wrapper_aead_decrypt() argument
2195 ciphertext, ciphertext_length, in psa_driver_wrapper_aead_decrypt()
2207 ciphertext, ciphertext_length, in psa_driver_wrapper_aead_decrypt()
2220 ciphertext, ciphertext_length, in psa_driver_wrapper_aead_decrypt()
2532 size_t *ciphertext_length, in psa_driver_wrapper_aead_finish() argument
2544 ciphertext_length, tag, in psa_driver_wrapper_aead_finish()
[all …]
Dpsa_crypto_driver_wrappers.h255 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length);
263 const uint8_t *ciphertext, size_t ciphertext_length,
305 size_t *ciphertext_length,
Dpsa_crypto.c4400 size_t *ciphertext_length) argument
4405 *ciphertext_length = 0;
4433 ciphertext, ciphertext_size, ciphertext_length);
4452 size_t ciphertext_length, argument
4487 ciphertext, ciphertext_length,
4916 size_t *ciphertext_length, argument
4923 *ciphertext_length = 0;
4938 ciphertext_length,
/mbedtls-3.5.0/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()
83 (void) ciphertext_length; in mbedtls_test_transparent_aead_encrypt()
97 const uint8_t *ciphertext, size_t ciphertext_length, in mbedtls_test_transparent_aead_decrypt() argument
115 ciphertext, ciphertext_length, in mbedtls_test_transparent_aead_decrypt()
124 ciphertext, ciphertext_length, in mbedtls_test_transparent_aead_decrypt()
136 (void) ciphertext_length; in mbedtls_test_transparent_aead_decrypt()
351 size_t *ciphertext_length, in mbedtls_test_transparent_aead_finish() argument
366 ciphertext_size, ciphertext_length, in mbedtls_test_transparent_aead_finish()
[all …]
/mbedtls-3.5.0/tests/src/
Dpsa_exercise_key.c166 size_t ciphertext_length = sizeof(ciphertext); in exercise_cipher_key() local
184 &ciphertext_length)); in exercise_cipher_key()
186 ciphertext + ciphertext_length, in exercise_cipher_key()
187 sizeof(ciphertext) - ciphertext_length, in exercise_cipher_key()
189 ciphertext_length += part_length; in exercise_cipher_key()
204 ciphertext, ciphertext_length, in exercise_cipher_key()
240 size_t ciphertext_length = sizeof(ciphertext); in exercise_aead_key() local
258 &ciphertext_length)); in exercise_aead_key()
269 ciphertext, ciphertext_length, in exercise_aead_key()
378 size_t ciphertext_length = sizeof(ciphertext); in exercise_asymmetric_encryption_key() local
[all …]
/mbedtls-3.5.0/tests/include/test/drivers/
Daead.h66 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length);
74 const uint8_t *ciphertext, size_t ciphertext_length,
116 size_t *ciphertext_length,
/mbedtls-3.5.0/include/psa/
Dcrypto_sizes.h360 #define PSA_AEAD_DECRYPT_OUTPUT_SIZE(key_type, alg, ciphertext_length) \ argument
362 (ciphertext_length) > PSA_ALG_AEAD_GET_TAG_LENGTH(alg) ? \
363 (ciphertext_length) - PSA_ALG_AEAD_GET_TAG_LENGTH(alg) : \
384 #define PSA_AEAD_DECRYPT_OUTPUT_MAX_SIZE(ciphertext_length) \ argument
385 (ciphertext_length)
Dcrypto.h2121 size_t *ciphertext_length);
2191 size_t ciphertext_length,
2713 size_t *ciphertext_length,
Dcrypto_se_driver.h786 size_t ciphertext_length,
/mbedtls-3.5.0/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 ) );
1844 const uint8_t *ciphertext, size_t ciphertext_length,
1864 ciphertext, ciphertext_length,
1878 ciphertext, ciphertext_length,
2136 size_t *ciphertext_length,
2148 ciphertext_length, tag,
2159 ciphertext_length, tag, tag_size, tag_length ) );
2169 (void)ciphertext_length;
/mbedtls-3.5.0/tests/suites/
Dtest_suite_psa_crypto.function5108 size_t ciphertext_length = 0;
5170 &ciphertext_length));
5173 &ciphertext_length, tag_buffer,
5209 size_t ciphertext_length = 0;
5290 &ciphertext_length),
5294 &ciphertext_length, tag_buffer,
5330 size_t ciphertext_length = 0;
5372 output, output_size, &ciphertext_length);
5379 &ciphertext_length, tag_buffer,
5414 size_t ciphertext_length = 0;
[all …]