Cryptography Reference
In-Depth Information
void
or_l (CLINT a_l, CLINT b_l,
CLINT c_l)
bitwise OR of a_l and b_l , output
in c_l
int
setbit_l (CLINT a_l,
unsigned int pos)
of a_l in
test
and
set
the
bit
position pos
int
shift_l (CLINT a_l,
long int noofbits)
left/right shift of a_l by noofbits
bits
int
shl_l (CLINT a_l)
right shift of a_l by 1 bit
int
shr_l (CLINT a_l)
left shift of a_l by 1 bit
int
testbit_l (CLINT a_l,
unsigned int pos)
test the bit of a_l in position pos
void
xor_l (CLINT a_l, CLINT b_l,
CLINT c_l)
bitwise exclusive OR (XOR) of a_l
and b_l , output in c_l
A.5 Number-Theoretic Functions
int
chinrem_l (unsigned noofeq,
clint** coeff_l, CLINT x_l)
solution of simultaneous linear
congruences, output in x_l
void
gcd_l (CLINT a_l, CLINT b_l,
CLINT g_l)
greatest common divisor of a_l
and b_l , output in g_l
int
introot_l (CLINT a_l, USHORT
b, CLINT r_l)
integer part of b th root of a_l ,
output in r_l
void
inv_l (CLINT a_l, CLINT n_l,
CLINT g_l, CLINT i_l)
gcd of a_l and n_l and inverse of
a_l mod n_l
 
Search WWH ::




Custom Search