| Index: public/platform/WebCryptoAlgorithm.h
|
| diff --git a/public/platform/WebCryptoAlgorithm.h b/public/platform/WebCryptoAlgorithm.h
|
| index 06dce09285fab712864fa1dbb5bd946455cc1b00..d662456729904d9fda2d16fe1370c3d9d168ba5d 100644
|
| --- a/public/platform/WebCryptoAlgorithm.h
|
| +++ b/public/platform/WebCryptoAlgorithm.h
|
| @@ -55,7 +55,7 @@ enum WebCryptoAlgorithmId {
|
| WebCryptoAlgorithmIdAesCtr,
|
| WebCryptoAlgorithmIdAesKw,
|
| #if INSIDE_BLINK
|
| - NumberOfWebCryptoAlgorithmId,
|
| + WebCryptoAlgorithmIdLast = WebCryptoAlgorithmIdAesKw,
|
| #endif
|
| };
|
|
|
| @@ -132,6 +132,9 @@ public:
|
| BLINK_PLATFORM_EXPORT const WebCryptoRsaHashedImportParams* rsaHashedImportParams() const;
|
| BLINK_PLATFORM_EXPORT const WebCryptoRsaHashedKeyGenParams* rsaHashedKeyGenParams() const;
|
|
|
| + // Returns true if the provided algorithm ID is for a hash (in other words, SHA-*)
|
| + BLINK_PLATFORM_EXPORT static bool isHash(WebCryptoAlgorithmId);
|
| +
|
| private:
|
| BLINK_PLATFORM_EXPORT void assign(const WebCryptoAlgorithm& other);
|
| BLINK_PLATFORM_EXPORT void reset();
|
|
|