Cryptography Reference
In-Depth Information
Function:
calculation of the integer part of the square root
of a
LINT
object
Syntax:
LINT
LINT::introot (void);
implicit argument
a
Input:
Return:
integer part of the square root of the input value
c = a.root ();
Example:
calculation of the integer part of the
b
th root
of a
LINT
object
Function:
LINT
LINT::introot (const USHORT b);
Syntax:
implicit argument
a
, root exponent
b
Input:
integer part of the
b
th root of the input value
Return:
c = a.root (b);
Example:
calculation of the square root modulo a prime
p
of a
LINT
object
Function:
LINT
LINT::root (const LINT& p);
Syntax:
implicit argument
a
, prime modulus
p
>
2
Input:
square root of
a
if
a
is a quadratic residue modulo
p
otherwise 0 (
Get_Warning_Status() == E_LINT_ERR
indicates that
a
is not a quadratic residue modulo
p
)
Return:
Example:
c = a.root (p);