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:02:44 +0000 (15:02 +0000)
commit7c12c7b61c5b37c9dff930ccc68421fb7de00271
treea7571c6fd3ee47465284749114f26a9c30610d5d
parent0ba5a9eaa0a6ae7fc25ee70eefc1f4fbdaf09483
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)
crypto/evp/e_aes.c