Encode/decode binary data using printable characters (base64 format)
More...
#include "base64.h"
#include <freeradius-devel/util/value.h>
Go to the source code of this file.
Encode/decode binary data using printable characters (base64 format)
- See also
- RFC 4648 http://www.ietf.org/rfc/rfc4648.txt.
- Copyright
- 2021 Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
Definition in file base64.c.
◆ us
◆ fr_base64_decode_nstd()
◆ fr_base64_encode_nstd()
Base 64 encode binary data.
Base64 encode in bytes to base64, writing to out.
- Parameters
-
| [out] | out | Where to write Base64 string. |
| [in] | in | Data to encode. |
| [in] | add_padding | Add padding bytes. |
| [in] | alphabet | to use for encoding. |
- Returns
- Amount of data we wrote to the buffer.
- <0 the number of bytes we would have needed in the ouput buffer.
Definition at line 326 of file base64.c.
◆ fr_base64_alphabet_decode
◆ fr_base64_alphabet_encode
◆ fr_base64_url_alphabet_decode
◆ fr_base64_url_alphabet_encode