Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Unified Diff: Source/bindings/modules/v8/ScriptValueSerializerForModules.cpp

Issue 820523003: [webcrypto] Implement PBKDF2 (blink-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: nit Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « LayoutTests/crypto/subtle/pbkdf2-deriveKey-failures-expected.txt ('k') | Source/modules/crypto/NormalizeAlgorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698