aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/base64/plain64/codec_plain.c
blob: 841bd96bfd0c3b43f3191ec3e4ef92d905b4c8d0 (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" 
}