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

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

Issue 789733009: Implement HKDF for WebCrypto (blink-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years 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 08add9b64a162f1c2349c1a1f0b7f4b41428265f..ae2dd1497f24b22d73a10dbb984c6f999df9b09b 100644
--- a/Source/bindings/modules/v8/ScriptValueSerializerForModules.cpp
+++ b/Source/bindings/modules/v8/ScriptValueSerializerForModules.cpp
@@ -30,6 +30,7 @@ enum CryptoKeyAlgorithmTag {
RsaPssTag = 13,
EcdsaTag = 14,
EcdhTag = 15,
+ HkdfTag = 16,
// Maximum allowed value is 2^32-1
};
@@ -215,6 +216,8 @@ void SerializedScriptValueWriterForModules::doWriteAlgorithmId(WebCryptoAlgorith
return doWriteUint32(EcdsaTag);
case WebCryptoAlgorithmIdEcdh:
return doWriteUint32(EcdhTag);
+ case WebCryptoAlgorithmIdHkdf:
+ return doWriteUint32(HkdfTag);
}
ASSERT_NOT_REACHED();
}
@@ -507,6 +510,9 @@ bool SerializedScriptValueReaderForModules::doReadAlgorithmId(WebCryptoAlgorithm
case EcdhTag:
id = WebCryptoAlgorithmIdEcdh;
return true;
+ case HkdfTag:
+ id = WebCryptoAlgorithmIdHkdf;
+ return true;
}
return false;
« no previous file with comments | « no previous file | Source/modules/crypto/NormalizeAlgorithm.cpp » ('j') | Source/modules/crypto/NormalizeAlgorithm.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698