| 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_RSA_KEY_NSS_H_ | 5 #ifndef CONTENT_CHILD_WEBCRYPTO_NSS_RSA_KEY_NSS_H_ |
| 6 #define CONTENT_CHILD_WEBCRYPTO_NSS_RSA_KEY_NSS_H_ | 6 #define CONTENT_CHILD_WEBCRYPTO_NSS_RSA_KEY_NSS_H_ |
| 7 | 7 |
| 8 #include <pkcs11t.h> | 8 #include <pkcs11t.h> |
| 9 | 9 |
| 10 #include "content/child/webcrypto/algorithm_implementation.h" | 10 #include "content/child/webcrypto/algorithm_implementation.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 blink::WebCryptoKeyUsageMask usage_mask, | 66 blink::WebCryptoKeyUsageMask usage_mask, |
| 67 blink::WebCryptoKey* key) const OVERRIDE; | 67 blink::WebCryptoKey* key) const OVERRIDE; |
| 68 | 68 |
| 69 virtual Status ImportKeySpki(const CryptoData& key_data, | 69 virtual Status ImportKeySpki(const CryptoData& key_data, |
| 70 const blink::WebCryptoAlgorithm& algorithm, | 70 const blink::WebCryptoAlgorithm& algorithm, |
| 71 bool extractable, | 71 bool extractable, |
| 72 blink::WebCryptoKeyUsageMask usage_mask, | 72 blink::WebCryptoKeyUsageMask usage_mask, |
| 73 blink::WebCryptoKey* key) const OVERRIDE; | 73 blink::WebCryptoKey* key) const OVERRIDE; |
| 74 | 74 |
| 75 virtual Status ExportKeyPkcs8(const blink::WebCryptoKey& key, | 75 virtual Status ExportKeyPkcs8(const blink::WebCryptoKey& key, |
| 76 std::vector<uint8>* buffer) const OVERRIDE; | 76 std::vector<uint8_t>* buffer) const OVERRIDE; |
| 77 | 77 |
| 78 virtual Status ExportKeySpki(const blink::WebCryptoKey& key, | 78 virtual Status ExportKeySpki(const blink::WebCryptoKey& key, |
| 79 std::vector<uint8>* buffer) const OVERRIDE; | 79 std::vector<uint8_t>* buffer) const OVERRIDE; |
| 80 | 80 |
| 81 virtual Status ImportKeyJwk(const CryptoData& key_data, | 81 virtual Status ImportKeyJwk(const CryptoData& key_data, |
| 82 const blink::WebCryptoAlgorithm& algorithm, | 82 const blink::WebCryptoAlgorithm& algorithm, |
| 83 bool extractable, | 83 bool extractable, |
| 84 blink::WebCryptoKeyUsageMask usage_mask, | 84 blink::WebCryptoKeyUsageMask usage_mask, |
| 85 blink::WebCryptoKey* key) const OVERRIDE; | 85 blink::WebCryptoKey* key) const OVERRIDE; |
| 86 | 86 |
| 87 virtual Status ExportKeyJwk(const blink::WebCryptoKey& key, | 87 virtual Status ExportKeyJwk(const blink::WebCryptoKey& key, |
| 88 std::vector<uint8>* buffer) const OVERRIDE; | 88 std::vector<uint8_t>* buffer) const OVERRIDE; |
| 89 | 89 |
| 90 private: | 90 private: |
| 91 CK_FLAGS generate_flags_; | 91 CK_FLAGS generate_flags_; |
| 92 blink::WebCryptoKeyUsageMask all_public_key_usages_; | 92 blink::WebCryptoKeyUsageMask all_public_key_usages_; |
| 93 blink::WebCryptoKeyUsageMask all_private_key_usages_; | 93 blink::WebCryptoKeyUsageMask all_private_key_usages_; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace webcrypto | 96 } // namespace webcrypto |
| 97 | 97 |
| 98 } // namespace content | 98 } // namespace content |
| 99 | 99 |
| 100 #endif // CONTENT_CHILD_WEBCRYPTO_NSS_RSA_KEY_NSS_H_ | 100 #endif // CONTENT_CHILD_WEBCRYPTO_NSS_RSA_KEY_NSS_H_ |
| OLD | NEW |