]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: implement crypto.Signer
authorPaul van Brouwershaven <paul@vanbrouwershaven.com>
Mon, 5 Jan 2015 10:07:05 +0000 (10:07 +0000)
committerAdam Langley <agl@golang.org>
Tue, 20 Jan 2015 23:45:06 +0000 (23:45 +0000)
commitcef15faafe5d15ba6242bad3504a52d287f78b88
tree388e703432350958e10b94984ac7654bef9cb75f
parent8128b0116decc3b33e37a35d8d83182e2a19b61d
crypto/x509: implement crypto.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 updates implements crypto.Signer in
CreateCRL and CreateCertificate so that they can be used with
opaque keys.

This CL has been discussed at: http://golang.org/cl/145910043

Change-Id: Ie4a4a583fb120ff484a5ccf267ecd2a9c5a3902b
Reviewed-on: https://go-review.googlesource.com/2254
Reviewed-by: Adam Langley <agl@golang.org>
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go