Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(86)

Issue 114680043: code review 114680043: crypto: add Signer (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by agl1
Modified:
11 years, 4 months ago
Reviewers:
gobot, minux, bradfitz
CC:
bradfitz, golang-codereviews, jdeprez
Visibility:
Public.

Description

crypto: add Signer Signer is an interface to support opaque private keys. These keys typically result from being kept in special hardware (i.e. a TPM) although sometimes operating systems provide a similar interface using process isolation for security rather than hardware boundaries. This changes provides interfaces for representing them and alters crypto/tls so that client certificates can use opaque keys.

Patch Set 1 #

Patch Set 2 : diff -r bfe2cc97b9e1 https://code.google.com/p/go/ #

Total comments: 4

Patch Set 3 : diff -r 9a60527fe1bfaea7f8421acd92a723f3592560d3 https://code.google.com/p/go/ #

Patch Set 4 : diff -r 9a60527fe1bfaea7f8421acd92a723f3592560d3 https://code.google.com/p/go/ #

Total comments: 2

Patch Set 5 : diff -r 9a60527fe1bfaea7f8421acd92a723f3592560d3 https://code.google.com/p/go/ #

Patch Set 6 : diff -r 173175ba9eb71f00f69da09c738523eb4fab36a6 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -16 lines) Patch
M src/pkg/crypto/crypto.go View 1 2 3 4 3 chunks +33 lines, -0 lines 0 comments Download
M src/pkg/crypto/ecdsa/ecdsa.go View 1 2 3 2 chunks +24 lines, -0 lines 0 comments Download
M src/pkg/crypto/rsa/pss.go View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M src/pkg/crypto/rsa/rsa.go View 1 2 3 2 chunks +19 lines, -0 lines 0 comments Download
M src/pkg/crypto/tls/common.go View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M src/pkg/crypto/tls/handshake_client.go View 1 2 4 chunks +16 lines, -14 lines 0 comments Download
M src/pkg/go/build/deps_test.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12
agl1
NSS and OpenSSL did a terrible job of supporting opaque keys (PKCS#11 and ENGINE) which ...
11 years, 4 months ago (2014-08-13 19:10:11 UTC) #1
jdeprez
https://codereview.appspot.com/114680043/diff/20001/src/pkg/crypto/tls/handshake_client.go File src/pkg/crypto/tls/handshake_client.go (right): https://codereview.appspot.com/114680043/diff/20001/src/pkg/crypto/tls/handshake_client.go#newcode418 src/pkg/crypto/tls/handshake_client.go:418: key, err := opaquekey.WrapSigner(c.config.Certificates[0].PrivateKey) Something that's bugging me about ...
11 years, 4 months ago (2014-08-14 02:23:39 UTC) #2
bradfitz
https://codereview.appspot.com/114680043/diff/20001/src/pkg/crypto/opaquekey/opaquekey.go File src/pkg/crypto/opaquekey/opaquekey.go (right): https://codereview.appspot.com/114680043/diff/20001/src/pkg/crypto/opaquekey/opaquekey.go#newcode21 src/pkg/crypto/opaquekey/opaquekey.go:21: type Signer interface { what if this and SignerOpts ...
11 years, 4 months ago (2014-08-14 20:30:33 UTC) #3
agl1
https://codereview.appspot.com/114680043/diff/20001/src/pkg/crypto/opaquekey/opaquekey.go File src/pkg/crypto/opaquekey/opaquekey.go (right): https://codereview.appspot.com/114680043/diff/20001/src/pkg/crypto/opaquekey/opaquekey.go#newcode21 src/pkg/crypto/opaquekey/opaquekey.go:21: type Signer interface { On 2014/08/14 20:30:33, bradfitz wrote: ...
11 years, 4 months ago (2014-08-29 19:09:12 UTC) #4
bradfitz
CL description needs updating. No more opaquekey. https://codereview.appspot.com/114680043/diff/60001/src/pkg/crypto/crypto.go File src/pkg/crypto/crypto.go (right): https://codereview.appspot.com/114680043/diff/60001/src/pkg/crypto/crypto.go#newcode18 src/pkg/crypto/crypto.go:18: // HashFunc ...
11 years, 4 months ago (2014-08-29 19:22:02 UTC) #5
bradfitz
LGTM
11 years, 4 months ago (2014-08-29 19:22:27 UTC) #6
agl1
https://codereview.appspot.com/114680043/diff/60001/src/pkg/crypto/crypto.go File src/pkg/crypto/crypto.go (right): https://codereview.appspot.com/114680043/diff/60001/src/pkg/crypto/crypto.go#newcode18 src/pkg/crypto/crypto.go:18: // HashFunc simply returns the value of h in ...
11 years, 4 months ago (2014-08-29 19:31:52 UTC) #7
agl1
Hello bradfitz@golang.org (cc: golang-codereviews@googlegroups.com, jdeprez@google.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 4 months ago (2014-08-29 19:36:27 UTC) #8
agl1
*** Submitted as https://code.google.com/p/go/source/detail?r=40906c63a04e *** crypto: add Signer Signer is an interface to support opaque ...
11 years, 4 months ago (2014-08-29 19:36:43 UTC) #9
gobot
This CL appears to have broken the windows-386 builder. See http://build.golang.org/log/4c8f3d532877b6b9413cd9708bb1974bc9d562ec
11 years, 4 months ago (2014-08-29 19:53:09 UTC) #10
agl1
On Fri, Aug 29, 2014 at 12:53 PM, <gobot@golang.org> wrote: > This CL appears to ...
11 years, 4 months ago (2014-08-29 20:39:18 UTC) #11
minux
11 years, 4 months ago (2014-08-30 03:32:08 UTC) #12
Message was sent while issue was closed.
Please update doc/go1.4.txt.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b