| Top |  |  |  |  | 
| xmlSecBnPtr | xmlSecBnCreate () | 
| void | xmlSecBnDestroy () | 
| int | xmlSecBnInitialize () | 
| void | xmlSecBnFinalize () | 
| xmlSecByte * | xmlSecBnGetData () | 
| int | xmlSecBnSetData () | 
| xmlSecSize | xmlSecBnGetSize () | 
| void | xmlSecBnZero () | 
| int | xmlSecBnFromString () | 
| xmlChar * | xmlSecBnToString () | 
| int | xmlSecBnFromHexString () | 
| xmlChar * | xmlSecBnToHexString () | 
| int | xmlSecBnFromDecString () | 
| xmlChar * | xmlSecBnToDecString () | 
| int | xmlSecBnMul () | 
| int | xmlSecBnDiv () | 
| int | xmlSecBnAdd () | 
| int | xmlSecBnReverse () | 
| int | xmlSecBnCompare () | 
| int | xmlSecBnCompareReverse () | 
| int | xmlSecBnGetNodeValue () | 
| int | xmlSecBnSetNodeValue () | 
| int | xmlSecBnBlobSetNodeValue () | 
xmlSecBnPtr
xmlSecBnCreate (xmlSecSize size);
Creates a new BN object. Caller is responsible for destroying it
by calling xmlSecBnDestroy
 function.
void
xmlSecBnDestroy (xmlSecBnPtr bn);
Destroys bn
 object created with xmlSecBnCreate
 function.
int xmlSecBnInitialize (xmlSecBnPtr bn,xmlSecSize size);
Initializes a BN object. Caller is responsible for destroying it
by calling xmlSecBnFinalize
 function.
void
xmlSecBnFinalize (xmlSecBnPtr bn);
Destroys bn
 object created with xmlSecBnInitialize
 function.
xmlSecByte *
xmlSecBnGetData (xmlSecBnPtr bn);
Gets pointer to the binary bn
 representation.
int xmlSecBnSetData (xmlSecBnPtr bn,const xmlSecByte *data,xmlSecSize size);
Sets the value of bn
 to data
.
xmlSecSize
xmlSecBnGetSize (xmlSecBnPtr bn);
Gets the size of binary data in bn
.
int xmlSecBnFromString (xmlSecBnPtr bn,const xmlChar *str,xmlSecSize base);
Reads bn
 from string str
 assuming it has base base
.
xmlChar * xmlSecBnToString (xmlSecBnPtr bn,xmlSecSize base);
Writes bn
 to string with base base
. Caller is responsible for
freeing returned string with xmlFree
.
int xmlSecBnFromHexString (xmlSecBnPtr bn,const xmlChar *str);
Reads bn
 from hex string str
.
xmlChar *
xmlSecBnToHexString (xmlSecBnPtr bn);
Writes bn
 to hex string. Caller is responsible for
freeing returned string with xmlFree
.
int xmlSecBnFromDecString (xmlSecBnPtr bn,const xmlChar *str);
Reads bn
 from decimal string str
.
xmlChar *
xmlSecBnToDecString (xmlSecBnPtr bn);
Writes bn
 to decimal string. Caller is responsible for
freeing returned string with xmlFree
.
int xmlSecBnDiv (xmlSecBnPtr bn,int divider,int *mod);
Divides bn
 by divider
 and places modulus into mod
.
int xmlSecBnCompare (xmlSecBnPtr bn,const xmlSecByte *data,xmlSecSize dataSize);
Compares the bn
 with data
.
int xmlSecBnCompareReverse (xmlSecBnPtr bn,const xmlSecByte *data,xmlSecSize dataSize);
Compares the bn
 with reverse data
.
int xmlSecBnGetNodeValue (xmlSecBnPtr bn,xmlNodePtr cur,xmlSecBnFormat format,int reverse);
Converts the node content from format
 to bn
.
int xmlSecBnSetNodeValue (xmlSecBnPtr bn,xmlNodePtr cur,xmlSecBnFormat format,int reverse,int addLineBreaks);
Converts the bn
 and sets it to node content.
int xmlSecBnBlobSetNodeValue (const xmlSecByte *data,xmlSecSize dataSize,xmlNodePtr cur,xmlSecBnFormat format,int reverse,int addLineBreaks);
Converts the blob
 and sets it to node content.
| data | the pointer to BN blob. | |
| dataSize | the size of BN blob. | |
| cur | the pointer to an XML node. | |
| format | the BN format. | |
| reverse | the flag that indicates whether to reverse the buffer before writing. | |
| addLineBreaks | if the flag is equal to 1 then linebreaks will be added before and after new buffer content. |