]> Cypherpunks repositories - gostls13.git/commit
crypto/cipher: fix CFB mode.
authorAdam Langley <agl@golang.org>
Sun, 15 Dec 2013 17:55:59 +0000 (12:55 -0500)
committerAdam Langley <agl@golang.org>
Sun, 15 Dec 2013 17:55:59 +0000 (12:55 -0500)
commit1d546005af72e186c319722ccd293b64246488e3
tree60237026d80b798dadf764cf05a1596cad1e4dce
parentbe51b961c274ba8cfa747838388b3f11d5db6705
crypto/cipher: fix CFB mode.

a073d65e6f8c had a couple of bugs in the CFB mode that I missed in code review:
        1) The loop condition wasn't updated from the old version.
        2) It wasn't safe when src and dst aliased.

Fixes #6950.

R=golang-dev, hanwen
CC=golang-dev
https://golang.org/cl/42110043
src/pkg/crypto/cipher/cfb.go
src/pkg/crypto/cipher/cfb_test.go