Cryptography Reference
In-Depth Information
allocates a register and stores its address in a variable with the suggestive name
do_not_overwrite_l . If this variable contains the only reference to the register,
then after the last instruction,
do_not_overwrite _l = lost_l;
the register is lost, which is a typical error in the jungle of pointer management.
A register can, like any other CLINT variable, be cleared with the function
purge_l() that follows, whereby the memory reserved for the specified register is
overwritten with zeros and thereby cleared.
clear a CLINT object by completely overwriting with zeros
Function:
void purge_l (CLINT n_l);
Syntax:
Input:
n_l ( CLINT object)
void
purge_l (CLINT n_l)
{
if (NULL != n_l)
{
memset (n_l, 0, CLINTMAXBYTE);
}
}
The following function additionally releases the memory allocated for the
specified register after it has been cleared. Afterwards, the register can no longer
be accessed.
clear and release a CLINT register
Function:
void free_l (CLINT reg_l);
Syntax:
reg_l (pointer to a CLINT register)
Input:
 
Search WWH ::




Custom Search