Functions
xmlSecEncCtxFinalize ()
void
xmlSecEncCtxFinalize (xmlSecEncCtxPtr encCtx);
Cleans up encCtx
object.
xmlSecEncCtxCopyUserPref ()
int
xmlSecEncCtxCopyUserPref (xmlSecEncCtxPtr dst,
xmlSecEncCtxPtr src);
Copies user preference from src
context to dst
.
Returns
0 on success or a negative value if an error occurs.
xmlSecEncCtxReset ()
void
xmlSecEncCtxReset (xmlSecEncCtxPtr encCtx);
Resets encCtx
object, user settings are not touched.
xmlSecEncCtxBinaryEncrypt ()
int
xmlSecEncCtxBinaryEncrypt (xmlSecEncCtxPtr encCtx,
xmlNodePtr tmpl,
const xmlSecByte *data,
xmlSecSize dataSize);
Encrypts data
according to template tmpl
.
Returns
0 on success or a negative value if an error occurs.
xmlSecEncCtxXmlEncrypt ()
int
xmlSecEncCtxXmlEncrypt (xmlSecEncCtxPtr encCtx,
xmlNodePtr tmpl,
xmlNodePtr node);
Encrypts node
according to template tmpl
. If requested, node
is replaced
with result <enc:EncryptedData/> node.
Returns
0 on success or a negative value if an error occurs.
xmlSecEncCtxUriEncrypt ()
int
xmlSecEncCtxUriEncrypt (xmlSecEncCtxPtr encCtx,
xmlNodePtr tmpl,
const xmlChar *uri);
Encrypts data from uri
according to template tmpl
.
Returns
0 on success or a negative value if an error occurs.
xmlSecEncCtxDecrypt ()
int
xmlSecEncCtxDecrypt (xmlSecEncCtxPtr encCtx,
xmlNodePtr node);
Decrypts node
and if necessary replaces node
with decrypted data.
Returns
0 on success or a negative value if an error occurs.
xmlSecEncCtxDecryptToBuffer ()
xmlSecBufferPtr
xmlSecEncCtxDecryptToBuffer (xmlSecEncCtxPtr encCtx,
xmlNodePtr node);
Decrypts node
data to the encCtx
buffer.
Returns
0 on success or a negative value if an error occurs.
xmlSecEncCtxDebugDump ()
void
xmlSecEncCtxDebugDump (xmlSecEncCtxPtr encCtx,
FILE *output);
Prints the debug information about encCtx
to output
.
xmlSecEncCtxDebugXmlDump ()
void
xmlSecEncCtxDebugXmlDump (xmlSecEncCtxPtr encCtx,
FILE *output);
Prints the debug information about encCtx
to output
in XML format.