]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: implement EncryptPEMBlock
authorRoger Peppe <rogpeppe@gmail.com>
Mon, 12 Nov 2012 15:31:23 +0000 (15:31 +0000)
committerRoger Peppe <rogpeppe@gmail.com>
Mon, 12 Nov 2012 15:31:23 +0000 (15:31 +0000)
commit791fb978ddde3bbe0117ad0eab2746d66b43d965
tree2bca7d67b5be90de5cea45bf4d299671779e15d9
parent1e1733a9ac8865d75403494bd29bef0cdec44fbc
crypto/x509: implement EncryptPEMBlock

Arbitrary decisions: order of the arguments and the
fact it takes a block-type argument (rather than
leaving to user to fill it in later); I'm happy whatever
colour we want to paint it.

We also change DecryptPEMBlock so that it won't
panic when the IV has the wrong size.

R=agl, agl
CC=golang-dev
https://golang.org/cl/6820114
src/pkg/crypto/x509/pem_decrypt.go
src/pkg/crypto/x509/pem_decrypt_test.go