Index: Source/bindings/modules/v8/ScriptValueSerializerForModules.cpp |
diff --git a/Source/bindings/modules/v8/ScriptValueSerializerForModules.cpp b/Source/bindings/modules/v8/ScriptValueSerializerForModules.cpp |
index f0c53eedcaca7f2650cee4523681bcec28d09edb..6afd48eec4cbfeb1d05cd14f10c462fb24544e91 100644 |
--- a/Source/bindings/modules/v8/ScriptValueSerializerForModules.cpp |
+++ b/Source/bindings/modules/v8/ScriptValueSerializerForModules.cpp |
@@ -31,6 +31,7 @@ enum CryptoKeyAlgorithmTag { |
EcdsaTag = 14, |
EcdhTag = 15, |
HkdfTag = 16, |
+ Pbkdf2Tag = 17, |
// Maximum allowed value is 2^32-1 |
}; |
@@ -227,6 +228,8 @@ void SerializedScriptValueWriterForModules::doWriteAlgorithmId(WebCryptoAlgorith |
return doWriteUint32(EcdhTag); |
case WebCryptoAlgorithmIdHkdf: |
return doWriteUint32(HkdfTag); |
+ case WebCryptoAlgorithmIdPbkdf2: |
+ return doWriteUint32(Pbkdf2Tag); |
} |
ASSERT_NOT_REACHED(); |
} |
@@ -536,6 +539,9 @@ bool SerializedScriptValueReaderForModules::doReadAlgorithmId(WebCryptoAlgorithm |
case HkdfTag: |
id = WebCryptoAlgorithmIdHkdf; |
return true; |
+ case Pbkdf2Tag: |
+ id = WebCryptoAlgorithmIdPbkdf2; |
+ return true; |
} |
return false; |