modes/ocb128.c: fix overstep.

Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
Andy Polyakov 2015-12-02 14:26:03 +01:00
parent c7b5b9f4b1
commit 44bf7119d6

View file

@ -162,7 +162,7 @@ static OCB_BLOCK *ocb_lookup_l(OCB128_CONTEXT *ctx, size_t idx)
if (!ctx->l)
return NULL;
}
while (l_index <= idx) {
while (l_index < idx) {
ocb_double(ctx->l + l_index, ctx->l + l_index + 1);
l_index++;
}