Searched refs:key_length (Results 1 – 7 of 7) sorted by relevance
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | psa_crypto_mac.c | 34 size_t key_length, in psa_hmac_setup_internal() argument 61 if (key_length > block_size) { in psa_hmac_setup_internal() 62 status = psa_hash_compute(hash_alg, key, key_length, in psa_hmac_setup_internal() 63 ipad, sizeof(ipad), &key_length); in psa_hmac_setup_internal() 72 else if (key_length != 0) { in psa_hmac_setup_internal() 73 memcpy(ipad, key, key_length); in psa_hmac_setup_internal() 78 for (i = 0; i < key_length; i++) { in psa_hmac_setup_internal() 81 memset(ipad + key_length, 0x36, block_size - key_length); in psa_hmac_setup_internal() 85 for (i = 0; i < key_length; i++) { in psa_hmac_setup_internal() 88 memset(hmac->opad + key_length, 0x5C, block_size - key_length); in psa_hmac_setup_internal()
|
| H A D | pkcs5.c | 272 uint32_t key_length, unsigned char *output) in pkcs5_pbkdf2_hmac() argument 295 while (key_length) { in pkcs5_pbkdf2_hmac() 336 use_len = (key_length < md_size) ? key_length : md_size; in pkcs5_pbkdf2_hmac() 339 key_length -= (uint32_t) use_len; in pkcs5_pbkdf2_hmac() 362 uint32_t key_length, unsigned char *output) in mbedtls_pkcs5_pbkdf2_hmac() argument 365 key_length, output); in mbedtls_pkcs5_pbkdf2_hmac() 373 uint32_t key_length, unsigned char *output) in mbedtls_pkcs5_pbkdf2_hmac_ext() argument 390 iteration_count, key_length, output); in mbedtls_pkcs5_pbkdf2_hmac_ext()
|
| H A D | pk.c | 593 size_t key_length = 0; in export_import_into_psa() local 596 &key_length); in export_import_into_psa() 600 status = psa_import_key(attributes, key_buffer, key_length, new_key_id); in export_import_into_psa() 601 mbedtls_platform_zeroize(key_buffer, key_length); in export_import_into_psa() 661 size_t key_length = key_end - key_data; in import_pair_into_psa() local 663 key_data, key_length, in import_pair_into_psa() 665 mbedtls_platform_zeroize(key_data, key_length); in import_pair_into_psa() 710 size_t key_length = 0; in import_pair_into_psa() local 711 int ret = mbedtls_ecp_write_key_ext(ec, &key_length, in import_pair_into_psa() 717 key_buffer, key_length, in import_pair_into_psa() [all …]
|
| H A D | cmac.c | 395 int mbedtls_aes_cmac_prf_128(const unsigned char *key, size_t key_length, in mbedtls_aes_cmac_prf_128() argument 415 if (key_length == MBEDTLS_AES_BLOCK_SIZE) { in mbedtls_aes_cmac_prf_128() 422 key_length, int_key); in mbedtls_aes_cmac_prf_128()
|
| /optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | pkcs5.h | 153 uint32_t key_length, unsigned char *output); 179 uint32_t key_length,
|
| /optee_os/ta/pkcs11/src/ |
| H A D | pkcs11_attributes.c | 1760 uint32_t key_length = 0; in check_created_attrs() local 1815 &key_length); in check_created_attrs() 1824 &key_length); in check_created_attrs() 1827 key_length = ROUNDUP_DIV(key_length, 8); in check_created_attrs() 1860 if (key_length < min_key_size || key_length > max_key_size) { in check_created_attrs() 1862 key_length, min_key_size, max_key_size); in check_created_attrs() 1868 if (key_length != 16 && key_length != 24 && key_length != 32) in check_created_attrs() 2464 uint32_t key_length = 0; in set_secret_key_data() local 2468 rc = get_attribute(*head, PKCS11_CKA_VALUE_LEN, &key_length, &size); in set_secret_key_data() 2472 if (key_length) { in set_secret_key_data() [all …]
|
| /optee_os/lib/libmbedtls/mbedtls/ |
| H A D | ChangeLog | 4772 mbedtls_cipher_info_t.key_length -> key_bitlen 4773 mbedtls_cipher_context_t.key_length -> key_bitlen
|