37#ifndef _RTEMS_BASE64_H
38#define _RTEMS_BASE64_H
94 const char *wordbreak,
125 const char *wordbreak,
133 BASE64_DECODE_STATE_0,
134 BASE64_DECODE_STATE_1,
135 BASE64_DECODE_STATE_2,
136 BASE64_DECODE_STATE_3
145 const uint8_t *target_end;
173 BASE64_DECODE_SUCCESS,
174 BASE64_DECODE_OVERFLOW,
175 BASE64_DECODE_INVALID_INPUT
This header file provides the interfaces of the Device I/O Support.
void(* IO_Put_char)(int c, void *arg)
This type defines the put character handler.
Definition: io.h:65
void _Base64_Decode_initialize(Base64_Decode_control *self, uint8_t *target, size_t target_size)
Initializes the base64 decoder.
Definition: base64-decode.c:79
Base64_Decode_status _Base64_Decode(Base64_Decode_control *self, char ch)
Decodes the character.
Definition: base64-decode.c:87
int _Base64_Encode(IO_Put_char put_char, void *arg, const void *src, size_t len, const char *wordbreak, int wordlen)
Outputs the source buffer in base64 encoding.
Definition: base64-encode.c:100
Base64_Decode_status
Represents the base64 and base64url decoder status.
Definition: base64.h:172
Base64_Decode_state
Represents the base64 and base64url decoder state.
Definition: base64.h:132
const uint8_t _Base64_Decoding[128]
Maps a 7-bit character to the associated 6-bit integer as defined by the base64 or base64url encoding...
Definition: base64-decode.c:45
const uint8_t _Base64url_Encoding[64]
Maps a 6-bit integer to the corresponding base64url encoding.
Definition: base64-encode.c:107
const uint8_t _Base64_Encoding[64]
Maps a 6-bit integer to the corresponding base64 encoding.
Definition: base64-encode.c:91
int _Base64url_Encode(IO_Put_char put_char, void *arg, const void *src, size_t len, const char *wordbreak, int wordlen)
Outputs the source buffer in base64url encoding.
Definition: base64-encode.c:116
Contains the base64 and base64url decoder control.
Definition: base64.h:142