From 7c3090a02e256e1fc42d37123195caa134cb487b Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Wed, 19 Sep 2012 15:11:33 +0000 Subject: crypto: add DecodeSignature and use SHA-256 with ECDSA. This changes ECSignatureCreator to use the hash function that SPDY expects (SHA-256). There are no other users of ECSignatureCreator in the tree so I'm going to defer making these choices parameters until there's a benefit to be had. It also adds DecodeSignature to convert from ASN.1 signatures to the `raw' form that SPDY needs. BUG=none Review URL: https://chromiumcodereview.appspot.com/10910226 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157551 0039d316-1c4b-4281-b951-d872f2087c98 --- crypto/ec_signature_creator_openssl.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crypto/ec_signature_creator_openssl.cc') diff --git a/crypto/ec_signature_creator_openssl.cc b/crypto/ec_signature_creator_openssl.cc index ae443c4..8854f5e 100644 --- a/crypto/ec_signature_creator_openssl.cc +++ b/crypto/ec_signature_creator_openssl.cc @@ -22,4 +22,10 @@ bool ECSignatureCreatorImpl::Sign(const uint8* data, return false; } +bool ECSignatureCreatorImpl::DecodeSignature(const std::vector& der_sig, + std::vector* out_raw_sig) { + NOTIMPLEMENTED(); + return false; +} + } // namespace crypto -- cgit v1.1