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

Unified Diff: crypto/signature_creator.h

Issue 18697003: Introduce RSAPrivateKey::SignDigest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments addressed. 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/signature_creator_nss.cc » ('j') | crypto/signature_creator_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/signature_creator.h
diff --git a/crypto/signature_creator.h b/crypto/signature_creator.h
index 1a1d6e5ce7f6331b1bfd7fde48909a3bd011fd98..69ac623766693dda193d4ee6615c5fb6557036e2 100644
--- a/crypto/signature_creator.h
+++ b/crypto/signature_creator.h
@@ -34,6 +34,13 @@ class CRYPTO_EXPORT SignatureCreator {
// instance outlives the created SignatureCreator.
static SignatureCreator* Create(RSAPrivateKey* key);
+ // Signs the precomputed SHA-1 digest |data| using private |key| as
+ // specified in PKCS #1.
Ryan Sleevi 2013/07/08 21:56:20 comment nit: PKCS #1 v1.5. Which at least makes i
pfeldman 2013/07/09 05:21:07 Done.
+ static bool Sign(RSAPrivateKey* key,
+ const uint8* data,
+ int data_len,
+ std::vector<uint8>* signature);
+
// Update the signature with more data.
bool Update(const uint8* data_part, int data_part_len);
« no previous file with comments | « no previous file | crypto/signature_creator_nss.cc » ('j') | crypto/signature_creator_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698