blob: 6a828d6bfc40c6a215f8b134b8317912f627ed49 [file] [log] [blame]
// Copyright 2013 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cryptohome/vault_keyset_factory.h"
#include "cryptohome/vault_keyset.h"
namespace cryptohome {
VaultKeysetFactory::VaultKeysetFactory() {}
VaultKeysetFactory::~VaultKeysetFactory() {}
VaultKeyset* VaultKeysetFactory::New(libstorage::Platform* platform,
Crypto* crypto) {
VaultKeyset* v = new VaultKeyset();
v->Initialize(platform, crypto);
return v;
}
VaultKeyset* VaultKeysetFactory::NewBackup(libstorage::Platform* platform,
Crypto* crypto) {
VaultKeyset* v = new VaultKeyset();
v->InitializeAsBackup(platform, crypto);
return v;
}
} // namespace cryptohome