OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/ownership/owner_key_util.h" |
| 6 |
| 7 #include <limits> |
| 8 |
| 9 #include "base/file_util.h" |
| 10 #include "base/files/file_path.h" |
| 11 #include "base/logging.h" |
| 12 #include "base/sys_info.h" |
| 13 #include "components/ownership/owner_key_util_impl.h" |
| 14 #include "crypto/rsa_private_key.h" |
| 15 |
| 16 namespace ownership { |
| 17 |
| 18 /////////////////////////////////////////////////////////////////////////// |
| 19 // PublicKey |
| 20 |
| 21 PublicKey::PublicKey() { |
| 22 } |
| 23 |
| 24 PublicKey::~PublicKey() { |
| 25 } |
| 26 |
| 27 /////////////////////////////////////////////////////////////////////////// |
| 28 // PrivateKey |
| 29 |
| 30 PrivateKey::PrivateKey(crypto::RSAPrivateKey* key) : key_(key) { |
| 31 } |
| 32 |
| 33 PrivateKey::~PrivateKey() { |
| 34 } |
| 35 |
| 36 /////////////////////////////////////////////////////////////////////////// |
| 37 // OwnerKeyUtil |
| 38 |
| 39 scoped_refptr<OwnerKeyUtil> OwnerKeyUtil::Create( |
| 40 const base::FilePath& public_key_path) { |
| 41 return new OwnerKeyUtilImpl(public_key_path); |
| 42 } |
| 43 |
| 44 OwnerKeyUtil::OwnerKeyUtil() { |
| 45 } |
| 46 |
| 47 OwnerKeyUtil::~OwnerKeyUtil() { |
| 48 } |
| 49 |
| 50 } // namespace ownership |
OLD | NEW |