xref: /freebsd/contrib/wpa/src/utils/base64.h (revision fa50a3552d1e759e1bb65e54cb0b7e863bcf54d5)
1 /*
2  * Base64 encoding/decoding (RFC1341)
3  * Copyright (c) 2005, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #ifndef BASE64_H
10 #define BASE64_H
11 
12 unsigned char * base64_encode(const unsigned char *src, size_t len,
13 			      size_t *out_len);
14 unsigned char * base64_decode(const unsigned char *src, size_t len,
15 			      size_t *out_len);
16 unsigned char * base64_url_encode(const unsigned char *src, size_t len,
17 				  size_t *out_len, int add_pad);
18 unsigned char * base64_url_decode(const unsigned char *src, size_t len,
19 				  size_t *out_len);
20 
21 #endif /* BASE64_H */
22