1 // Copyright 2014 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/ownership/owner_key_util.h"
11 ///////////////////////////////////////////////////////////////////////////
14 PublicKey::PublicKey(bool is_persisted, std::vector<uint8_t> data)
15 : is_persisted_(is_persisted), data_(std::move(data)) {}
17 PublicKey::~PublicKey() = default;
19 scoped_refptr<PublicKey> PublicKey::clone() {
20 return base::MakeRefCounted<ownership::PublicKey>(is_persisted_, data_);
23 ///////////////////////////////////////////////////////////////////////////
26 PrivateKey::PrivateKey(crypto::ScopedSECKEYPrivateKey key)
27 : key_(std::move(key)) {}
29 PrivateKey::~PrivateKey() = default;
31 } // namespace ownership