diff options
author | bryaneyler@google.com <bryaneyler@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-26 22:28:10 +0000 |
---|---|---|
committer | bryaneyler@google.com <bryaneyler@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-26 22:28:10 +0000 |
commit | 3ed0026a949b0f2c857db20d7fc1335ee658c0ec (patch) | |
tree | 0728a60a7c2376e280224fe0109d914a11dd44b6 /content/renderer/webcrypto_impl.h | |
parent | 1fe6371fe8fb4347694648e9461630614454b692 (diff) | |
download | chromium_src-3ed0026a949b0f2c857db20d7fc1335ee658c0ec.zip chromium_src-3ed0026a949b0f2c857db20d7fc1335ee658c0ec.tar.gz chromium_src-3ed0026a949b0f2c857db20d7fc1335ee658c0ec.tar.bz2 |
Implement verify() for HMAC using NSS
BUG=245025
Review URL: https://codereview.chromium.org/24616003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225589 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/webcrypto_impl.h')
-rw-r--r-- | content/renderer/webcrypto_impl.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/content/renderer/webcrypto_impl.h b/content/renderer/webcrypto_impl.h index a2c8a87..41adf64 100644 --- a/content/renderer/webcrypto_impl.h +++ b/content/renderer/webcrypto_impl.h @@ -37,6 +37,14 @@ class CONTENT_EXPORT WebCryptoImpl const unsigned char* data, unsigned data_size, WebKit::WebCryptoResult result); + virtual void verifySignature( + const WebKit::WebCryptoAlgorithm& algorithm, + const WebKit::WebCryptoKey& key, + const unsigned char* signature, + unsigned signature_size, + const unsigned char* data, + unsigned data_size, + WebKit::WebCryptoResult result); protected: friend class WebCryptoImplTest; @@ -62,6 +70,14 @@ class CONTENT_EXPORT WebCryptoImpl const unsigned char* data, unsigned data_size, WebKit::WebArrayBuffer* buffer); + bool VerifySignatureInternal( + const WebKit::WebCryptoAlgorithm& algorithm, + const WebKit::WebCryptoKey& key, + const unsigned char* signature, + unsigned signature_size, + const unsigned char* data, + unsigned data_size, + bool* signature_match); private: DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); |