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

Unified Diff: public/platform/WebCryptoAlgorithmParams.h

Issue 23537027: WebCrypto: [refactor] Use "unsigned" rather than "size_t" for buffer sizes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add an ifdef to coordinate with chromium side Created 7 years, 3 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 7562ce497c565331954a9e305aa1a0ee1ab389b4..712e12f8cb11274658b40cb1f0a25e9e663e5329 100644
--- a/public/platform/WebCryptoAlgorithmParams.h
+++ b/public/platform/WebCryptoAlgorithmParams.h
@@ -61,7 +61,7 @@ private:
class WebCryptoAesCbcParams : public WebCryptoAlgorithmParams {
public:
- WebCryptoAesCbcParams(unsigned char* iv, size_t ivSize)
+ WebCryptoAesCbcParams(unsigned char* iv, unsigned ivSize)
: WebCryptoAlgorithmParams(WebCryptoAlgorithmParamsTypeAesCbcParams)
, m_iv(iv, ivSize)
{
@@ -145,7 +145,7 @@ private:
class WebCryptoRsaKeyGenParams : public WebCryptoAlgorithmParams {
public:
- WebCryptoRsaKeyGenParams(unsigned modulusLength, const unsigned char* publicExponent, size_t publicExponentSize)
+ WebCryptoRsaKeyGenParams(unsigned modulusLength, const unsigned char* publicExponent, unsigned publicExponentSize)
: WebCryptoAlgorithmParams(WebCryptoAlgorithmParamsTypeRsaKeyGenParams)
, m_modulusLength(modulusLength)
, m_publicExponent(publicExponent, publicExponentSize)
« 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