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

Unified Diff: base/crypto/symmetric_key.h

Issue 4691003: Implement symmetric key for openssl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows build Created 10 years, 1 month 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: base/crypto/symmetric_key.h
diff --git a/base/crypto/symmetric_key.h b/base/crypto/symmetric_key.h
index 3f2be76390c7188a5ec446dd1a79aa95b575f1ab..5958ec0f7ecb2a30872ff1b15c8fe093e2451e09 100644
--- a/base/crypto/symmetric_key.h
+++ b/base/crypto/symmetric_key.h
@@ -66,8 +66,9 @@ class SymmetricKey {
private:
#if defined(USE_OPENSSL)
- // TODO(joth): Add a constructor that accepts OpenSSL symmetric key data, and
- // the appropriate data members to store it in.
+ // Swaps in the content of the |key|.
wtc 2010/11/11 23:39:15 Just copy the key (it is <= 32 bytes), and use thi
joth 2010/11/12 12:15:53 Done. As mentioned to rsleevi, the swap() was int
wtc 2010/11/12 15:01:50 Ah, I see. It was not obvious that's the purpose
+ explicit SymmetricKey(std::string* key);
+ std::string key_;
#elif defined(USE_NSS)
explicit SymmetricKey(PK11SymKey* key);
ScopedPK11SymKey key_;

Powered by Google App Engine
This is Rietveld 408576698