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

Unified Diff: crypto/signature_creator.h

Issue 18697003: Introduce RSAPrivateKey::SignDigest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For landing 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') | no next file with comments »
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..6074bcbe9cb4d8d21f2cb503424bf74e84aae318 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 v1.5.
+ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698