base64: Make base64 encoding tables public

This makes them reusable.  Change the character type to uint8_t.
This commit is contained in:
Sebastian Huber
2024-02-16 09:32:04 +01:00
parent 317df86ba3
commit c90e2b2fb2
2 changed files with 27 additions and 7 deletions
+10
View File
@@ -54,6 +54,16 @@ extern "C" {
* @{
*/
/**
* @brief Maps a 6-bit integer to the corresponding base64 encoding.
*/
extern const uint8_t _Base64_Encoding[ 64 ];
/**
* @brief Maps a 6-bit integer to the corresponding base64url encoding.
*/
extern const uint8_t _Base64url_Encoding[ 64 ];
/**
* @brief Outputs the source buffer in base64 encoding.
*