| 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_OPENSSL_AES_OPENSSL_H_ | 5 #ifndef CONTENT_CHILD_WEBCRYPTO_OPENSSL_AES_OPENSSL_H_ |
| 6 #define CONTENT_CHILD_WEBCRYPTO_OPENSSL_AES_OPENSSL_H_ | 6 #define CONTENT_CHILD_WEBCRYPTO_OPENSSL_AES_OPENSSL_H_ |
| 7 | 7 |
| 8 #include "content/child/webcrypto/algorithm_implementation.h" | 8 #include "content/child/webcrypto/algorithm_implementation.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 blink::WebCryptoKeyUsageMask usage_mask, | 46 blink::WebCryptoKeyUsageMask usage_mask, |
| 47 blink::WebCryptoKey* key) const OVERRIDE; | 47 blink::WebCryptoKey* key) const OVERRIDE; |
| 48 | 48 |
| 49 virtual Status ImportKeyJwk(const CryptoData& key_data, | 49 virtual Status ImportKeyJwk(const CryptoData& key_data, |
| 50 const blink::WebCryptoAlgorithm& algorithm, | 50 const blink::WebCryptoAlgorithm& algorithm, |
| 51 bool extractable, | 51 bool extractable, |
| 52 blink::WebCryptoKeyUsageMask usage_mask, | 52 blink::WebCryptoKeyUsageMask usage_mask, |
| 53 blink::WebCryptoKey* key) const OVERRIDE; | 53 blink::WebCryptoKey* key) const OVERRIDE; |
| 54 | 54 |
| 55 virtual Status ExportKeyRaw(const blink::WebCryptoKey& key, | 55 virtual Status ExportKeyRaw(const blink::WebCryptoKey& key, |
| 56 std::vector<uint8>* buffer) const OVERRIDE; | 56 std::vector<uint8_t>* buffer) const OVERRIDE; |
| 57 | 57 |
| 58 virtual Status ExportKeyJwk(const blink::WebCryptoKey& key, | 58 virtual Status ExportKeyJwk(const blink::WebCryptoKey& key, |
| 59 std::vector<uint8>* buffer) const OVERRIDE; | 59 std::vector<uint8_t>* buffer) const OVERRIDE; |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 const blink::WebCryptoKeyUsageMask all_key_usages_; | 62 const blink::WebCryptoKeyUsageMask all_key_usages_; |
| 63 const std::string jwk_suffix_; | 63 const std::string jwk_suffix_; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace webcrypto | 66 } // namespace webcrypto |
| 67 | 67 |
| 68 } // namespace content | 68 } // namespace content |
| 69 | 69 |
| 70 #endif // CONTENT_CHILD_WEBCRYPTO_OPENSSL_AES_OPENSSL_H_ | 70 #endif // CONTENT_CHILD_WEBCRYPTO_OPENSSL_AES_OPENSSL_H_ |
| OLD | NEW |