]>
git.proxmox.com Git - mirror_frr.git/blob - lib/base64.h
2 * This is part of the libb64 project, and has been placed in the public domain.
3 * For details, see http://sourceforge.net/projects/libb64
9 enum base64_encodestep
{
10 step_A
, step_B
, step_C
13 struct base64_encodestate
{
14 enum base64_encodestep step
;
19 void base64_init_encodestate(struct base64_encodestate
*state_in
);
21 char base64_encode_value(char value_in
);
23 int base64_encode_block(const char *plaintext_in
, int length_in
, char *code_out
,
24 struct base64_encodestate
*state_in
);
26 int base64_encode_blockend(char *code_out
, struct base64_encodestate
*state_in
);
29 enum base64_decodestep
{
30 step_a
, step_b
, step_c
, step_d
33 struct base64_decodestate
{
34 enum base64_decodestep step
;
38 void base64_init_decodestate(struct base64_decodestate
*state_in
);
40 signed char base64_decode_value(signed char value_in
);
42 int base64_decode_block(const char *code_in
, int length_in
, char *plaintext_out
,
43 struct base64_decodestate
*state_in
);
45 #endif /* _BASE64_H_ */