Properly handle a partial block in OCB mode
authorMatt Caswell <matt@openssl.org>
Mon, 23 Jan 2017 12:44:48 +0000 (12:44 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 25 Jan 2017 15:07:36 +0000 (15:07 +0000)
commit6af62ee9af06d057f03ec2abc8b9dfd4ac11b16f
tree0781ae86b99946b904cc9b6fd3ddb5deeeec981c
parentd1257342e7dfcdb9e80d199396c58286c9056c1c
Properly handle a partial block in OCB mode

If we have previously been passed a partial block in an "Update" call then
make sure we properly increment the output buffer when we use it.

Fixes #2273

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2275)
(cherry picked from commit 7c12c7b61c5b37c9dff930ccc68421fb7de00271)
crypto/evp/e_aes.c