Home
last modified time | relevance | path

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

/system/keymaster/
Dkeymaster0_engine.cpp150 unique_ptr<keymaster_key_blob_t> blob_copy(new (std::nothrow) keymaster_key_blob_t); in duplicate_blob() local
151 if (!blob_copy.get()) in duplicate_blob()
153 blob_copy->key_material_size = key_data_size; in duplicate_blob()
154 blob_copy->key_material = key_material_copy.release(); in duplicate_blob()
155 return blob_copy.release(); in duplicate_blob()
168 keymaster_key_blob_t* blob_copy = duplicate_blob(blob); in BlobToRsaKey() local
169 if (!blob_copy->key_material || !RSA_set_ex_data(rsa.get(), rsa_index_, blob_copy)) in BlobToRsaKey()
193 keymaster_key_blob_t* blob_copy = duplicate_blob(blob); in BlobToEcKey() local
194 if (!blob_copy->key_material || !EC_KEY_set_ex_data(ec_key.get(), ec_key_index_, blob_copy)) in BlobToEcKey()