GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing codebrowser.dev — base64.h source code [linux/include/linux/base64.h] - Codebrowser

Codebrowser logo
About
Contact
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * base64 encoding, lifted from fs/crypto/fname.c.
4 */
5
6#ifndef _LINUX_BASE64_H
7#define _LINUX_BASE64_H
8
9#include <linux/types.h>
10
11enum base64_variant {
12 BASE64_STD, /* RFC 4648 (standard) */
13 BASE64_URLSAFE, /* RFC 4648 (base64url) */
14 BASE64_IMAP, /* RFC 3501 */
15};
16
17#define BASE64_CHARS(nbytes) DIV_ROUND_UP((nbytes) * 4, 3)
18
19int base64_encode(const u8 *src, int len, char *dst, bool padding, enum base64_variant variant);
20int base64_decode(const char *src, int len, u8 *dst, bool padding, enum base64_variant variant);
21
22#endif /* _LINUX_BASE64_H */
23

source code of linux/include/linux/base64.h

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.