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

Unified Diff: crypto/symmetric_key.h

Issue 2934893003: Deleted redundant SymmetricKey::GetRawKey(). (Closed)
Patch Set: Rebased to fix conflict with ToT. Created 3 years, 6 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 | « crypto/hmac.cc ('k') | crypto/symmetric_key.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/symmetric_key.h
diff --git a/crypto/symmetric_key.h b/crypto/symmetric_key.h
index e762555a2c69339e8b94a9ab4b8ae4afe1759107..9803cdcf2498edab46783cb2072bb454e002bcae 100644
--- a/crypto/symmetric_key.h
+++ b/crypto/symmetric_key.h
@@ -50,18 +50,14 @@ class CRYPTO_EXPORT SymmetricKey {
// Imports an array of key bytes in |raw_key|. This key may have been
// generated by GenerateRandomKey or DeriveKeyFromPassword and exported with
- // GetRawKey, or via another compatible method. The key must be of suitable
- // size for use with |algorithm|. The caller owns the returned SymmetricKey.
+ // key(). The key must be of suitable size for use with |algorithm|.
+ // The caller owns the returned SymmetricKey.
static std::unique_ptr<SymmetricKey> Import(Algorithm algorithm,
const std::string& raw_key);
+ // Returns the raw platform specific key data.
const std::string& key() const { return key_; }
- // Extracts the raw key from the platform specific data.
- // Warning: |raw_key| holds the raw key as bytes and thus must be handled
- // carefully.
- bool GetRawKey(std::string* raw_key) const;
-
private:
SymmetricKey();
« no previous file with comments | « crypto/hmac.cc ('k') | crypto/symmetric_key.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698