Cryptography Reference
In-Depth Information
Table 7-3. Values of the
CLINT
function
or_l()
x
1
x
2
f
(
x
1
,x
2
)
00
0
01
1
10
1
11
1
Table 7-4. Values of the
CLINT
function
xor_l()
x
1
x
2
f
(
x
1
,x
2
)
00
0
01
1
10
1
11
0
Function:
operating by bitwise AND
void and_l (CLINT a_l, CLINT b_l, CLINT c_l);
Syntax:
a_l
,
b_l
(arguments to be operated on)
Input:
Output:
c_l
(value of the AND operation)
void
and_l (CLINT a_l, CLINT b_l, CLINT c_l)
{
CLINT d_l;
clint *r_l, *s_l, *t_l;
clint *lastptr_l;
First pointers
r_l
and
s_l
are set to the respective digits of the arguments. If the
arguments have different numbers of digits, then
s_l
points to the shorter of the
two. The pointer
msdptra_l
points to the last digit of
a_l
.