]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: fix DecryptPEMBlock
authorRoger Peppe <rogpeppe@gmail.com>
Wed, 7 Nov 2012 15:16:34 +0000 (15:16 +0000)
committerRoger Peppe <rogpeppe@gmail.com>
Wed, 7 Nov 2012 15:16:34 +0000 (15:16 +0000)
commit768ba46cc1bbff1c8f49f395d551ffb75b0b6bdf
tree6b8cff11159af790faa860c00af5e795bfc978fc
parentcb856adea965955c4d2424b2946b0db90a682b78
crypto/x509: fix DecryptPEMBlock

The current implement can fail when the
block size is not a multiple of 8 bytes.
This CL makes it work, and also checks that the
data is in fact a multiple of the block size.

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