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

Unified Diff: crypto/hkdf.h

Issue 1904163003: Add new constructor to HKDF that allows the client and server key/IV (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: StringPiece Created 4 years, 8 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
« no previous file with comments | « no previous file | crypto/hkdf.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/hkdf.h
diff --git a/crypto/hkdf.h b/crypto/hkdf.h
index 6b7d00dd6e200bd093cb8311d211d8d0f5a05efd..b8c07c6c6694f57d009cf7ea93c9c5772b25184e 100644
--- a/crypto/hkdf.h
+++ b/crypto/hkdf.h
@@ -40,6 +40,17 @@ class CRYPTO_EXPORT HKDF {
size_t key_bytes_to_generate,
size_t iv_bytes_to_generate,
size_t subkey_secret_bytes_to_generate);
+
+ // An alternative constructor that allows the client and server key/IV
+ // lengths to be different.
+ HKDF(const base::StringPiece& secret,
+ const base::StringPiece& salt,
+ const base::StringPiece& info,
+ size_t client_key_bytes_to_generate,
+ size_t server_key_bytes_to_generate,
+ size_t client_iv_bytes_to_generate,
+ size_t server_iv_bytes_to_generate,
+ size_t subkey_secret_bytes_to_generate);
~HKDF();
base::StringPiece client_write_key() const {
« no previous file with comments | « no previous file | crypto/hkdf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698