Lines Matching refs:key_blob
180 const void* key_params, uint8_t** key_blob, in generate_keypair() argument
186 if (!key_blob || !key_blob_length) in generate_keypair()
226 *key_blob_length = rsp.key_blob.key_material_size; in generate_keypair()
227 *key_blob = static_cast<uint8_t*>(malloc(*key_blob_length)); in generate_keypair()
228 if (!*key_blob) { in generate_keypair()
232 memcpy(*key_blob, rsp.key_blob.key_material, *key_blob_length); in generate_keypair()
240 const size_t key_length, uint8_t** key_blob, in import_keypair() argument
247 if (!key_blob || !key_blob_length) in import_keypair()
267 *key_blob_length = response.key_blob.key_material_size; in import_keypair()
268 *key_blob = static_cast<uint8_t*>(malloc(*key_blob_length)); in import_keypair()
269 if (!*key_blob) { in import_keypair()
273 memcpy(*key_blob, response.key_blob.key_material, *key_blob_length); in import_keypair()
317 const uint8_t* key_blob, const size_t key_blob_length, in get_keypair_public() argument
321 if (!dev || !key_blob) in get_keypair_public()
328 req.SetKeyMaterial(key_blob, key_blob_length); in get_keypair_public()
350 const uint8_t* key_blob, const size_t key_blob_length) { in delete_keypair() argument
354 return dev->delete_keypair(dev, key_blob, key_blob_length); in delete_keypair()
367 const uint8_t* key_blob, const size_t key_blob_length, in sign_data() argument
372 if (!dev || !params || !key_blob) in sign_data()
382 begin_request.SetKeyMaterial(key_blob, key_blob_length); in sign_data()
423 const uint8_t* key_blob, const size_t key_blob_length, in verify_data() argument
428 if (!dev || !params || !key_blob || !signed_data || !signature) in verify_data()
433 begin_request.SetKeyMaterial(key_blob, key_blob_length); in verify_data()
664 keymaster_key_blob_t* key_blob, keymaster_key_characteristics_t** characteristics) { in generate_key() argument
668 if (!key_blob) in generate_key()
679 key_blob->key_material_size = response.key_blob.key_material_size; in generate_key()
680 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(key_blob->key_material_size)); in generate_key()
683 memcpy(tmp, response.key_blob.key_material, response.key_blob.key_material_size); in generate_key()
684 key_blob->key_material = tmp; in generate_key()
697 const keymaster1_device_t* dev, const keymaster_key_blob_t* key_blob, in get_key_characteristics() argument
700 if (!dev || !key_blob || !key_blob->key_material) in get_key_characteristics()
707 request.SetKeyMaterial(*key_blob); in get_key_characteristics()
725 keymaster_key_blob_t* key_blob, keymaster_key_characteristics_t** characteristics) { in import_key() argument
729 if (!key_blob) in import_key()
744 key_blob->key_material_size = response.key_blob.key_material_size; in import_key()
745 key_blob->key_material = reinterpret_cast<uint8_t*>(malloc(key_blob->key_material_size)); in import_key()
746 if (!key_blob->key_material) in import_key()
748 memcpy(const_cast<uint8_t*>(key_blob->key_material), response.key_blob.key_material, in import_key()
749 response.key_blob.key_material_size); in import_key()