1#include <stdint.h>
2#include <stddef.h>
3#include <string.h>
4
5#include "../../../include/libbase64.h"
6#include "../../codecs.h"
7
8#if BASE64_WORDSIZE == 32
9# include "32/enc_loop.c"
10#elif BASE64_WORDSIZE == 64
11# include "64/enc_loop.c"
12#endif
13
14#if BASE64_WORDSIZE >= 32
15# include "32/dec_loop.c"
16#endif
17
18BASE64_ENC_FUNCTION(plain)
19{
20 #include "enc_head.c"
21#if BASE64_WORDSIZE == 32
22 enc_loop_generic_32(&s, &slen, &o, &olen);
23#elif BASE64_WORDSIZE == 64
24 enc_loop_generic_64(&s, &slen, &o, &olen);
25#endif
26 #include "enc_tail.c"
27}
28
29BASE64_DEC_FUNCTION(plain)
30{
31 #include "dec_head.c"
32#if BASE64_WORDSIZE >= 32
33 dec_loop_generic_32(&s, &slen, &o, &olen);
34#endif
35 #include "dec_tail.c"
36}
37