Commit 2d94f811 authored by Geoff Simmons's avatar Geoff Simmons

fix the encoding length estimate for BASE64URLNOPAD

parent ef057b6d
......@@ -42,7 +42,7 @@
#define base64_decode_l(l) (((l) * 3) >> 2)
#define base64_l(l) (((l) << 2) / 3)
#define base64nopad_encode_l(l) (base64_l(l) + 1)
#define base64nopad_encode_l(l) (base64_l(l) + 4)
#define base64_encode_l(l) ((((base64_l(l)) + 3) & ~3) + 1)
#define hex_encode_l(l) (((l) << 1) + 1)
#define hex_decode_l(l) (((l) + 1) >> 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment