Lines Matching refs:blob
132 bool Keymaster0Engine::DeleteKey(const KeymasterKeyBlob& blob) const { in DeleteKey()
135 return (keymaster0_device_->delete_keypair(keymaster0_device_, blob.key_material, in DeleteKey()
136 blob.key_material_size) == 0); in DeleteKey()
158 inline keymaster_key_blob_t* duplicate_blob(const keymaster_key_blob_t& blob) { in duplicate_blob() argument
159 return duplicate_blob(blob.key_material, blob.key_material_size); in duplicate_blob()
162 RSA* Keymaster0Engine::BlobToRsaKey(const KeymasterKeyBlob& blob) const { in BlobToRsaKey()
168 keymaster_key_blob_t* blob_copy = duplicate_blob(blob); in BlobToRsaKey()
173 unique_ptr<EVP_PKEY, EVP_PKEY_Delete> pkey(GetKeymaster0PublicKey(blob)); in BlobToRsaKey()
187 EC_KEY* Keymaster0Engine::BlobToEcKey(const KeymasterKeyBlob& blob) const { in BlobToEcKey()
193 keymaster_key_blob_t* blob_copy = duplicate_blob(blob); in BlobToEcKey()
198 unique_ptr<EVP_PKEY, EVP_PKEY_Delete> pkey(GetKeymaster0PublicKey(blob)); in BlobToEcKey()
225 keymaster_key_blob_t* blob = reinterpret_cast<keymaster_key_blob_t*>(*from_d); in keyblob_dup() local
226 if (!blob) in keyblob_dup()
228 *from_d = duplicate_blob(*blob); in keyblob_dup()
237 keymaster_key_blob_t* blob = reinterpret_cast<keymaster_key_blob_t*>(ptr); in keyblob_free() local
238 if (blob) { in keyblob_free()
239 delete[] blob->key_material; in keyblob_free()
240 delete blob; in keyblob_free()
260 bool Keymaster0Engine::Keymaster0Sign(const void* signing_params, const keymaster_key_blob_t& blob, in Keymaster0Sign() argument
265 int err = keymaster0_device_->sign_data(keymaster0_device_, signing_params, blob.key_material, in Keymaster0Sign()
266 blob.key_material_size, data, data_length, &signed_data, in Keymaster0Sign()
277 EVP_PKEY* Keymaster0Engine::GetKeymaster0PublicKey(const KeymasterKeyBlob& blob) const { in GetKeymaster0PublicKey()
280 int err = keymaster0_device_->get_keypair_public(keymaster0_device_, blob.key_material, in GetKeymaster0PublicKey()
281 blob.key_material_size, &pub_key_data, in GetKeymaster0PublicKey()