Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * base64 encoding, lifted from fs/crypto/fname.c.
0004  */
0005 
0006 #ifndef _LINUX_BASE64_H
0007 #define _LINUX_BASE64_H
0008 
0009 #include <linux/types.h>
0010 
0011 #define BASE64_CHARS(nbytes)   DIV_ROUND_UP((nbytes) * 4, 3)
0012 
0013 int base64_encode(const u8 *src, int len, char *dst);
0014 int base64_decode(const char *src, int len, u8 *dst);
0015 
0016 #endif /* _LINUX_BASE64_H */