summaryrefslogtreecommitdiffstats
path: root/crypto/rsa_private_key.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-03 01:12:08 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-03 01:12:08 +0000
commit587828804aee738c6c9a71daa531c8c63672e69d (patch)
tree38a3e5a65cd9c7faa5b0a57b55f97cfe7ef3665f /crypto/rsa_private_key.h
parentef589afc44a9ce7ccedb1948eace1f2fbfe7ec49 (diff)
downloadchromium_src-587828804aee738c6c9a71daa531c8c63672e69d.zip
chromium_src-587828804aee738c6c9a71daa531c8c63672e69d.tar.gz
chromium_src-587828804aee738c6c9a71daa531c8c63672e69d.tar.bz2
Implement RSAPrivateKey::Copy()
BUG=105220 Review URL: http://codereview.chromium.org/8727014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112837 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/rsa_private_key.h')
-rw-r--r--crypto/rsa_private_key.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/rsa_private_key.h b/crypto/rsa_private_key.h
index 6b9d9d6..4262a8d 100644
--- a/crypto/rsa_private_key.h
+++ b/crypto/rsa_private_key.h
@@ -223,11 +223,14 @@ class CRYPTO_EXPORT RSAPrivateKey {
CSSM_KEY_PTR public_key() { return &public_key_; }
#endif
+ // Creates a copy of the object.
+ RSAPrivateKey* Copy() const;
+
// Exports the private key to a PKCS #1 PrivateKey block.
- bool ExportPrivateKey(std::vector<uint8>* output);
+ bool ExportPrivateKey(std::vector<uint8>* output) const;
// Exports the public key to an X509 SubjectPublicKeyInfo block.
- bool ExportPublicKey(std::vector<uint8>* output);
+ bool ExportPublicKey(std::vector<uint8>* output) const;
private:
#if defined(USE_NSS)