Home
last modified time | relevance | path

Searched refs:blob_copy (Results 1 – 1 of 1) sorted by relevance

/system/keymaster/
Dkeymaster0_engine.cpp168 unique_ptr<keymaster_key_blob_t> blob_copy(new (std::nothrow) keymaster_key_blob_t); in duplicate_blob() local
169 if (!blob_copy.get()) in duplicate_blob()
171 blob_copy->key_material_size = key_data_size; in duplicate_blob()
172 blob_copy->key_material = key_material_copy.release(); in duplicate_blob()
173 return blob_copy.release(); in duplicate_blob()
186 keymaster_key_blob_t* blob_copy = duplicate_blob(blob); in BlobToRsaKey() local
187 if (!blob_copy->key_material || !RSA_set_ex_data(rsa.get(), rsa_index_, blob_copy)) in BlobToRsaKey()
211 keymaster_key_blob_t* blob_copy = duplicate_blob(blob); in BlobToEcKey() local
212 if (!blob_copy->key_material || !EC_KEY_set_ex_data(ec_key.get(), ec_key_index_, blob_copy)) in BlobToEcKey()