base64: fix underflow in EVP_EncodeBlock.
When I switched the base64 code to use size_t, I missed that one of the
loops was counting down, not up, and depended on the loop variable going
Additionally this change fixes a bug in NETSCAPE_SPKI_b64_encode where
the size of the result buffer was incorrectly calculated and a possible
Reviewed-by: David Benjamin <email@example.com>
Reviewed-by: Adam Langley <firstname.lastname@example.org>
2 files changed