mirror of https://github.com/tstack/lnav
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
762 B
C
40 lines
762 B
C
#include <stdint.h>
|
|
#include <stddef.h>
|
|
#include <string.h>
|
|
|
|
#include "../../../include/libbase64.h"
|
|
#include "../../tables/tables.h"
|
|
#include "../../codecs.h"
|
|
#include "config.h"
|
|
#include "../../env.h"
|
|
|
|
#if BASE64_WORDSIZE == 32
|
|
# include "32/enc_loop.c"
|
|
#elif BASE64_WORDSIZE == 64
|
|
# include "64/enc_loop.c"
|
|
#endif
|
|
|
|
#if BASE64_WORDSIZE >= 32
|
|
# include "32/dec_loop.c"
|
|
#endif
|
|
|
|
BASE64_ENC_FUNCTION(plain)
|
|
{
|
|
#include "enc_head.c"
|
|
#if BASE64_WORDSIZE == 32
|
|
enc_loop_generic_32(&s, &slen, &o, &olen);
|
|
#elif BASE64_WORDSIZE == 64
|
|
enc_loop_generic_64(&s, &slen, &o, &olen);
|
|
#endif
|
|
#include "enc_tail.c"
|
|
}
|
|
|
|
BASE64_DEC_FUNCTION(plain)
|
|
{
|
|
#include "dec_head.c"
|
|
#if BASE64_WORDSIZE >= 32
|
|
dec_loop_generic_32(&s, &slen, &o, &olen);
|
|
#endif
|
|
#include "dec_tail.c"
|
|
}
|