ASN1C C/C++ Common Runtime  ASN1C v7.8.x
rtxBase64.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2022 Objective Systems, Inc.
3  *
4  * This software is furnished under a license and may be used and copied
5  * only in accordance with the terms of such license and with the
6  * inclusion of the above copyright notice. This software or any other
7  * copies thereof may not be provided or otherwise made available to any
8  * other person. No title to and ownership of the software is hereby
9  * transferred.
10  *
11  * The information in this software is subject to change without notice
12  * and should not be construed as a commitment by Objective Systems, Inc.
13  *
14  * PROPRIETARY NOTICE
15  *
16  * This software is an unpublished work subject to a confidentiality agreement
17  * and is protected by copyright and trade secret law. Unauthorized copying,
18  * redistribution or other use of this work is prohibited.
19  *
20  * The above notice of copyright on this source code product does not indicate
21  * any actual or intended publication of such source code.
22  *
23  *****************************************************************************/
29 #ifndef _RTXBASE64_H_
30 #define _RTXBASE64_H_
31 
32 #include "rtxsrc/rtxContext.h"
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
51 EXTERNRT long rtxBase64EncodeData
52 (OSCTXT* pctxt, const char* pSrcData, size_t srcDataSize, OSOCTET** ppDstData);
53 
69 EXTERNRT long rtxBase64EncodeURLParam
70 (OSCTXT* pctxt, const char* pSrcData, size_t srcDataSize, OSOCTET** ppDstData);
71 
84 EXTERNRT long rtxBase64DecodeData
85 (OSCTXT* pctxt, const char* pSrcData, size_t srcDataSize, OSOCTET** ppDstData);
86 
99 EXTERNRT long rtxBase64DecodeDataToFSB
100 (OSCTXT* pctxt, const char* pSrcData, size_t srcDataSize,
101  OSOCTET* buf, size_t bufsiz);
102 
113 EXTERNRT long rtxBase64GetBinDataLen
114 (const char* pSrcData, size_t srcDataSize);
115 
116 
130 EXTERNRT long rtxBase64UrlEncodeData
131 (OSCTXT* pctxt, const char* pSrcData, size_t srcDataSize, OSOCTET** ppDstData);
132 
145 EXTERNRT long rtxBase64UrlDecodeData
146 (OSCTXT* pctxt, const char* pSrcData, size_t srcDataSize, OSOCTET** ppDstData);
147 
160 EXTERNRT long rtxBase64UrlDecodeDataToFSB
161 (OSCTXT* pctxt, const char* pSrcData, size_t srcDataSize,
162  OSOCTET* buf, size_t bufsiz);
163 
171 EXTERNRT int rtxBase64CharToIdx (char c, OSBOOL url);
172 
180 EXTERNRT char rtxBase64IdxToChar (int idx, OSBOOL url);
181 
182 #ifdef __cplusplus
183 }
184 #endif
185 
186 #endif /* RTXBASE64 */
187 
long rtxBase64EncodeURLParam(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 rtxBase64UrlDecodeData(OSCTXT *pctxt, const char *pSrcData, size_t srcDataSize, OSOCTET **ppDstData)
long rtxBase64UrlEncodeData(OSCTXT *pctxt, const char *pSrcData, size_t srcDataSize, OSOCTET **ppDstData)
int rtxBase64CharToIdx(char c, OSBOOL url)
char rtxBase64IdxToChar(int idx, OSBOOL url)
long rtxBase64EncodeData(OSCTXT *pctxt, const char *pSrcData, size_t srcDataSize, OSOCTET **ppDstData)
long rtxBase64DecodeData(OSCTXT *pctxt, const char *pSrcData, size_t srcDataSize, OSOCTET **ppDstData)
long rtxBase64GetBinDataLen(const char *pSrcData, size_t srcDataSize)
long rtxBase64UrlDecodeDataToFSB(OSCTXT *pctxt, const char *pSrcData, size_t srcDataSize, OSOCTET *buf, size_t bufsiz)
Definition: rtxContext.h:198