blob: 26a5af90979d6404ef7a04ae5c6b28bc1512f59c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "libbase64.h"
#include "codecs.h"
void
plain64_base64_stream_encode
( struct plain64_base64_state *state
, const char *src
, size_t srclen
, char *out
, size_t *outlen
)
{
#include "enc_head.c"
#include "enc_uint64.c"
#include "enc_tail.c"
}
int
plain64_base64_stream_decode
( struct plain64_base64_state *state
, const char *src
, size_t srclen
, char *out
, size_t *outlen
)
{
#include "dec_head.c"
#include "dec_uint64.c"
#include "dec_tail.c"
}
|