commit | 791fb978ddde3bbe0117ad0eab2746d66b43d965 | [log] [tgz] |
---|---|---|
author | Roger Peppe <rogpeppe@gmail.com> | Mon Nov 12 15:31:23 2012 +0000 |
committer | Roger Peppe <rogpeppe@gmail.com> | Mon Nov 12 15:31:23 2012 +0000 |
tree | 2bca7d67b5be90de5cea45bf4d299671779e15d9 | |
parent | 1e1733a9ac8865d75403494bd29bef0cdec44fbc [diff] |
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