RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions | Variables

This header file provides the interfaces of the Base64 Encoding and Decoding. More...

#include <rtems/dev/io.h>

Go to the source code of this file.

Data Structures

struct  Base64_Decode_control
 Contains the base64 and base64url decoder control. More...
 

Enumerations

enum  Base64_Decode_state { BASE64_DECODE_STATE_0 , BASE64_DECODE_STATE_1 , BASE64_DECODE_STATE_2 , BASE64_DECODE_STATE_3 }
 Represents the base64 and base64url decoder state.
 
enum  Base64_Decode_status { BASE64_DECODE_SUCCESS , BASE64_DECODE_OVERFLOW , BASE64_DECODE_INVALID_INPUT }
 Represents the base64 and base64url decoder status.
 

Functions

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.
 
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.
 
void _Base64_Decode_initialize (Base64_Decode_control *self, uint8_t *target, size_t target_size)
 Initializes the base64 decoder.
 
Base64_Decode_status _Base64_Decode (Base64_Decode_control *self, char ch)
 Decodes the character.
 

Variables

const uint8_t _Base64_Encoding [64]
 Maps a 6-bit integer to the corresponding base64 encoding.
 
const uint8_t _Base64url_Encoding [64]
 Maps a 6-bit integer to the corresponding base64url encoding.
 
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 or a special value.
 

Detailed Description

This header file provides the interfaces of the Base64 Encoding and Decoding.