Chromium Code Reviews| Index: Source/core/frame/SubresourceIntegrity.cpp |
| diff --git a/Source/core/frame/SubresourceIntegrity.cpp b/Source/core/frame/SubresourceIntegrity.cpp |
| index 0e041528d1f6cfa6a5db2bee128e5e2e9caf9afa..b51c23247ebec398607dfe36460cc18d746ee9e0 100644 |
| --- a/Source/core/frame/SubresourceIntegrity.cpp |
| +++ b/Source/core/frame/SubresourceIntegrity.cpp |
| @@ -168,7 +168,10 @@ bool SubresourceIntegrity::parseAlgorithm(const UChar*& position, const UChar* e |
| } kSupportedPrefixes[] = { |
| { "sha256", HashAlgorithmSha256 }, |
| { "sha384", HashAlgorithmSha384 }, |
| - { "sha512", HashAlgorithmSha512 } |
| + { "sha512", HashAlgorithmSha512 }, |
| + { "sha-256", HashAlgorithmSha256 }, |
|
jww
2014/12/12 19:11:06
If you're cool with it, I'd rather order the algor
|
| + { "sha-384", HashAlgorithmSha384 }, |
| + { "sha-512", HashAlgorithmSha512 } |
| }; |
| for (auto& prefix : kSupportedPrefixes) { |