]> Cypherpunks repositories - gostls13.git/commit
crypto/cipher: panic on invalid IV length
authorShane Hansen <shanemhansen@gmail.com>
Wed, 17 Oct 2012 18:29:00 +0000 (14:29 -0400)
committerAdam Langley <agl@golang.org>
Wed, 17 Oct 2012 18:29:00 +0000 (14:29 -0400)
commitfcd5fd2ad4c9283307c0e0b9f15c00b32c57483a
treeaa788235fb4234a7d6a3b4294ec1fd51c30ec207
parent561561fc2d64d088892778463a266120a6c2f716
crypto/cipher: panic on invalid IV length

Give better user feedback when invalid IV is used
to construct a cipher.

Fixes #3411

R=golang-dev, agl
CC=golang-dev
https://golang.org/cl/6652053
src/pkg/crypto/cipher/cbc.go
src/pkg/crypto/cipher/cfb.go
src/pkg/crypto/cipher/ctr.go