modes/ocb128.c: Reset nonce-dependent variables on setiv
authorMingtao Yang <mingtao@fb.com>
Wed, 6 Jun 2018 16:34:18 +0000 (09:34 -0700)
committerAndy Polyakov <appro@openssl.org>
Fri, 8 Jun 2018 13:54:40 +0000 (15:54 +0200)
commitbbb02a5b6d27f76931c3385321b2c594781c7a1b
treeed8b034fbcdbd568d3ad7e33611b8aa36678e9ce
parent10f279713ae39736ca1c7bcb09e240c7c5fb298a
modes/ocb128.c: Reset nonce-dependent variables on setiv

Upon a call to CRYPTO_ocb128_setiv, either directly on an OCB_CTX or
indirectly with EVP_CTRL_AEAD_SET_IVLEN, reset the nonce-dependent
variables in the OCB_CTX.

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/6420)
crypto/modes/modes_lcl.h
crypto/modes/ocb128.c