| 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_AES_NSS_H_ | 5 #ifndef CONTENT_CHILD_WEBCRYPTO_NSS_AES_NSS_H_ |
| 6 #define CONTENT_CHILD_WEBCRYPTO_NSS_AES_NSS_H_ | 6 #define CONTENT_CHILD_WEBCRYPTO_NSS_AES_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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 blink::WebCryptoKeyUsageMask usage_mask, | 54 blink::WebCryptoKeyUsageMask usage_mask, |
| 55 blink::WebCryptoKey* key) const OVERRIDE; | 55 blink::WebCryptoKey* key) const OVERRIDE; |
| 56 | 56 |
| 57 virtual Status ImportKeyJwk(const CryptoData& key_data, | 57 virtual Status ImportKeyJwk(const CryptoData& key_data, |
| 58 const blink::WebCryptoAlgorithm& algorithm, | 58 const blink::WebCryptoAlgorithm& algorithm, |
| 59 bool extractable, | 59 bool extractable, |
| 60 blink::WebCryptoKeyUsageMask usage_mask, | 60 blink::WebCryptoKeyUsageMask usage_mask, |
| 61 blink::WebCryptoKey* key) const OVERRIDE; | 61 blink::WebCryptoKey* key) const OVERRIDE; |
| 62 | 62 |
| 63 virtual Status ExportKeyRaw(const blink::WebCryptoKey& key, | 63 virtual Status ExportKeyRaw(const blink::WebCryptoKey& key, |
| 64 std::vector<uint8>* buffer) const OVERRIDE; | 64 std::vector<uint8_t>* buffer) const OVERRIDE; |
| 65 | 65 |
| 66 virtual Status ExportKeyJwk(const blink::WebCryptoKey& key, | 66 virtual Status ExportKeyJwk(const blink::WebCryptoKey& key, |
| 67 std::vector<uint8>* buffer) const OVERRIDE; | 67 std::vector<uint8_t>* buffer) const OVERRIDE; |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 const CK_MECHANISM_TYPE import_mechanism_; | 70 const CK_MECHANISM_TYPE import_mechanism_; |
| 71 const CK_FLAGS import_flags_; | 71 const CK_FLAGS import_flags_; |
| 72 const blink::WebCryptoKeyUsageMask all_key_usages_; | 72 const blink::WebCryptoKeyUsageMask all_key_usages_; |
| 73 const std::string jwk_suffix_; | 73 const std::string jwk_suffix_; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace webcrypto | 76 } // namespace webcrypto |
| 77 | 77 |
| 78 } // namespace content | 78 } // namespace content |
| 79 | 79 |
| 80 #endif // CONTENT_CHILD_WEBCRYPTO_NSS_AES_NSS_H_ | 80 #endif // CONTENT_CHILD_WEBCRYPTO_NSS_AES_NSS_H_ |
| OLD | NEW |