printf: Remove unused 'bprintf'
[drm/drm-misc.git] / include / linux / base64.h
blob660d4cb1ef31f871d82b5fa9ff45d38b63a4d72d
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * base64 encoding, lifted from fs/crypto/fname.c.
4 */
6 #ifndef _LINUX_BASE64_H
7 #define _LINUX_BASE64_H
9 #include <linux/types.h>
11 #define BASE64_CHARS(nbytes) DIV_ROUND_UP((nbytes) * 4, 3)
13 int base64_encode(const u8 *src, int len, char *dst);
14 int base64_decode(const char *src, int len, u8 *dst);
16 #endif /* _LINUX_BASE64_H */