Chromium Code Reviews| Index: third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h |
| diff --git a/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h b/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h |
| index e90e98d466b11a6cea941a4d5b57e185cca118fa..eba3225b180ce59baf777a79f729752b8d9150df 100644 |
| --- a/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h |
| +++ b/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h |
| @@ -34,6 +34,7 @@ |
| #include "WebCommon.h" |
| #include "WebCryptoAlgorithm.h" |
| #include "WebCryptoKey.h" |
| +#include "WebCryptoUtil.h" |
| #include "WebVector.h" |
| namespace blink { |
| @@ -227,6 +228,11 @@ public: |
| const WebVector<unsigned char>& publicExponent() const { return m_publicExponent; } |
| const WebCryptoAlgorithm& hash() const { return m_hash; } |
| + // Converts the public exponent (BigInteger) to unsigned int. Returns true on success (if its value is not too large). |
| + bool publicExponentToUint(unsigned& result) const |
|
eroman
2015/10/27 18:24:11
I suggest removing this function, and just using W
hbos_chromium
2015/10/28 10:35:05
Done.
|
| + { |
| + return bigIntegerToUint(m_publicExponent, result); |
| + } |
| private: |
| const unsigned m_modulusLengthBits; |
| const WebVector<unsigned char> m_publicExponent; |