Lines Matching refs:key_blob

732     keymaster_key_blob_t* key_blob, keymaster_key_characteristics_t** characteristics) {  in generate_key()  argument
736 if (!key_blob) in generate_key()
746 return km1_dev->generate_key(km1_dev, params, key_blob, characteristics); in generate_key()
753 key_blob->key_material_size = response.key_blob.key_material_size; in generate_key()
754 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(key_blob->key_material_size)); in generate_key()
757 memcpy(tmp, response.key_blob.key_material, response.key_blob.key_material_size); in generate_key()
758 key_blob->key_material = tmp; in generate_key()
778 keymaster_key_blob_t* key_blob, in generate_key() argument
786 if (!key_blob) in generate_key()
797 keymaster_error_t error = km1_dev->generate_key(km1_dev, params, key_blob, in generate_key()
815 key_blob->key_material_size = response.key_blob.key_material_size; in generate_key()
816 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(key_blob->key_material_size)); in generate_key()
819 memcpy(tmp, response.key_blob.key_material, response.key_blob.key_material_size); in generate_key()
820 key_blob->key_material = tmp; in generate_key()
832 const keymaster1_device_t* dev, const keymaster_key_blob_t* key_blob, in get_key_characteristics() argument
835 if (!dev || !key_blob || !key_blob->key_material) in get_key_characteristics()
843 return km1_dev->get_key_characteristics(km1_dev, key_blob, client_id, app_data, in get_key_characteristics()
848 request.SetKeyMaterial(*key_blob); in get_key_characteristics()
871 const keymaster2_device_t* dev, const keymaster_key_blob_t* key_blob, in get_key_characteristics() argument
888 keymaster_error_t error = km1_dev->get_key_characteristics(km1_dev, key_blob, client_id, in get_key_characteristics()
898 request.SetKeyMaterial(*key_blob); in get_key_characteristics()
916 keymaster_key_blob_t* key_blob, keymaster_key_characteristics_t** characteristics) { in import_key() argument
920 if (!key_blob) in import_key()
930 return km1_dev->import_key(km1_dev, params, key_format, key_data, key_blob, in import_key()
944 key_blob->key_material_size = response.key_blob.key_material_size; in import_key()
945 key_blob->key_material = reinterpret_cast<uint8_t*>(malloc(key_blob->key_material_size)); in import_key()
946 if (!key_blob->key_material) in import_key()
948 memcpy(const_cast<uint8_t*>(key_blob->key_material), response.key_blob.key_material, in import_key()
949 response.key_blob.key_material_size); in import_key()
963 keymaster_key_blob_t* key_blob, keymaster_key_characteristics_t* characteristics) { in import_key() argument
975 error = import_key(&sk_dev->km1_device_, params, key_format, key_data, key_blob, in import_key()
982 error = import_key(&sk_dev->km1_device_, params, key_format, key_data, key_blob, nullptr); in import_key()