]> Cypherpunks repositories - gostls13.git/commit
crypto: add Signer
authorAdam Langley <agl@golang.org>
Fri, 29 Aug 2014 19:36:30 +0000 (12:36 -0700)
committerAdam Langley <agl@golang.org>
Fri, 29 Aug 2014 19:36:30 +0000 (12:36 -0700)
commit7f2e68e9822ce8736d66035d0a3ed3677c2db459
treed33066c0b1d4776980140aed02513bef7dfdc9af
parent7dc2b3cbd1ecc4d703a403924a77d01c8d01bd5a
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.

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews, jdeprez
https://golang.org/cl/114680043
src/pkg/crypto/crypto.go
src/pkg/crypto/ecdsa/ecdsa.go
src/pkg/crypto/rsa/pss.go
src/pkg/crypto/rsa/rsa.go
src/pkg/crypto/tls/common.go
src/pkg/crypto/tls/handshake_client.go
src/pkg/go/build/deps_test.go