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

Unified Diff: crypto/rsa_private_key.h

Issue 18697003: Introduce RSAPrivateKey::SignDigest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/rsa_private_key_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/rsa_private_key.h
diff --git a/crypto/rsa_private_key.h b/crypto/rsa_private_key.h
index ad82148428a564519262c98fb503f1969eee1fdb..c2398c5ec9780e6d3f74292036ce9a2878f5bf53 100644
--- a/crypto/rsa_private_key.h
+++ b/crypto/rsa_private_key.h
@@ -221,6 +221,11 @@ class CRYPTO_EXPORT RSAPrivateKey {
// Exports the public key to an X509 SubjectPublicKeyInfo block.
bool ExportPublicKey(std::vector<uint8>* output) const;
+ // Signs the message |digest| using this private key as specified in
+ // PKCS #1. Assumes the digest was created using SHA1 algorithm.
+ bool SignDigest(const std::vector<uint8>& digest,
+ std::vector<uint8>* output) const;
Ryan Sleevi 2013/07/08 18:09:37 This shouldn't really hang off RSAPrivateKey. We'
pfeldman 2013/07/08 20:42:50 Done.
+
private:
#if defined(USE_NSS)
FRIEND_TEST_ALL_PREFIXES(RSAPrivateKeyNSSTest, FindFromPublicKey);
« no previous file with comments | « no previous file | crypto/rsa_private_key_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698