]> Cypherpunks repositories - gostls13.git/commit
crypto/{aes,cipher}: fix panic in CBC on s390x when src length is 0
authorMichael Munday <munday@ca.ibm.com>
Thu, 13 Oct 2016 21:08:54 +0000 (17:08 -0400)
committerMichael Munday <munday@ca.ibm.com>
Thu, 13 Oct 2016 21:42:23 +0000 (21:42 +0000)
commit61f1a38bcb52ad5e1753b43c405bb5b144b6966c
tree322b291ae3f88e6e9f4bb00cdffe8b184046c28a
parent714318be882d1974ec624272c8d905256d8a5932
crypto/{aes,cipher}: fix panic in CBC on s390x when src length is 0

Adds a test to check that block cipher modes accept a zero-length
input.

Fixes #17435.

Change-Id: Ie093c4cdff756b5c2dcb79342e167b3de5622389
Reviewed-on: https://go-review.googlesource.com/31070
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/aes/cbc_s390x.go
src/crypto/cipher/cipher_test.go