eroman | d62cb47 | 2015-09-18 18:24:23 | [diff] [blame] | 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 | #ifndef COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATIONS_H_ |
| 6 | #define COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATIONS_H_ |
| 7 | |
dcheng | 7036d1e5 | 2016-04-21 23:13:03 | [diff] [blame] | 8 | #include <memory> |
| 9 | |
eroman | d62cb47 | 2015-09-18 18:24:23 | [diff] [blame] | 10 | #include "third_party/WebKit/public/platform/WebCrypto.h" |
| 11 | |
| 12 | // The definitions for these functions live in the algorithms/ directory. |
| 13 | namespace webcrypto { |
| 14 | |
| 15 | class AlgorithmImplementation; |
| 16 | |
dcheng | 7036d1e5 | 2016-04-21 23:13:03 | [diff] [blame] | 17 | std::unique_ptr<blink::WebCryptoDigestor> CreateDigestorImplementation( |
eroman | d62cb47 | 2015-09-18 18:24:23 | [diff] [blame] | 18 | blink::WebCryptoAlgorithmId algorithm); |
| 19 | |
dcheng | 7036d1e5 | 2016-04-21 23:13:03 | [diff] [blame] | 20 | std::unique_ptr<AlgorithmImplementation> CreateShaImplementation(); |
| 21 | std::unique_ptr<AlgorithmImplementation> CreateAesCbcImplementation(); |
| 22 | std::unique_ptr<AlgorithmImplementation> CreateAesCtrImplementation(); |
| 23 | std::unique_ptr<AlgorithmImplementation> CreateAesGcmImplementation(); |
| 24 | std::unique_ptr<AlgorithmImplementation> CreateAesKwImplementation(); |
| 25 | std::unique_ptr<AlgorithmImplementation> CreateHmacImplementation(); |
| 26 | std::unique_ptr<AlgorithmImplementation> CreateRsaOaepImplementation(); |
| 27 | std::unique_ptr<AlgorithmImplementation> CreateRsaSsaImplementation(); |
| 28 | std::unique_ptr<AlgorithmImplementation> CreateRsaPssImplementation(); |
| 29 | std::unique_ptr<AlgorithmImplementation> CreateEcdsaImplementation(); |
| 30 | std::unique_ptr<AlgorithmImplementation> CreateEcdhImplementation(); |
| 31 | std::unique_ptr<AlgorithmImplementation> CreateHkdfImplementation(); |
| 32 | std::unique_ptr<AlgorithmImplementation> CreatePbkdf2Implementation(); |
eroman | d62cb47 | 2015-09-18 18:24:23 | [diff] [blame] | 33 | |
| 34 | } // namespace webcrypto |
| 35 | |
| 36 | #endif // COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATIONS_H_ |