ASN1C C/C++ Common Runtime
ASN1C v7.5.x
|
#include "rtxsrc/rtxContext.h"
Go to the source code of this file.
Functions | |
long | rtxBase64EncodeData (OSCTXT *pctxt, const char *pSrcData, size_t srcDataSize, OSOCTET **ppDstData) |
long | rtxBase64EncodeURLParam (OSCTXT *pctxt, const char *pSrcData, size_t srcDataSize, OSOCTET **ppDstData) |
long | rtxBase64DecodeData (OSCTXT *pctxt, const char *pSrcData, size_t srcDataSize, OSOCTET **ppDstData) |
long | rtxBase64DecodeDataToFSB (OSCTXT *pctxt, const char *pSrcData, size_t srcDataSize, OSOCTET *buf, size_t bufsiz) |
long | rtxBase64GetBinDataLen (const char *pSrcData, size_t srcDataSize) |
long | rtxBase64UrlEncodeData (OSCTXT *pctxt, const char *pSrcData, size_t srcDataSize, OSOCTET **ppDstData) |
long | rtxBase64UrlDecodeData (OSCTXT *pctxt, const char *pSrcData, size_t srcDataSize, OSOCTET **ppDstData) |
long | rtxBase64UrlDecodeDataToFSB (OSCTXT *pctxt, const char *pSrcData, size_t srcDataSize, OSOCTET *buf, size_t bufsiz) |
int | rtxBase64CharToIdx (char c, OSBOOL url) |
char | rtxBase64IdxToChar (int idx, OSBOOL url) |
base64 and base64url are defined in RFC 4648.
int rtxBase64CharToIdx | ( | char | c, |
OSBOOL | url | ||
) |
Convert base64 character to index.
c | Character to convert. |
url | Flag indicating if base64 string is used in a URL |
long rtxBase64DecodeData | ( | OSCTXT * | pctxt, |
const char * | pSrcData, | ||
size_t | srcDataSize, | ||
OSOCTET ** | ppDstData | ||
) |
Decode base64 string to binary form into a dynamic buffer.
pctxt | Pointer to context structure. |
pSrcData | Pointer to base64 string to decode. |
srcDataSize | Length of the base64 string. |
ppDstData | Pointer to pointer variable to hold address of dynamically allocated buffer to hold data. |
long rtxBase64DecodeDataToFSB | ( | OSCTXT * | pctxt, |
const char * | pSrcData, | ||
size_t | srcDataSize, | ||
OSOCTET * | buf, | ||
size_t | bufsiz | ||
) |
Decode base64 string to binary form into a fixed-size buffer.
pctxt | Pointer to context structure. |
pSrcData | Pointer to base64 string to decode. |
srcDataSize | Length of the base64 string. |
buf | Address of buffer to receive decoded binary data. |
bufsiz | Size of output buffer. |
long rtxBase64EncodeData | ( | OSCTXT * | pctxt, |
const char * | pSrcData, | ||
size_t | srcDataSize, | ||
OSOCTET ** | ppDstData | ||
) |
Encode binary data into base64 string form to a dynamic buffer.
pctxt | Pointer to context structure. |
pSrcData | Pointer to binary data to encode. |
srcDataSize | Length of the binary data in octets. |
ppDstData | Pointer to pointer variable to hold address of dynamically allocated buffer the encoded base64 string. |
long rtxBase64EncodeURLParam | ( | OSCTXT * | pctxt, |
const char * | pSrcData, | ||
size_t | srcDataSize, | ||
OSOCTET ** | ppDstData | ||
) |
Encode binary data into base64 string form to a dynamic buffer, converting '+' characters to the URL escape sequence %2B so that the encoded string may be used in a query string parameter in a URL.
pctxt | Pointer to context structure. |
pSrcData | Pointer to binary data to encode. |
srcDataSize | Length of the binary data in octets. |
ppDstData | Pointer to pointer variable to hold address of dynamically allocated buffer the encoded base64 string. |
long rtxBase64GetBinDataLen | ( | const char * | pSrcData, |
size_t | srcDataSize | ||
) |
Calculate number of byte required to hold a decoded base64/base64url string in binary form.
pSrcData | Pointer to base64/base64url string. |
srcDataSize | Length of the base64/base64url string. |
char rtxBase64IdxToChar | ( | int | idx, |
OSBOOL | url | ||
) |
Convert base64 index to character.
idx | Index to convert. |
url | Flag indicating if base64 string is used in a URL |
long rtxBase64UrlDecodeData | ( | OSCTXT * | pctxt, |
const char * | pSrcData, | ||
size_t | srcDataSize, | ||
OSOCTET ** | ppDstData | ||
) |
Decode base64url string to binary form into a dynamic buffer.
pctxt | Pointer to context structure. |
pSrcData | Pointer to base64 string to decode. |
srcDataSize | Length of the base64 string. |
ppDstData | Pointer to pointer variable to hold address of dynamically allocated buffer to hold data. |
long rtxBase64UrlDecodeDataToFSB | ( | OSCTXT * | pctxt, |
const char * | pSrcData, | ||
size_t | srcDataSize, | ||
OSOCTET * | buf, | ||
size_t | bufsiz | ||
) |
Decode base64url string to binary form into a fixed-size buffer.
pctxt | Pointer to context structure. |
pSrcData | Pointer to base64 string to decode. |
srcDataSize | Length of the base64 string. |
buf | Address of buffer to receive decoded binary data. |
bufsiz | Size of output buffer. |
long rtxBase64UrlEncodeData | ( | OSCTXT * | pctxt, |
const char * | pSrcData, | ||
size_t | srcDataSize, | ||
OSOCTET ** | ppDstData | ||
) |
Encode binary data into base64url string form to a dynamic buffer.
pctxt | Pointer to context structure. |
pSrcData | Pointer to binary data to encode. |
srcDataSize | Length of the binary data in octets. |
ppDstData | Pointer to pointer variable to hold address of dynamically allocated buffer the encoded base64 string. |