NeoMutt  2024-04-25-89-g194907
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
base64.h
Go to the documentation of this file.
1
23#ifndef MUTT_MUTT_BASE64_H
24#define MUTT_MUTT_BASE64_H
25
26#include <stdio.h>
27
28struct Buffer;
29
30extern const int Index64[];
31
32#define base64val(ch) Index64[(unsigned int) (ch)]
33
34int mutt_b64_decode(const char *in, char *out, size_t olen);
35size_t mutt_b64_encode(const char *in, size_t inlen, char *out, size_t outlen);
36
37int mutt_b64_buffer_decode(struct Buffer *buf, const char *in);
38size_t mutt_b64_buffer_encode(struct Buffer *buf, const char *in, size_t len);
39
40#endif /* MUTT_MUTT_BASE64_H */
size_t mutt_b64_encode(const char *in, size_t inlen, char *out, size_t outlen)
Convert raw bytes to null-terminated base64 string.
Definition: base64.c:87
size_t mutt_b64_buffer_encode(struct Buffer *buf, const char *in, size_t len)
Convert raw bytes to null-terminated base64 string.
Definition: base64.c:198
int mutt_b64_decode(const char *in, char *out, size_t olen)
Convert null-terminated base64 string to raw bytes.
Definition: base64.c:135
int mutt_b64_buffer_decode(struct Buffer *buf, const char *in)
Convert null-terminated base64 string to raw bytes.
Definition: base64.c:216
const int Index64[]
Lookup table for Base64 encoding characters.
Definition: base64.c:61
String manipulation buffer.
Definition: buffer.h:36