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 <firstname.lastname@example.org>
Reviewed-by: Adam Langley <email@example.com>
2 files changed