blob: d545b2931ca2206a265226049d90882a527236f0 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*
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
12char * base64_encode(const void *src, size_t len, size_t *out_len);
13char * base64_encode_no_lf(const void *src, size_t len, size_t *out_len);
14unsigned char * base64_decode(const char *src, size_t len, size_t *out_len);
15char * base64_url_encode(const void *src, size_t len, size_t *out_len);
16unsigned char * base64_url_decode(const char *src, size_t len, size_t *out_len);
17
18#endif /* BASE64_H */