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

Unified Diff: crypto/ec_signature_creator.h

Issue 10910226: crypto: change ECSignatureCreator defaults to match SPDY. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address rsleevi's comments Created 8 years, 3 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/ec_signature_creator_nss.cc » ('j') | crypto/ec_signature_creator_nss.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/ec_signature_creator.h
diff --git a/crypto/ec_signature_creator.h b/crypto/ec_signature_creator.h
index b557daaf7b0193d8708fd705e77475572251f823..a3cf88d254a8f666f7bcd5ca6c5e61ee2dbb2c8a 100644
--- a/crypto/ec_signature_creator.h
+++ b/crypto/ec_signature_creator.h
@@ -31,7 +31,7 @@ class CRYPTO_EXPORT ECSignatureCreator {
// Create an instance. The caller must ensure that the provided PrivateKey
// instance outlives the created ECSignatureCreator.
- // TODO(rch): This is currently hard coded to use SHA1. Ideally, we should
+ // TODO(rch): This is currently hard coded to use SHA256. Ideally, we should
// pass in the hash algorithm identifier.
static ECSignatureCreator* Create(ECPrivateKey* key);
@@ -42,11 +42,7 @@ class CRYPTO_EXPORT ECSignatureCreator {
static void SetFactoryForTesting(ECSignatureCreatorFactory* factory);
// Signs |data_len| bytes from |data| and writes the results into
- // |signature| as a DER encoded ECDSA-Sig-Value from RFC 3279.
- //
- // ECDSA-Sig-Value ::= SEQUENCE {
- // r INTEGER,
- // s INTEGER }
+ // |signature| as a pair of big-endian field elements.
wtc 2012/09/12 19:47:45 The r and s of a signature are integers. (The x,y
agl 2012/09/12 21:41:46 This is a NIST curve, so x and y are field element
wtc 2012/09/12 22:06:27 For P-256, r and s are integers mod n, whereas x a
virtual bool Sign(const uint8* data,
int data_len,
std::vector<uint8>* signature) = 0;
« no previous file with comments | « no previous file | crypto/ec_signature_creator_nss.cc » ('j') | crypto/ec_signature_creator_nss.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698