/mbedtls-3.5.0/include/psa/ |
D | crypto_sizes.h | 464 #define PSA_AEAD_UPDATE_OUTPUT_SIZE(key_type, alg, input_length) \ argument 467 PSA_ROUND_UP_TO_MULTIPLE(PSA_BLOCK_CIPHER_BLOCK_LENGTH(key_type), (input_length)) : \ 468 (input_length) : \ 481 #define PSA_AEAD_UPDATE_OUTPUT_MAX_SIZE(input_length) \ argument 482 (PSA_ROUND_UP_TO_MULTIPLE(PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE, (input_length))) 1035 #define PSA_CIPHER_ENCRYPT_OUTPUT_SIZE(key_type, alg, input_length) \ argument 1039 (input_length) + 1) + \ 1042 (input_length) + PSA_CIPHER_IV_LENGTH((key_type), (alg)) : \ 1056 #define PSA_CIPHER_ENCRYPT_OUTPUT_MAX_SIZE(input_length) \ argument 1058 (input_length) + 1) + \ [all …]
|
D | crypto.h | 867 size_t input_length, 902 size_t input_length, 1022 size_t input_length); 1219 size_t input_length, 1260 size_t input_length, 1457 size_t input_length); 1626 size_t input_length, 1673 size_t input_length, 1962 size_t input_length, 2542 size_t input_length); [all …]
|
D | crypto_se_driver.h | 202 size_t input_length); 273 size_t input_length, 302 size_t input_length, 627 size_t input_length, 667 size_t input_length,
|
/mbedtls-3.5.0/library/ |
D | psa_crypto_cipher.c | 304 size_t input_length, in psa_cipher_update_ecb() argument 313 if (input_length == 0) { in psa_cipher_update_ecb() 322 if (input_length < bytes_to_copy) { in psa_cipher_update_ecb() 323 bytes_to_copy = input_length; in psa_cipher_update_ecb() 328 input_length -= bytes_to_copy; in psa_cipher_update_ecb() 349 while (input_length >= block_size) { in psa_cipher_update_ecb() 360 input_length -= block_size; in psa_cipher_update_ecb() 367 if (input_length > 0) { in psa_cipher_update_ecb() 370 input, input_length); in psa_cipher_update_ecb() 371 ctx->unprocessed_len += input_length; in psa_cipher_update_ecb() [all …]
|
D | psa_crypto_driver_wrappers.c | 168 size_t input_length, in psa_driver_wrapper_sign_message() argument 193 input_length, in psa_driver_wrapper_sign_message() 208 input_length, in psa_driver_wrapper_sign_message() 222 input_length, in psa_driver_wrapper_sign_message() 237 input_length, in psa_driver_wrapper_sign_message() 261 size_t input_length, in psa_driver_wrapper_verify_message() argument 285 input_length, in psa_driver_wrapper_verify_message() 299 input_length, in psa_driver_wrapper_verify_message() 312 input_length, in psa_driver_wrapper_verify_message() 326 input_length, in psa_driver_wrapper_verify_message() [all …]
|
D | psa_crypto_hash.c | 213 size_t input_length) in mbedtls_psa_hash_update() argument 221 input, input_length); in mbedtls_psa_hash_update() 227 input, input_length); in mbedtls_psa_hash_update() 233 input, input_length); in mbedtls_psa_hash_update() 239 input, input_length); in mbedtls_psa_hash_update() 245 input, input_length); in mbedtls_psa_hash_update() 251 input, input_length); in mbedtls_psa_hash_update() 257 input, input_length); in mbedtls_psa_hash_update() 262 (void) input_length; in mbedtls_psa_hash_update() 346 size_t input_length, in mbedtls_psa_hash_compute() argument [all …]
|
D | psa_crypto_driver_wrappers.h | 42 size_t input_length, 53 size_t input_length, 161 size_t input_length, 172 size_t input_length, 197 size_t input_length, 217 size_t input_length, 233 size_t input_length); 291 size_t input_length); 296 size_t input_length, 330 size_t input_length, [all …]
|
D | psa_crypto_aead.c | 463 size_t input_length) in mbedtls_psa_aead_update_ad() argument 470 mbedtls_gcm_update_ad(&operation->ctx.gcm, input, input_length)); in mbedtls_psa_aead_update_ad() 476 mbedtls_ccm_update_ad(&operation->ctx.ccm, input, input_length)); in mbedtls_psa_aead_update_ad() 484 input_length)); in mbedtls_psa_aead_update_ad() 490 (void) input_length; in mbedtls_psa_aead_update_ad() 503 size_t input_length, in mbedtls_psa_aead_update() argument 511 update_output_length = input_length; in mbedtls_psa_aead_update() 517 input, input_length, in mbedtls_psa_aead_update() 524 if (output_size < input_length) { in mbedtls_psa_aead_update() 530 input, input_length, in mbedtls_psa_aead_update() [all …]
|
D | psa_crypto_pake.c | 394 size_t input_length) in mbedtls_psa_pake_input_internal() argument 449 if (operation->buffer_length + input_length + 1 > sizeof(operation->buffer)) { in mbedtls_psa_pake_input_internal() 454 operation->buffer[operation->buffer_length] = (uint8_t) input_length; in mbedtls_psa_pake_input_internal() 459 input, input_length); in mbedtls_psa_pake_input_internal() 460 operation->buffer_length += input_length; in mbedtls_psa_pake_input_internal() 492 (void) input_length; in mbedtls_psa_pake_input_internal() 500 size_t input_length) in mbedtls_psa_pake_input() argument 503 operation, step, input, input_length); in mbedtls_psa_pake_input()
|
D | gcm.c | 421 const unsigned char *input, size_t input_length, in mbedtls_gcm_update() argument 431 if (output_size < input_length) { in mbedtls_gcm_update() 434 *output_length = input_length; in mbedtls_gcm_update() 440 if (input_length == 0) { in mbedtls_gcm_update() 444 if (output > input && (size_t) (output - input) < input_length) { in mbedtls_gcm_update() 450 if (ctx->len + input_length < ctx->len || in mbedtls_gcm_update() 451 (uint64_t) ctx->len + input_length > 0xFFFFFFFE0ull) { in mbedtls_gcm_update() 462 if (use_len > input_length) { in mbedtls_gcm_update() 463 use_len = input_length; in mbedtls_gcm_update() 475 input_length -= use_len; in mbedtls_gcm_update() [all …]
|
D | psa_crypto_mac.c | 355 size_t input_length) in mbedtls_psa_mac_update() argument 365 input, input_length)); in mbedtls_psa_mac_update() 371 input, input_length); in mbedtls_psa_mac_update() 378 (void) input_length; in mbedtls_psa_mac_update() 472 size_t input_length, in mbedtls_psa_mac_compute() argument 487 if (input_length > 0) { in mbedtls_psa_mac_compute() 488 status = mbedtls_psa_mac_update(&operation, input, input_length); in mbedtls_psa_mac_compute()
|
D | psa_crypto_cipher.h | 152 const uint8_t *input, size_t input_length, 251 size_t input_length, 300 size_t input_length,
|
D | psa_crypto_rsa.c | 541 size_t input_length, in mbedtls_psa_asymmetric_encrypt() argument 552 (void) input_length; in mbedtls_psa_asymmetric_encrypt() 583 input_length, in mbedtls_psa_asymmetric_encrypt() 603 input_length, in mbedtls_psa_asymmetric_encrypt() 635 size_t input_length, in mbedtls_psa_asymmetric_decrypt() argument 646 (void) input_length; in mbedtls_psa_asymmetric_decrypt() 667 if (input_length != mbedtls_rsa_get_len(rsa)) { in mbedtls_psa_asymmetric_decrypt()
|
/mbedtls-3.5.0/tests/src/drivers/ |
D | test_driver_asymmetric_encryption.c | 39 size_t input_length, const uint8_t *salt, size_t salt_length, in mbedtls_test_transparent_asymmetric_encrypt() argument 66 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_encrypt() 71 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_encrypt() 81 size_t input_length, const uint8_t *salt, size_t salt_length, in mbedtls_test_transparent_asymmetric_decrypt() argument 108 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_decrypt() 113 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_decrypt() 126 size_t input_length, const uint8_t *salt, size_t salt_length, in mbedtls_test_opaque_asymmetric_encrypt() argument 134 (void) input_length; in mbedtls_test_opaque_asymmetric_encrypt() 146 size_t input_length, const uint8_t *salt, size_t salt_length, in mbedtls_test_opaque_asymmetric_decrypt() argument 154 (void) input_length; in mbedtls_test_opaque_asymmetric_decrypt()
|
D | test_driver_cipher.c | 50 size_t input_length, in mbedtls_test_transparent_cipher_encrypt() argument 79 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt() 84 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt() 97 size_t input_length, in mbedtls_test_transparent_cipher_decrypt() argument 126 alg, input, input_length, in mbedtls_test_transparent_cipher_decrypt() 131 alg, input, input_length, in mbedtls_test_transparent_cipher_decrypt() 242 size_t input_length, in mbedtls_test_transparent_cipher_update() argument 269 operation, input, input_length, in mbedtls_test_transparent_cipher_update() 273 operation, input, input_length, in mbedtls_test_transparent_cipher_update() 325 const uint8_t *input, size_t input_length, in mbedtls_test_opaque_cipher_encrypt() argument [all …]
|
D | hash.c | 36 const uint8_t *input, size_t input_length, in mbedtls_test_transparent_hash_compute() argument 49 alg, input, input_length, in mbedtls_test_transparent_hash_compute() 54 alg, input, input_length, in mbedtls_test_transparent_hash_compute() 59 (void) input_length; in mbedtls_test_transparent_hash_compute() 128 size_t input_length) in mbedtls_test_transparent_hash_update() argument 140 operation, input, input_length); in mbedtls_test_transparent_hash_update() 143 mbedtls_psa_hash_update(operation, input, input_length); in mbedtls_test_transparent_hash_update() 147 (void) input_length; in mbedtls_test_transparent_hash_update()
|
D | test_driver_mac.c | 40 size_t input_length, in mbedtls_test_transparent_mac_compute() argument 57 input, input_length, in mbedtls_test_transparent_mac_compute() 63 input, input_length, in mbedtls_test_transparent_mac_compute() 71 (void) input_length; in mbedtls_test_transparent_mac_compute() 159 size_t input_length) in mbedtls_test_transparent_mac_update() argument 171 operation, input, input_length); in mbedtls_test_transparent_mac_update() 175 operation, input, input_length); in mbedtls_test_transparent_mac_update() 179 (void) input_length; in mbedtls_test_transparent_mac_update() 282 size_t input_length, in mbedtls_test_opaque_mac_compute() argument 298 (void) input_length; in mbedtls_test_opaque_mac_compute() [all …]
|
D | test_driver_signature.c | 194 size_t input_length, in mbedtls_test_transparent_signature_sign_message() argument 224 PSA_ALG_SIGN_GET_HASH(alg), input, input_length, in mbedtls_test_transparent_signature_sign_message() 228 PSA_ALG_SIGN_GET_HASH(alg), input, input_length, in mbedtls_test_transparent_signature_sign_message() 232 (void) input_length; in mbedtls_test_transparent_signature_sign_message() 250 size_t input_length, in mbedtls_test_opaque_signature_sign_message() argument 260 (void) input_length; in mbedtls_test_opaque_signature_sign_message() 274 size_t input_length, in mbedtls_test_transparent_signature_verify_message() argument 291 PSA_ALG_SIGN_GET_HASH(alg), input, input_length, in mbedtls_test_transparent_signature_verify_message() 295 PSA_ALG_SIGN_GET_HASH(alg), input, input_length, in mbedtls_test_transparent_signature_verify_message() 299 (void) input_length; in mbedtls_test_transparent_signature_verify_message() [all …]
|
D | test_driver_aead.c | 283 size_t input_length) in mbedtls_test_transparent_aead_update_ad() argument 294 libtestdriver1_mbedtls_psa_aead_update_ad(operation, input, input_length); in mbedtls_test_transparent_aead_update_ad() 297 mbedtls_psa_aead_update_ad(operation, input, input_length); in mbedtls_test_transparent_aead_update_ad() 301 (void) input_length; in mbedtls_test_transparent_aead_update_ad() 312 size_t input_length, in mbedtls_test_transparent_aead_update() argument 327 input_length, output, in mbedtls_test_transparent_aead_update() 331 mbedtls_psa_aead_update(operation, input, input_length, output, in mbedtls_test_transparent_aead_update() 336 (void) input_length; in mbedtls_test_transparent_aead_update()
|
D | test_driver_pake.c | 119 size_t input_length) in mbedtls_test_transparent_pake_input() argument 132 operation, step, input, input_length); in mbedtls_test_transparent_pake_input() 136 operation, step, input, input_length); in mbedtls_test_transparent_pake_input() 141 (void) input_length; in mbedtls_test_transparent_pake_input()
|
/mbedtls-3.5.0/tests/include/test/drivers/ |
D | cipher.h | 57 const uint8_t *input, size_t input_length, 64 const uint8_t *input, size_t input_length, 88 const uint8_t *input, size_t input_length, 103 const uint8_t *input, size_t input_length, 110 const uint8_t *input, size_t input_length, 134 const uint8_t *input, size_t input_length,
|
D | asymmetric_encryption.h | 57 size_t input_length, const uint8_t *salt, size_t salt_length, 63 size_t input_length, const uint8_t *salt, size_t salt_length, 69 size_t input_length, const uint8_t *salt, size_t salt_length, 75 size_t input_length, const uint8_t *salt, size_t salt_length,
|
D | mac.h | 54 size_t input_length, 76 size_t input_length); 98 size_t input_length, 120 size_t input_length);
|
D | signature.h | 59 size_t input_length, 70 size_t input_length, 81 size_t input_length, 91 size_t input_length,
|
/mbedtls-3.5.0/scripts/data_files/driver_templates/ |
D | psa_crypto_driver_wrappers.c.jinja | 131 size_t input_length, 153 input_length, 174 input_length, 194 input_length, 206 size_t input_length, 227 input_length, 247 input_length, 266 input_length, 1150 size_t input_length, 1173 input_length, [all …]
|