|
NetBurner 3.5.6
PDF Version |
Functions | |
| int | Base64Decode (const char *input, uint8_t *outputbuf, const char *pEndMarker=NULL) |
| Decodes a null terminated Base64 string into bytes. | |
| int | Base64UrlDecode (const char *input, uint8_t *outputbuf, const char *pEndMarker=NULL) |
| Decodes a null terminated Base64Url string into bytes. | |
| int | Base64Encode (uint8_t *input, int inlen, char *outputbuf) |
| Encodes arbitrary binary bytes into Base64 string. | |
| int | Base64UrlEncode (uint8_t *input, int inlen, char *outputbuf) |
| Encodes arbitrary binary bytes into Base64Url string. | |
| int | Base64StreamEncode (int fd, uint8_t *input, int inlen, char *outBuf, int maxOutLen) |
| Encodes arbitrary binary bytes into Base64 string and writes them to a file descriptor. | |
| int | Base64UrlStreamEncode (int fd, uint8_t *input, int inlen, char *outBuf, int maxOutLen) |
| Encodes arbitrary binary bytes into Base64Url string and writes them to a file descriptor. | |
#include< base64.h>
Functions to encode/decode in Base64
| int Base64Decode | ( | const char * | input, |
| uint8_t * | outputbuf, | ||
| const char * | pEndMarker = NULL ) |
#include <base64.h>
Decodes a null terminated Base64 string into bytes.
Notes:
| input | Base64 string |
| outputbuf | Resulting decoded data |
| pEndMarker | Pointer to the end of the string (in the event it is not terminated by by either a null char or a base64 terminator) |
| int Base64Encode | ( | uint8_t * | input, |
| int | inlen, | ||
| char * | outputbuf ) |
#include <base64.h>
Encodes arbitrary binary bytes into Base64 string.
Notes: Does not null terminate results but terminates with an '='
| input | Data |
| inlen | Length of data |
| outputbuf | Resulting encoded data |
| int Base64StreamEncode | ( | int | fd, |
| uint8_t * | input, | ||
| int | inlen, | ||
| char * | outBuf, | ||
| int | maxOutLen ) |
#include <base64.h>
Encodes arbitrary binary bytes into Base64 string and writes them to a file descriptor.
Notes: Does not null terminate results but terminates with an '='
| fd | Target File Descriptor |
| input | Data to be encoded |
| inlen | Length of data |
| outBuf | Temporary buffer to accumulate encoded data |
| maxOutLen | Maximum buffer space to accumulate data |
| int Base64UrlDecode | ( | const char * | input, |
| uint8_t * | outputbuf, | ||
| const char * | pEndMarker = NULL ) |
#include <base64.h>
Decodes a null terminated Base64Url string into bytes.
Notes:
| input | Base64Url string |
| outputbuf | Resulting decoded data |
| pEndMarker | Pointer to the end of the string (in the event it is not terminated by by either a null char or a base64 terminator) |
| int Base64UrlEncode | ( | uint8_t * | input, |
| int | inlen, | ||
| char * | outputbuf ) |
#include <base64.h>
Encodes arbitrary binary bytes into Base64Url string.
Notes: Does not null terminate results but terminates with an '='
| input | Data |
| inlen | Length of data |
| outputbuf | Resulting encoded data |
| int Base64UrlStreamEncode | ( | int | fd, |
| uint8_t * | input, | ||
| int | inlen, | ||
| char * | outBuf, | ||
| int | maxOutLen ) |
#include <base64.h>
Encodes arbitrary binary bytes into Base64Url string and writes them to a file descriptor.
Notes: Does not null terminate results but terminates with an '='
| fd | Target File Descriptor |
| input | Data to be encoded |
| inlen | Length of data |
| outBuf | Temporary buffer to accumulate encoded data |
| maxOutLen | Maximum buffer space to accumulate data |