| Index: content/child/webcrypto/nss/algorithms_nss.h
|
| diff --git a/content/child/webcrypto/crypto_data.cc b/content/child/webcrypto/nss/algorithms_nss.h
|
| similarity index 27%
|
| copy from content/child/webcrypto/crypto_data.cc
|
| copy to content/child/webcrypto/nss/algorithms_nss.h
|
| index 29736418ae5b1de0716b530b631da8604453237e..84ff152820cf813e6a2eb8be9d3596a57838490c 100644
|
| --- a/content/child/webcrypto/crypto_data.cc
|
| +++ b/content/child/webcrypto/nss/algorithms_nss.h
|
| @@ -2,28 +2,25 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "content/child/webcrypto/crypto_data.h"
|
| +#ifndef CONTENT_CHILD_WEBCRYPTO_NSS_ALGORITHMS_NSS_H_
|
| +#define CONTENT_CHILD_WEBCRYPTO_NSS_ALGORITHMS_NSS_H_
|
|
|
| namespace content {
|
|
|
| namespace webcrypto {
|
|
|
| -CryptoData::CryptoData() : bytes_(NULL), byte_length_(0) {}
|
| +class AlgorithmImplementation;
|
|
|
| -CryptoData::CryptoData(const unsigned char* bytes, unsigned int byte_length)
|
| - : bytes_(bytes), byte_length_(byte_length) {}
|
| -
|
| -CryptoData::CryptoData(const std::vector<unsigned char>& bytes)
|
| - : bytes_(bytes.size() ? &bytes[0] : NULL), byte_length_(bytes.size()) {}
|
| -
|
| -CryptoData::CryptoData(const std::string& bytes)
|
| - : bytes_(bytes.size() ? reinterpret_cast<const unsigned char*>(bytes.data())
|
| - : NULL),
|
| - byte_length_(bytes.size()) {}
|
| -
|
| -CryptoData::CryptoData(const blink::WebVector<unsigned char>& bytes)
|
| - : bytes_(bytes.data()), byte_length_(bytes.size()) {}
|
| +AlgorithmImplementation* CreateShaImplementation();
|
| +AlgorithmImplementation* CreateAesCbcImplementation();
|
| +AlgorithmImplementation* CreateAesGcmImplementation();
|
| +AlgorithmImplementation* CreateAesKwImplementation();
|
| +AlgorithmImplementation* CreateHmacImplementation();
|
| +AlgorithmImplementation* CreateRsaOaepImplementation();
|
| +AlgorithmImplementation* CreateRsaSsaImplementation();
|
|
|
| } // namespace webcrypto
|
|
|
| } // namespace content
|
| +
|
| +#endif // CONTENT_CHILD_WEBCRYPTO_NSS_ALGORITHMS_NSS_H_
|
|
|