| Index: content/renderer/webcrypto_impl.h
|
| diff --git a/content/renderer/webcrypto_impl.h b/content/renderer/webcrypto_impl.h
|
| index 362be61307402eb35fd5f3041ca6c149e0d8ca32..6172607fdf737beea58b79ab97b5fe1d160cc82f 100644
|
| --- a/content/renderer/webcrypto_impl.h
|
| +++ b/content/renderer/webcrypto_impl.h
|
| @@ -38,6 +38,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_TEST_ALL_PREFIXES(WebCryptoImplTest, DigestSampleSets);
|
| @@ -64,6 +72,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);
|
|
|