Index: Source/core/frame/SubresourceIntegrity.cpp |
diff --git a/Source/core/frame/SubresourceIntegrity.cpp b/Source/core/frame/SubresourceIntegrity.cpp |
index 0e041528d1f6cfa6a5db2bee128e5e2e9caf9afa..cf196a45b74698f9ebc4ea230502e0aacac3938b 100644 |
--- a/Source/core/frame/SubresourceIntegrity.cpp |
+++ b/Source/core/frame/SubresourceIntegrity.cpp |
@@ -167,8 +167,11 @@ bool SubresourceIntegrity::parseAlgorithm(const UChar*& position, const UChar* e |
HashAlgorithm algorithm; |
} kSupportedPrefixes[] = { |
{ "sha256", HashAlgorithmSha256 }, |
+ { "sha-256", HashAlgorithmSha256 }, |
{ "sha384", HashAlgorithmSha384 }, |
- { "sha512", HashAlgorithmSha512 } |
+ { "sha-384", HashAlgorithmSha384 }, |
+ { "sha512", HashAlgorithmSha512 }, |
+ { "sha-512", HashAlgorithmSha512 } |
}; |
for (auto& prefix : kSupportedPrefixes) { |