Lines Matching refs:key_material
98 KeymasterKeyBlob* key_material) const { in GenerateRsaKey()
99 assert(key_material); in GenerateRsaKey()
106 &key_material->key_material_size) < 0) { in GenerateRsaKey()
111 key_material->key_material = dup_buffer(key_blob, key_material->key_material_size); in GenerateRsaKey()
115 bool Keymaster0Engine::GenerateEcKey(uint32_t key_size, KeymasterKeyBlob* key_material) const { in GenerateEcKey()
116 assert(key_material); in GenerateEcKey()
122 &key_material->key_material_size) < 0) { in GenerateEcKey()
127 key_material->key_material = dup_buffer(key_blob, key_material->key_material_size); in GenerateEcKey()
139 if (keymaster0_device_->import_keypair(keymaster0_device_, to_import.key_material, in ImportKey()
146 imported_key->key_material = dup_buffer(key_blob, imported_key->key_material_size); in ImportKey()
153 return (keymaster0_device_->delete_keypair(keymaster0_device_, blob.key_material, in DeleteKey()
172 blob_copy->key_material = key_material_copy.release(); in duplicate_blob()
177 return duplicate_blob(blob.key_material, blob.key_material_size); in duplicate_blob()
187 if (!blob_copy->key_material || !RSA_set_ex_data(rsa.get(), rsa_index_, blob_copy)) in BlobToRsaKey()
212 if (!blob_copy->key_material || !EC_KEY_set_ex_data(ec_key.get(), ec_key_index_, blob_copy)) in BlobToEcKey()
257 delete[] blob->key_material; in keyblob_free()
283 int err = keymaster0_device_->sign_data(keymaster0_device_, signing_params, blob.key_material, in Keymaster0Sign()
298 int err = keymaster0_device_->get_keypair_public(keymaster0_device_, blob.key_material, in GetKeymaster0PublicKey()