Lines Matching refs:bytes
723 slot->key.bytes = buffer_length; in psa_allocate_buffer_to_slot()
1187 if (slot->key.bytes > 0) { in psa_remove_key_data_from_memory()
1192 mbedtls_zeroize_and_free(slot->key.data, slot->key.bytes); in psa_remove_key_data_from_memory()
1198 slot->key.bytes = 0; in psa_remove_key_data_from_memory()
1540 slot->key.data, slot->key.bytes, in psa_export_key()
1657 &slot->attr, slot->key.data, slot->key.bytes, in psa_export_public_key()
1951 slot->key.bytes); in psa_finish_key_creation()
2112 if (slot->key.bytes == 0) { in psa_import_key()
2130 slot->key.bytes, in psa_import_key()
2131 &slot->key.bytes, &bits); in psa_import_key()
2290 source_slot->key.bytes, in psa_copy_key()
2292 target_slot->key.bytes, in psa_copy_key()
2293 &target_slot->key.bytes); in psa_copy_key()
2300 source_slot->key.bytes); in psa_copy_key()
2734 slot->key.bytes, in psa_mac_setup()
2740 slot->key.bytes, in psa_mac_setup()
2931 slot->key.data, slot->key.bytes, in psa_mac_compute_internal()
3122 &slot->attr, slot->key.data, slot->key.bytes, in psa_sign_internal()
3128 &slot->attr, slot->key.data, slot->key.bytes, in psa_sign_internal()
3172 &slot->attr, slot->key.data, slot->key.bytes, in psa_verify_internal()
3177 &slot->attr, slot->key.data, slot->key.bytes, in psa_verify_internal()
3499 &slot->attr, slot->key.data, slot->key.bytes, in psa_asymmetric_encrypt()
3557 &slot->attr, slot->key.data, slot->key.bytes, in psa_asymmetric_decrypt()
3672 slot->key.bytes, alg, in psa_sign_hash_start()
3836 slot->key.bytes, in psa_verify_hash_start()
4493 slot->key.bytes, in psa_cipher_setup()
4499 slot->key.bytes, in psa_cipher_setup()
4776 &slot->attr, slot->key.data, slot->key.bytes, in psa_cipher_encrypt()
4838 &slot->attr, slot->key.data, slot->key.bytes, in psa_cipher_decrypt()
4966 &slot->attr, slot->key.data, slot->key.bytes, in psa_aead_encrypt()
5033 &slot->attr, slot->key.data, slot->key.bytes, in psa_aead_decrypt()
5148 slot->key.bytes, in psa_aead_setup()
5154 slot->key.bytes, in psa_aead_setup()
6565 size_t bytes = PSA_BITS_TO_BYTES(bits); in psa_generate_derived_key_internal() local
6566 size_t storage_size = bytes; in psa_generate_derived_key_internal()
6597 data = mbedtls_calloc(1, bytes); in psa_generate_derived_key_internal()
6602 status = psa_key_derivation_output_bytes(operation, data, bytes); in psa_generate_derived_key_internal()
6608 psa_des_set_key_parity(data, bytes); in psa_generate_derived_key_internal()
6630 data, bytes, in psa_generate_derived_key_internal()
6632 slot->key.bytes, in psa_generate_derived_key_internal()
6633 &slot->key.bytes, &bits); in psa_generate_derived_key_internal()
6639 mbedtls_zeroize_and_free(data, bytes); in psa_generate_derived_key_internal()
7708 slot->key.bytes); in psa_key_derivation_input_key()
7787 private_key->key.bytes, alg, in psa_key_agreement_raw_internal()
8230 if (slot->key.bytes == 0) { in psa_generate_key_custom()
8259 slot->key.data, slot->key.bytes, in psa_generate_key_custom()
8260 &slot->key.bytes); in psa_generate_key_custom()
8766 operation->data.inputs.password = mbedtls_calloc(1, slot->key.bytes); in psa_pake_set_password_key()
8772 memcpy(operation->data.inputs.password, slot->key.data, slot->key.bytes); in psa_pake_set_password_key()
8773 operation->data.inputs.password_len = slot->key.bytes; in psa_pake_set_password_key()