OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_CHILD_WEBCRYPTO_NSS_KEY_NSS_H_ | 5 #ifndef CONTENT_CHILD_WEBCRYPTO_NSS_KEY_NSS_H_ |
6 #define CONTENT_CHILD_WEBCRYPTO_NSS_KEY_NSS_H_ | 6 #define CONTENT_CHILD_WEBCRYPTO_NSS_KEY_NSS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "crypto/scoped_nss_types.h" | 11 #include "crypto/scoped_nss_types.h" |
12 #include "third_party/WebKit/public/platform/WebCryptoKey.h" | 12 #include "third_party/WebKit/public/platform/WebCryptoKey.h" |
13 | 13 |
14 namespace content { | 14 namespace components { |
15 | 15 |
16 namespace webcrypto { | 16 namespace webcrypto { |
17 | 17 |
18 class CryptoData; | 18 class CryptoData; |
19 class PrivateKeyNss; | 19 class PrivateKeyNss; |
20 class PublicKeyNss; | 20 class PublicKeyNss; |
21 class SymKeyNss; | 21 class SymKeyNss; |
22 | 22 |
23 // Base key class for all NSS keys, used to safely cast between types. Each key | 23 // Base key class for all NSS keys, used to safely cast between types. Each key |
24 // maintains a copy of its serialized form in either 'raw', 'pkcs8', or 'spki' | 24 // maintains a copy of its serialized form in either 'raw', 'pkcs8', or 'spki' |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 } | 97 } |
98 | 98 |
99 private: | 99 private: |
100 crypto::ScopedSECKEYPrivateKey key_; | 100 crypto::ScopedSECKEYPrivateKey key_; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(PrivateKeyNss); | 102 DISALLOW_COPY_AND_ASSIGN(PrivateKeyNss); |
103 }; | 103 }; |
104 | 104 |
105 } // namespace webcrypto | 105 } // namespace webcrypto |
106 | 106 |
107 } // namespace content | 107 } // namespace components |
108 | 108 |
109 #endif // CONTENT_CHILD_WEBCRYPTO_NSS_KEY_NSS_H_ | 109 #endif // CONTENT_CHILD_WEBCRYPTO_NSS_KEY_NSS_H_ |
OLD | NEW |