l10n: Update translation catalogues
[libisds.git] / src / cencode.h
blobd6e3b277230d1ccdf49dd1b67dab61354d8bc00d
1 /*
2 cencode.h - c header for a base64 encoding 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_CENCODE_H
9 #define BASE64_CENCODE_H
10 #include <stdint.h>
11 #include <stddef.h>
13 typedef enum {
14 step_A, step_B, step_C
15 } base64_encodestep;
17 typedef struct {
18 base64_encodestep step;
19 int8_t result;
20 int stepcount;
21 } base64_encodestate;
23 void _isds_base64_init_encodestate(base64_encodestate *state_in);
25 size_t _isds_base64_encode_block(const int8_t *plaintext_in, size_t length_in,
26 int8_t *code_out, base64_encodestate *state_in);
28 size_t _isds_base64_encode_blockend(int8_t *code_out, base64_encodestate *state_in);
30 #endif /* BASE64_CENCODE_H */