Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: public/platform/WebCryptoAlgorithmParams.h

Issue 184453005: [webcrypto] Change HMAC key generation length from bytes to bits. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add rebased tests Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/platform/WebCrypto.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebCryptoAlgorithmParams.h
diff --git a/public/platform/WebCryptoAlgorithmParams.h b/public/platform/WebCryptoAlgorithmParams.h
index f6fe2ee0b7bf369d2f16d562052bf0e4f0604277..5d94d350e55c728e8b5a820843ee1b84604d0c2f 100644
--- a/public/platform/WebCryptoAlgorithmParams.h
+++ b/public/platform/WebCryptoAlgorithmParams.h
@@ -131,23 +131,23 @@ public:
class WebCryptoHmacKeyGenParams : public WebCryptoAlgorithmParamsWithHash {
public:
- WebCryptoHmacKeyGenParams(const WebCryptoAlgorithm& hash, bool hasLengthBytes, unsigned lengthBytes)
+ WebCryptoHmacKeyGenParams(const WebCryptoAlgorithm& hash, bool hasLengthBits, unsigned lengthBits)
: WebCryptoAlgorithmParamsWithHash(hash)
- , m_hasLengthBytes(hasLengthBytes)
- , m_optionalLengthBytes(lengthBytes)
+ , m_hasLengthBits(hasLengthBits)
+ , m_optionalLengthBits(lengthBits)
{
- BLINK_ASSERT(hasLengthBytes || !lengthBytes);
+ BLINK_ASSERT(hasLengthBits || !lengthBits);
}
virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeHmacKeyGenParams; }
- bool hasLengthBytes() const { return m_hasLengthBytes; }
+ bool hasLengthBits() const { return m_hasLengthBits; }
- unsigned optionalLengthBytes() const { return m_optionalLengthBytes; }
+ unsigned optionalLengthBits() const { return m_optionalLengthBits; }
private:
- const bool m_hasLengthBytes;
- const unsigned m_optionalLengthBytes;
+ const bool m_hasLengthBits;
+ const unsigned m_optionalLengthBits;
};
class WebCryptoRsaKeyGenParams : public WebCryptoAlgorithmParams {
« no previous file with comments | « public/platform/WebCrypto.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698