diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-12-14 13:07:55 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-14 13:51:51 -0500 |
commit | 3c35c0d441cc25f750524056113970a376d8432c (patch) | |
tree | e05e798bfd09e022db4908f0070026ec75d317ac /src/lib/encoding/binascii.h | |
parent | cf7342ab6f653c2dc49134024d668b06bac2c96c (diff) | |
download | tor-3c35c0d441cc25f750524056113970a376d8432c.tar.gz tor-3c35c0d441cc25f750524056113970a376d8432c.zip |
Add a function to provide an upper bound on base64 decoded length
Diffstat (limited to 'src/lib/encoding/binascii.h')
-rw-r--r-- | src/lib/encoding/binascii.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/encoding/binascii.h b/src/lib/encoding/binascii.h index 23cbaa7070..c71ba65dfb 100644 --- a/src/lib/encoding/binascii.h +++ b/src/lib/encoding/binascii.h @@ -42,6 +42,7 @@ const char *hex_str(const char *from, size_t fromlen); #define BASE64_ENCODE_MULTILINE 1 size_t base64_encode_size(size_t srclen, int flags); +size_t base64_decode_maxsize(size_t srclen); int base64_encode(char *dest, size_t destlen, const char *src, size_t srclen, int flags); int base64_decode(char *dest, size_t destlen, const char *src, size_t srclen); |