blob: 740d343468a53079b31be6c81f6c5d0824fe0248 (
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
plain32_base64_stream_encode
( struct plain32_base64_state *state
, const char *src
, size_t srclen
, char *out
, size_t *outlen
)
{
#include "enc_head.c"
#include "enc_uint32.c"
#include "enc_tail.c"
}
int
plain32_base64_stream_decode
( struct plain32_base64_state *state
, const char *src
, size_t srclen
, char *out
, size_t *outlen
)
{
#include "dec_head.c"
#include "dec_uint32.c"
#include "dec_tail.c"
}
|