Lines Matching refs:encrypted_key
429 KmErrorOr<EncryptedKey> encrypted_key; in CreateAuthEncryptedKeyBlob() local
431 encrypted_key = EncryptKey( in CreateAuthEncryptedKeyBlob()
436 encrypted_key = EncryptKey( in CreateAuthEncryptedKeyBlob()
441 if (!encrypted_key) { in CreateAuthEncryptedKeyBlob()
442 return encrypted_key.error(); in CreateAuthEncryptedKeyBlob()
445 encrypted_key->kdf_version = info.kdf_version; in CreateAuthEncryptedKeyBlob()
446 encrypted_key->addl_info = info.addl_info; in CreateAuthEncryptedKeyBlob()
448 *encrypted_key, hw_enforced, sw_enforced, in CreateAuthEncryptedKeyBlob()
690 deserialized_key->encrypted_key.format); in ParseKeyBlob()
693 error = DeriveMasterKey(&master_key, deserialized_key->encrypted_key); in ParseKeyBlob()
705 if (deserialized_key->encrypted_key.format == in ParseKeyBlob()
707 deserialized_key->encrypted_key.format == in ParseKeyBlob()
715 deserialized_key->encrypted_key.format); in ParseKeyBlob()
743 deserialized_key->encrypted_key.format); in DeleteKey()
1437 Buffer encrypted_key; in UnwrapKey() local
1445 if (!encrypted_key.Reinitialize(total_key_size)) { in UnwrapKey()
1450 if (!encrypted_key.write(secure_key.key_material, in UnwrapKey()
1454 if (!encrypted_key.write(tag.data, tag.data_length)) { in UnwrapKey()
1469 error = aes_operation->Update(update_params, encrypted_key, in UnwrapKey()