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

Issue 1305183005: Add a CreatePSS method to SignatureCreator to permit the generation of PSS signatures. (Closed)

Created:
5 years, 4 months ago by Ryan Hamilton
Modified:
5 years, 3 months ago
Reviewers:
davidben, Ryan Sleevi
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a CreatePSS method to SignatureCreator to permit the generation of PSS signatures. BUG=

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -5 lines) Patch
M crypto/signature_creator.h View 2 chunks +9 lines, -0 lines 2 comments Download
M crypto/signature_creator_nss.cc View 1 chunk +18 lines, -2 lines 2 comments Download
M crypto/signature_creator_openssl.cc View 2 chunks +24 lines, -3 lines 2 comments Download

Messages

Total messages: 8 (2 generated)
Ryan Hamilton
This is probably the wrong approach for making PSS signatures available for QUIC, but it's ...
5 years, 4 months ago (2015-08-21 18:44:12 UTC) #2
davidben
+rsleevi who probably has stronger opinions than me as to where we want //crypto to ...
5 years, 4 months ago (2015-08-21 21:52:23 UTC) #4
davidben
> rsleevi generally talks louder than I do Er, to clarify, that was a "generally ...
5 years, 4 months ago (2015-08-21 21:53:18 UTC) #5
Ryan Hamilton
On 2015/08/21 21:52:23, David Benjamin wrote: > +rsleevi who probably has stronger opinions than me ...
5 years, 4 months ago (2015-08-24 17:24:52 UTC) #6
Ryan Sleevi
Personally, I prefer that we have wrappers. While the BoringSSL cleanup is good, it does ...
5 years, 4 months ago (2015-08-25 20:01:38 UTC) #7
davidben
5 years, 4 months ago (2015-08-25 20:10:56 UTC) #8
On 2015/08/25 20:01:38, Ryan Sleevi wrote:
> Personally, I prefer that we have wrappers.
> 
> While the BoringSSL cleanup is good, it does seem like there's still a lot of
> sharp edges and footguns here. For example, you could easily forget to set a
> parameter on the EVP CTX. Checking return values and having them consistently
> return sane things is good (are we actually there yet?), but we can't do
things
> like WARN_UNUSED_RESULT or audit callers (which I do about once a quarter).

Yes, all boolean return values for BoringSSL's crypto routines are sane now.
They have been for quite some time. (Plus, strictly speaking, none of them can
actually fail unless we allow malloc failures.)

Honestly, I feel like Chromium's //crypto footguns are worse right now. We don't
have much of an AEAD interface and instead let people do CBC and CTR mode
without authentication. With BoringSSL, we can push everyone towards EVP_AEAD
which is the only sort of API that's actually reasonable for symmetric crypto.

> I have also found that having to have //crypto OWNERS approve the DEPS
additions
> (which would not be a pre-requisite for directly depending on BoringSSL) have
> helped catch a number of issues.

That's part of what this thing is for. :-)
https://codereview.chromium.org/1312203002/

> So I would prefer the direct use of BoringSSL be carefully evaluated; we
should
> abstract away common tasks (which I suspect this will be) to ensure
consistency,
> but still allow low-level usage when appropriate (e.g. WebRTC)
> 
> https://codereview.chromium.org/1305183005/diff/1/crypto/signature_creator.h
> File crypto/signature_creator.h (right):
> 
>
https://codereview.chromium.org/1305183005/diff/1/crypto/signature_creator.h#...
> crypto/signature_creator.h:50: // specified in PKCS #1 v1.5.
> This of course would be inconsistent with your proposed change :)
> 
>
https://codereview.chromium.org/1305183005/diff/1/crypto/signature_creator.h#...
> crypto/signature_creator.h:64: static SignatureCreator*
> CreateImpl(RSAPrivateKey* key,
> This doesn't actually need to be static, does it?

Powered by Google App Engine
This is Rietveld 408576698