|
D.12.3.38 inverse_modulus
Procedure from library crypto.lib (see crypto_lib).
- Usage:
- inverse_modulus(num, mod1)
- Return:
- inverse element of num modulo mod1
Example:
| LIB "crypto.lib";
ring r = 0,x,lp;
int mod1 = 13;
int num = 5;
inverse_modulus(num,mod1);
==> 8
|
|