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

Issue 17776003: Add SignatureVerifier::VerifyInitRSAPSS for verifying RSA-PSS signatures. (Closed)

Created:
7 years, 5 months ago by wtc
Modified:
7 years, 5 months ago
Reviewers:
agl, Ryan Sleevi
CC:
chromium-reviews
Visibility:
Public.

Description

Add SignatureVerifier::VerifyInitRSAPSS for verifying RSA-PSS signatures. Change the OpenSSL-based SignatureVerifier to use EVP_DigestVerifyInit instead of EVP_VerifyInit_ex. Copy the PSS padding verification code from NSS to the NSS-based SignatureVerifier because the RSA-PSS code in the NSS softoken isn't exposed via the NSS PK11_ or VFY_ functions yet. R=agl@chromium.org,rsleevi@chromium.org BUG=none TEST=to be added to net_unittests via testing net::quic::ProofVerifier. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209178

Patch Set 1 #

Total comments: 17

Patch Set 2 : Add a unit test with RSA PSS test vectors downloaded from RSA Labs #

Total comments: 2

Patch Set 3 : Remove unneeded OpenSSLErrStackTracer in SignatureVerifier::CommonInit #

Patch Set 4 : Move definitions of CommonInit and DecodePublicKeyInfo to match declaration order #

Patch Set 5 : Move the return statements out of the switch statement to avoid the GCC and MSVC warning that contr… #

Patch Set 6 : Adjusted the switch statements again #

Patch Set 7 : Remove NOTREACHED #

Patch Set 8 : Work around the lack of HASH_GetType and HASH_ResultLenContext #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1315 lines, -38 lines) Patch
M crypto/crypto.gyp View 2 chunks +2 lines, -0 lines 0 comments Download
M crypto/signature_verifier.h View 1 7 chunks +58 lines, -2 lines 0 comments Download
M crypto/signature_verifier_nss.cc View 1 2 3 4 5 6 7 4 chunks +126 lines, -14 lines 0 comments Download
M crypto/signature_verifier_openssl.cc View 1 2 3 4 5 3 chunks +77 lines, -22 lines 0 comments Download
M crypto/signature_verifier_unittest.cc View 1 1 chunk +879 lines, -0 lines 0 comments Download
M crypto/third_party/nss/README.chromium View 1 chunk +4 lines, -0 lines 0 comments Download
M crypto/third_party/nss/chromium-nss.h View 1 chunk +9 lines, -0 lines 0 comments Download
A crypto/third_party/nss/rsawrapr.c View 1 chunk +160 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
wtc
7 years, 5 months ago (2013-06-25 23:59:51 UTC) #1
agl
LGTM. (I did not check the imported NSS code.) https://codereview.chromium.org/17776003/diff/1/crypto/signature_verifier.h File crypto/signature_verifier.h (right): https://codereview.chromium.org/17776003/diff/1/crypto/signature_verifier.h#newcode75 crypto/signature_verifier.h:75: ...
7 years, 5 months ago (2013-06-26 15:21:09 UTC) #2
wtc
On second thought, I will work on a unit test today. But please feel free ...
7 years, 5 months ago (2013-06-26 16:13:37 UTC) #3
Ryan Sleevi
Unit tests would be good. Otherwise LGTM, mod BUG/LEAK https://codereview.chromium.org/17776003/diff/1/crypto/signature_verifier_nss.cc File crypto/signature_verifier_nss.cc (right): https://codereview.chromium.org/17776003/diff/1/crypto/signature_verifier_nss.cc#newcode99 crypto/signature_verifier_nss.cc:99: ...
7 years, 5 months ago (2013-06-26 19:48:28 UTC) #4
wtc
https://codereview.chromium.org/17776003/diff/1/crypto/signature_verifier.h File crypto/signature_verifier.h (right): https://codereview.chromium.org/17776003/diff/1/crypto/signature_verifier.h#newcode75 crypto/signature_verifier.h:75: // An RSA-PSS signature is encoded as a big ...
7 years, 5 months ago (2013-06-27 02:23:51 UTC) #5
Ryan Sleevi
lgtm https://codereview.chromium.org/17776003/diff/25001/crypto/signature_verifier_openssl.cc File crypto/signature_verifier_openssl.cc (right): https://codereview.chromium.org/17776003/diff/25001/crypto/signature_verifier_openssl.cc#newcode54 crypto/signature_verifier_openssl.cc:54: OpenSSLErrStackTracer err_tracer(FROM_HERE); On 2013/06/27 02:23:51, wtc wrote: > ...
7 years, 5 months ago (2013-06-27 16:51:08 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/17776003/44001
7 years, 5 months ago (2013-06-27 18:12:37 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-06-27 18:29:03 UTC) #8
wtc
In patch set 5 I changed the switch statements to avoid a warning from GCC ...
7 years, 5 months ago (2013-06-27 19:12:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/17776003/64001
7 years, 5 months ago (2013-06-27 19:13:41 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-06-27 19:36:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/17776003/53003
7 years, 5 months ago (2013-06-28 02:12:38 UTC) #12
commit-bot: I haz the power
7 years, 5 months ago (2013-06-28 17:46:56 UTC) #13
Message was sent while issue was closed.
Change committed as 209178

Powered by Google App Engine
This is Rietveld 408576698