algorithm_implementations.h 1.5 KB

123456789101112131415161718192021222324252627282930313233
  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. #ifndef COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATIONS_H_
  5. #define COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATIONS_H_
  6. #include <memory>
  7. #include "third_party/blink/public/platform/web_crypto.h"
  8. // The definitions for these functions live in the algorithms/ directory.
  9. namespace webcrypto {
  10. class AlgorithmImplementation;
  11. std::unique_ptr<AlgorithmImplementation> CreateShaImplementation();
  12. std::unique_ptr<AlgorithmImplementation> CreateAesCbcImplementation();
  13. std::unique_ptr<AlgorithmImplementation> CreateAesCtrImplementation();
  14. std::unique_ptr<AlgorithmImplementation> CreateAesGcmImplementation();
  15. std::unique_ptr<AlgorithmImplementation> CreateAesKwImplementation();
  16. std::unique_ptr<AlgorithmImplementation> CreateHmacImplementation();
  17. std::unique_ptr<AlgorithmImplementation> CreateRsaOaepImplementation();
  18. std::unique_ptr<AlgorithmImplementation> CreateRsaSsaImplementation();
  19. std::unique_ptr<AlgorithmImplementation> CreateRsaPssImplementation();
  20. std::unique_ptr<AlgorithmImplementation> CreateEcdsaImplementation();
  21. std::unique_ptr<AlgorithmImplementation> CreateEcdhImplementation();
  22. std::unique_ptr<AlgorithmImplementation> CreateHkdfImplementation();
  23. std::unique_ptr<AlgorithmImplementation> CreatePbkdf2Implementation();
  24. } // namespace webcrypto
  25. #endif // COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATIONS_H_