]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: add DecryptBlock function for loading password protected keys
authorJeff Wendling <jeff@spacemonkey.com>
Thu, 4 Oct 2012 19:42:57 +0000 (15:42 -0400)
committerAdam Langley <agl@golang.org>
Thu, 4 Oct 2012 19:42:57 +0000 (15:42 -0400)
commit70ab57ea2dc9c4c5124204ca28dbbac41c94ecb0
tree2ab4bea9a8ed10f575c5ac2fb10171a1b168d7df
parent593a6285729160d3ce4dc1c440e6a6be0fa87242
crypto/x509: add DecryptBlock function for loading password protected keys

Adds a DecryptBlock function which takes a password and a *pem.Block and
returns the decrypted DER bytes suitable for passing into other crypto/x509
functions.

R=golang-dev, agl, leterip
CC=golang-dev
https://golang.org/cl/6555052
src/pkg/crypto/x509/pem_decrypt.go [new file with mode: 0644]
src/pkg/crypto/x509/pem_decrypt_test.go [new file with mode: 0644]
src/pkg/go/build/deps_test.go