modes/ctr128.c: pay attention to ecount_buf alignment in CRYPTO_ctr128_encrypt.
authorAndy Polyakov <appro@openssl.org>
Fri, 12 Feb 2016 13:07:27 +0000 (14:07 +0100)
committerAndy Polyakov <appro@openssl.org>
Fri, 12 Feb 2016 21:00:13 +0000 (22:00 +0100)
commit6533a0b8d1ed12aa5f7dfd7a429eec67c5486bb5
treef897d42f8ed0484b7e79c01d494ebfd8dfc09abd
parentb4b23d05d3282b0c155a1ab8435379306be43315
modes/ctr128.c: pay attention to ecount_buf alignment in CRYPTO_ctr128_encrypt.

It's never problem if CRYPTO_ctr128_encrypt is called from EVP, because
buffer in question is always aligned within EVP_CIPHER_CTX structure.

RT#4218

Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 5e4bbeb49fb6522d858703201b5adee9611e7b7b)
crypto/modes/ctr128.c