Cryptography Reference
In-Depth Information
We now present a collection of additional arithmetic and number-theoretic
member functions.
Function:
addition
Syntax:
const LINT&
LINT::add(const LINT& s);
Input:
implicit argument (summand)
s (summand)
Return:
pointer to the sum
Example:
a.add (s); executes the operation a+=s;
Function:
subtraction
const LINT&
LINT::sub (const LINT& s);
Syntax:
Input:
implicit argument (minuend)
s (subtrahend)
Return:
pointer to the difference
a.sub (s); executes the operation a-=s;
Example:
Function:
multiplication
const LINT&
LINT::mul (const LINT& s);
Syntax:
Input:
implicit argument (factor)
s (factor)
Return:
pointer to the product
a.mul (s); executes the operation a*=s;
Example:
 
Search WWH ::




Custom Search