/mbedtls-3.5.0/tests/src/drivers/ |
D | test_driver_key_management.c | 140 size_t key_length, in mbedtls_test_opaque_wrap_key() argument 148 if (key_length + opaque_key_base_size > wrapped_key_buffer_size) { in mbedtls_test_opaque_wrap_key() 155 *wrapped_key_buffer_length = key_length + opaque_key_base_size; in mbedtls_test_opaque_wrap_key() 157 while (key_length--) { in mbedtls_test_opaque_wrap_key() 158 wrapped_key_buffer[key_length] = key[key_length] ^ 0xFF; in mbedtls_test_opaque_wrap_key() 203 uint8_t *key, size_t key_size, size_t *key_length) in mbedtls_test_transparent_generate_key() argument 218 *key_length = mbedtls_test_driver_key_management_hooks.forced_output_length; in mbedtls_test_transparent_generate_key() 228 key, key_size, key_length); in mbedtls_test_transparent_generate_key() 231 attributes, key, key_size, key_length); in mbedtls_test_transparent_generate_key() 238 key, key_size, key_length); in mbedtls_test_transparent_generate_key() [all …]
|
D | test_driver_cipher.c | 141 const uint8_t *key, size_t key_length, in mbedtls_test_transparent_cipher_encrypt_setup() argument 161 key, key_length, alg); in mbedtls_test_transparent_cipher_encrypt_setup() 164 operation, attributes, key, key_length, alg); in mbedtls_test_transparent_cipher_encrypt_setup() 173 const uint8_t *key, size_t key_length, in mbedtls_test_transparent_cipher_decrypt_setup() argument 187 key, key_length, alg); in mbedtls_test_transparent_cipher_decrypt_setup() 190 operation, attributes, key, key_length, alg); in mbedtls_test_transparent_cipher_decrypt_setup() 322 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_cipher_encrypt() argument 330 (void) key_length; in mbedtls_test_opaque_cipher_encrypt() 344 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_cipher_decrypt() argument 351 (void) key_length; in mbedtls_test_opaque_cipher_decrypt() [all …]
|
D | test_driver_signature.c | 247 size_t key_length, in mbedtls_test_opaque_signature_sign_message() argument 257 (void) key_length; in mbedtls_test_opaque_signature_sign_message() 314 size_t key_length, in mbedtls_test_opaque_signature_verify_message() argument 323 (void) key_length; in mbedtls_test_opaque_signature_verify_message() 363 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_signature_sign_hash() argument 370 (void) key_length; in mbedtls_test_opaque_signature_sign_hash() 401 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_signature_verify_hash() argument 408 (void) key_length; in mbedtls_test_opaque_signature_verify_hash()
|
D | test_driver_asymmetric_encryption.c | 125 size_t key_length, psa_algorithm_t alg, const uint8_t *input, in mbedtls_test_opaque_asymmetric_encrypt() argument 131 (void) key_length; in mbedtls_test_opaque_asymmetric_encrypt() 145 size_t key_length, psa_algorithm_t alg, const uint8_t *input, in mbedtls_test_opaque_asymmetric_decrypt() argument 151 (void) key_length; in mbedtls_test_opaque_asymmetric_decrypt()
|
/mbedtls-3.5.0/tests/include/test/drivers/ |
D | signature.h | 56 size_t key_length, 67 size_t key_length, 78 size_t key_length, 88 size_t key_length, 97 const uint8_t *key, size_t key_length, 104 const uint8_t *key, size_t key_length, 111 const uint8_t *key, size_t key_length, 118 const uint8_t *key, size_t key_length,
|
D | cipher.h | 54 const uint8_t *key, size_t key_length, 62 const uint8_t *key, size_t key_length, 70 const uint8_t *key, size_t key_length, 76 const uint8_t *key, size_t key_length, 100 const uint8_t *key, size_t key_length, 108 const uint8_t *key, size_t key_length, 116 const uint8_t *key, size_t key_length, 122 const uint8_t *key, size_t key_length,
|
D | key_management.h | 82 uint8_t *key, size_t key_size, size_t *key_length); 86 uint8_t *key, size_t key_size, size_t *key_length); 90 const uint8_t *key, size_t key_length, 95 const uint8_t *key, size_t key_length, 100 const uint8_t *key, size_t key_length,
|
D | asymmetric_encryption.h | 62 size_t key_length, psa_algorithm_t alg, const uint8_t *input, 74 size_t key_length, psa_algorithm_t alg, const uint8_t *input,
|
/mbedtls-3.5.0/library/ |
D | pkcs5.c | 229 uint32_t key_length, unsigned char *output) in pkcs5_pbkdf2_hmac() argument 252 while (key_length) { in pkcs5_pbkdf2_hmac() 293 use_len = (key_length < md_size) ? key_length : md_size; in pkcs5_pbkdf2_hmac() 296 key_length -= (uint32_t) use_len; in pkcs5_pbkdf2_hmac() 319 uint32_t key_length, unsigned char *output) in mbedtls_pkcs5_pbkdf2_hmac() argument 322 key_length, output); in mbedtls_pkcs5_pbkdf2_hmac() 331 uint32_t key_length, unsigned char *output) in mbedtls_pkcs5_pbkdf2_hmac_ext() argument 349 iteration_count, key_length, output); in mbedtls_pkcs5_pbkdf2_hmac_ext() 377 if (key_length == 0) { in mbedtls_pkcs5_pbkdf2_hmac_ext() 392 while (key_length) { in mbedtls_pkcs5_pbkdf2_hmac_ext() [all …]
|
D | psa_crypto_mac.c | 45 size_t key_length, in psa_hmac_setup_internal() argument 72 if (key_length > block_size) { in psa_hmac_setup_internal() 73 status = psa_hash_compute(hash_alg, key, key_length, in psa_hmac_setup_internal() 74 ipad, sizeof(ipad), &key_length); in psa_hmac_setup_internal() 83 else if (key_length != 0) { in psa_hmac_setup_internal() 84 memcpy(ipad, key, key_length); in psa_hmac_setup_internal() 89 for (i = 0; i < key_length; i++) { in psa_hmac_setup_internal() 92 memset(ipad + key_length, 0x36, block_size - key_length); in psa_hmac_setup_internal() 96 for (i = 0; i < key_length; i++) { in psa_hmac_setup_internal() 99 memset(hmac->opad + key_length, 0x5C, block_size - key_length); in psa_hmac_setup_internal()
|
D | cmac.c | 399 int mbedtls_aes_cmac_prf_128(const unsigned char *key, size_t key_length, in mbedtls_aes_cmac_prf_128() argument 419 if (key_length == MBEDTLS_AES_BLOCK_SIZE) { in mbedtls_aes_cmac_prf_128() 426 key_length, int_key); in mbedtls_aes_cmac_prf_128()
|
/mbedtls-3.5.0/include/mbedtls/ |
D | pkcs5.h | 91 uint32_t key_length, unsigned char *output); 117 uint32_t key_length,
|
/mbedtls-3.5.0/tests/scripts/ |
D | generate_psa_tests.py | 547 key_length = (bits + 7) // 8 549 return key_length > 2 * hash_length + 2
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_psa_crypto.function | 176 size_t key_length, 187 PSA_ASSERT(psa_import_key(&attributes, key_bytes, key_length, &key)); 208 size_t key_length, 219 PSA_ASSERT(psa_import_key(&attributes, key_bytes, key_length, &key));
|
/mbedtls-3.5.0/ |
D | ChangeLog | 3803 mbedtls_cipher_info_t.key_length -> key_bitlen 3804 mbedtls_cipher_context_t.key_length -> key_bitlen
|