Index: Source/modules/crypto/KeyAlgorithm.cpp |
diff --git a/Source/modules/crypto/KeyAlgorithm.cpp b/Source/modules/crypto/KeyAlgorithm.cpp |
index ebcbcd0c3237657a4b18bc504ff2ea42a9081c66..9ae965d5d1a1481ab32d12c5f73a22f71c18e739 100644 |
--- a/Source/modules/crypto/KeyAlgorithm.cpp |
+++ b/Source/modules/crypto/KeyAlgorithm.cpp |
@@ -36,6 +36,7 @@ |
#include "modules/crypto/NormalizeAlgorithm.h" |
#include "modules/crypto/RsaHashedKeyAlgorithm.h" |
#include "modules/crypto/RsaKeyAlgorithm.h" |
+#include "public/platform/WebCryptoAlgorithm.h" |
#include "wtf/text/WTFString.h" |
namespace WebCore { |
@@ -75,7 +76,8 @@ KeyAlgorithm::KeyAlgorithm(const blink::WebCryptoKeyAlgorithm& algorithm) |
String KeyAlgorithm::name() |
{ |
- return algorithmIdToName(m_algorithm.id()); |
+ const blink::WebCryptoAlgorithmInfo* info = blink::WebCryptoAlgorithm::lookupAlgorithmInfo(m_algorithm.id()); |
+ return info->name; |
} |
bool KeyAlgorithm::isAesKeyAlgorithm() const |