#include <stddef.h>
#include <stdbool.h>
Go to the source code of this file.
Classes | |
struct | base64_decode_context |
Macros | |
#define | base64_decode(in, inlen, out, outlen) base64_decode_ctx (NULL, in, inlen, out, outlen) |
#define | base64_decode_alloc(in, inlen, out, outlen) base64_decode_alloc_ctx (NULL, in, inlen, out, outlen) |
#define | BASE64_LENGTH(inlen) ((((inlen) + 2) / 3) * 4) |
Functions | |
bool | base64_decode_alloc_ctx (struct base64_decode_context *ctx, const char *in, size_t inlen, char **out, size_t *outlen) |
bool | base64_decode_ctx (struct base64_decode_context *ctx, const char *in, size_t inlen, char *out, size_t *outlen) |
void | base64_decode_ctx_init (struct base64_decode_context *ctx) |
void | base64_encode (const char *in, size_t inlen, char *out, size_t outlen) |
size_t | base64_encode_alloc (const char *in, size_t inlen, char **out) |
bool | isbase64 (char ch) |
#define base64_decode | ( | in, | |
inlen, | |||
out, | |||
outlen | |||
) | base64_decode_ctx (NULL, in, inlen, out, outlen) |
Definition at line 57 of file base64.h.
Referenced by pos::PixelMaskAllPixels::PixelMaskAllPixels(), pos::PixelTrimAllPixels::PixelTrimAllPixels(), and pos::PixelROCTrimBits::writeXML().
#define base64_decode_alloc | ( | in, | |
inlen, | |||
out, | |||
outlen | |||
) | base64_decode_alloc_ctx (NULL, in, inlen, out, outlen) |
Definition at line 60 of file base64.h.
Referenced by cond::Cipher::b64decrypt().
#define BASE64_LENGTH | ( | inlen | ) | ((((inlen) + 2) / 3) * 4) |
Definition at line 32 of file base64.h.
Referenced by base64_encode_alloc().
bool base64_decode_alloc_ctx | ( | struct base64_decode_context * | ctx, |
const char * | in, | ||
size_t | inlen, | ||
char ** | out, | ||
size_t * | outlen | ||
) |
Definition at line 551 of file base64.cc.
References base64_decode_ctx(), and NULL.
bool base64_decode_ctx | ( | struct base64_decode_context * | ctx, |
const char * | in, | ||
size_t | inlen, | ||
char * | out, | ||
size_t * | outlen | ||
) |
Definition at line 460 of file base64.cc.
References decode_4(), get_4(), base64_decode_context::i, recoMuon::in, and NULL.
Referenced by base64_decode_alloc_ctx().
void base64_decode_ctx_init | ( | struct base64_decode_context * | ctx | ) |
Definition at line 308 of file base64.cc.
References base64_decode_context::i.
void base64_encode | ( | const char * | in, |
size_t | inlen, | ||
char * | out, | ||
size_t | outlen | ||
) |
Definition at line 70 of file base64.cc.
References b64str, and to_uchar().
size_t base64_encode_alloc | ( | const char * | in, |
size_t | inlen, | ||
char ** | out | ||
) |
Definition at line 117 of file base64.cc.
References base64_encode(), BASE64_LENGTH, and NULL.
Referenced by cond::Cipher::b64encrypt().
bool isbase64 | ( | char | ch | ) |
Definition at line 301 of file base64.cc.
References b64, to_uchar(), and uchar_in_range.
Referenced by decode_4().