test: Fix a typo
[libisds.git] / src / cdecode.h
blobe321b75202a886f8dfd00e001aae60da81b84c4f
1 /*
2 cdecode.h - c header for a base64 decoding algorithm
4 This is part of the libb64 project, and has been placed in the public domain.
5 For details, see http://sourceforge.net/projects/libb64
6 */
8 #ifndef BASE64_CDECODE_H
9 #define BASE64_CDECODE_H
10 #include <stdint.h>
11 #include <stddef.h>
13 typedef enum {
14 step_a, step_b, step_c, step_d
15 } base64_decodestep;
17 typedef struct {
18 base64_decodestep step;
19 int8_t plainchar;
20 } base64_decodestate;
22 void _isds_base64_init_decodestate(base64_decodestate *state_in);
24 size_t _isds_base64_decode_block(const int8_t *code_in,
25 const size_t length_in, int8_t *plaintext_out,
26 base64_decodestate *state_in);
28 #endif /* BASE64_CDECODE_H */