Cryptography Reference
In-Depth Information
Function:
modular addition
const LINT&
LINT::madd(const LINT& s, const LINT& m);
Syntax:
Input:
implicit argument (summand)
s (summand)
m (modulus)
Return:
pointer to the implicit argument, which contains
the sum modulo m
a.madd (s, m);
Example:
Function:
modular subtraction
const LINT& LINT::msub(const LINT& s,
const LINT& m);
Syntax:
Input:
implicit argument (minuend)
s (subtrahend)
m (modulus)
Return:
pointer to the implicit argument, which contains
the difference modulo m
a.msub (s, m);
Example:
Function:
modular multiplication
Syntax:
const LINT& LINT::mmul (const LINT& s,
const LINT& m);
Input:
implicit argument (factor)
s (factor)
m (modulus)
Return:
pointer to the implicit argument, which contains
the product modulo m
a.mmul (s, m);
Example:
 
Search WWH ::




Custom Search