Top |
int | xmlSecBase64GetDefaultLineSize () |
void | xmlSecBase64SetDefaultLineSize () |
xmlSecBase64CtxPtr | xmlSecBase64CtxCreate () |
void | xmlSecBase64CtxDestroy () |
int | xmlSecBase64CtxInitialize () |
void | xmlSecBase64CtxFinalize () |
int | xmlSecBase64CtxUpdate_ex () |
int | xmlSecBase64CtxFinal_ex () |
xmlChar * | xmlSecBase64Encode () |
int | xmlSecBase64Decode_ex () |
int | xmlSecBase64DecodeInPlace () |
int
xmlSecBase64GetDefaultLineSize (void
);
Gets the current default line size.
void
xmlSecBase64SetDefaultLineSize (int columns
);
Sets the current default line size.
xmlSecBase64CtxPtr xmlSecBase64CtxCreate (int encode
,int columns
);
Allocates and initializes new base64 context.
void
xmlSecBase64CtxDestroy (xmlSecBase64CtxPtr ctx
);
Destroys base64 context.
int xmlSecBase64CtxInitialize (xmlSecBase64CtxPtr ctx
,int encode
,int columns
);
Initializes new base64 context.
void
xmlSecBase64CtxFinalize (xmlSecBase64CtxPtr ctx
);
Frees all the resources allocated by ctx
.
int xmlSecBase64CtxUpdate_ex (xmlSecBase64CtxPtr ctx
,const xmlSecByte *in
,xmlSecSize inSize
,xmlSecByte *out
,xmlSecSize outSize
,xmlSecSize *outWritten
);
Encodes or decodes the next piece of data from input buffer.
int xmlSecBase64CtxFinal_ex (xmlSecBase64CtxPtr ctx
,xmlSecByte *out
,xmlSecSize outSize
,xmlSecSize *outWritten
);
Encodes or decodes the last piece of data stored in the context and finalizes the result.
xmlChar * xmlSecBase64Encode (const xmlSecByte *in
,xmlSecSize inSize
,int columns
);
Encodes the data from input buffer and allocates the string for the result.
The caller is responsible for freeing returned buffer using
xmlFree()
function.
int xmlSecBase64Decode_ex (const xmlChar *str
,xmlSecByte *out
,xmlSecSize outSize
,xmlSecSize *outWritten
);
Decodes input base64 encoded string and puts result into the output buffer.
int xmlSecBase64DecodeInPlace (xmlChar *str
,xmlSecSize *outWritten
);
Decodes input base64 encoded string from str
"in-place" (i.e. puts results into str
buffer).