| Index: public/platform/WebCryptoKeyAlgorithmParams.h
|
| diff --git a/public/platform/WebCryptoKeyAlgorithmParams.h b/public/platform/WebCryptoKeyAlgorithmParams.h
|
| index a90fcbecf43e1c1ce61c2cb5f32d32292a99e634..0e96d563dd8bc20169b3bd044390093ea283555b 100644
|
| --- a/public/platform/WebCryptoKeyAlgorithmParams.h
|
| +++ b/public/platform/WebCryptoKeyAlgorithmParams.h
|
| @@ -35,6 +35,9 @@
|
| #include "WebCryptoAlgorithm.h"
|
| #include "WebVector.h"
|
|
|
| +// FIXME: Delete this once the chromium side has picked up the API change.
|
| +#define WEBCRYPTO_HMAC_KEY_HAS_LENGTH 1
|
| +
|
| namespace blink {
|
|
|
| enum WebCryptoKeyAlgorithmParamsType {
|
| @@ -77,8 +80,9 @@ private:
|
|
|
| class WebCryptoHmacKeyAlgorithmParams : public WebCryptoKeyAlgorithmParams {
|
| public:
|
| - explicit WebCryptoHmacKeyAlgorithmParams(const WebCryptoAlgorithm& hash)
|
| + WebCryptoHmacKeyAlgorithmParams(const WebCryptoAlgorithm& hash, unsigned lengthBits)
|
| : m_hash(hash)
|
| + , m_lengthBits(lengthBits)
|
| {
|
| }
|
|
|
| @@ -87,6 +91,11 @@ public:
|
| return m_hash;
|
| }
|
|
|
| + unsigned lengthBits() const
|
| + {
|
| + return m_lengthBits;
|
| + }
|
| +
|
| virtual WebCryptoKeyAlgorithmParamsType type() const
|
| {
|
| return WebCryptoKeyAlgorithmParamsTypeHmac;
|
| @@ -94,6 +103,7 @@ public:
|
|
|
| private:
|
| WebCryptoAlgorithm m_hash;
|
| + unsigned m_lengthBits;
|
| };
|
|
|
| class WebCryptoRsaKeyAlgorithmParams : public WebCryptoKeyAlgorithmParams {
|
|
|