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(); |