Cryptography Reference
In-Depth Information
The function vcheck_l() was created for the analysis of CLINT arguments
with regard to the validity of their format. It should help to protect the FLINT/C
functions from being passed invalid parameters as CLINT values.
Function:
test for a valid CLINT numerical format
int vcheck_l (CLINT n_l);
Syntax:
n_l (object to be tested)
Input:
Return:
E_VCHECK_OK if format ok
errors and warnings according to Table 8-1
Table 8-1. Diagnostic values of the function vcheck_l()
Return Value
Diagnosis
Explanation
E_VCHECK_OK
Format is ok
Info: The number has a valid
representation and a value with
the range of definition of a CLINT type.
E_VCHECK_LDZ
leading zeros
Warning: The number has leading zeros,
but otherwise a valid definition within
the range of definition.
E_VCHECK_MEM
memory error
Error: NULL Pointer was passed.
E_VCHECK_OFL
genuine overflow
Error: The passed number is too large;
it cannot be represented as a
CLINT object.
int
vcheck_l (CLINT n_l)
{
unsigned int error = E_VCHECK_OK;
 
Search WWH ::




Custom Search