提交 c118fb92 编写于 作者: D DesWurstes 提交者: Andy Polyakov

modes/ocb128.c: improve the calculation of double mask

CLA: trivial
Reviewed-by: NAndy Polyakov <appro@openssl.org>
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6667)
上级 9e265322
...@@ -74,7 +74,7 @@ static void ocb_double(OCB_BLOCK *in, OCB_BLOCK *out) ...@@ -74,7 +74,7 @@ static void ocb_double(OCB_BLOCK *in, OCB_BLOCK *out)
*/ */
mask = in->c[0] & 0x80; mask = in->c[0] & 0x80;
mask >>= 7; mask >>= 7;
mask *= 135; mask = (0 - mask) & 0x87;
ocb_block_lshift(in->c, 1, out->c); ocb_block_lshift(in->c, 1, out->c);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册