#include "pch.h"
#include "config.h"
#include "vmac.h"
#include "cpu.h"
#include "argnames.h"
#include "secblock.h"
Go to the source code of this file.
|
#define | VMAC_BOOL_WORD128 0 |
|
#define | MUL32(a, b) ((word64)((word32)(a)) * (word32)(b)) |
|
#define | VMAC_BOOL_32BIT 1 |
|
#define | DeclareNH(a) word64 a##0=0, a##1=0, a##2=0 |
|
#define | MUL64(rh, rl, i1, i2) |
|
#define | AccumulateNH(a, b, c) |
|
#define | ADD128(rh, rl, ih, il) |
|
#define | INNER_LOOP_ITERATION(j) |
|
#define | a0 (((word32 *)(polyS+i*4))[2+NativeByteOrder::ToEnum()]) |
|
#define | a1 (*(((word32 *)(polyS+i*4))+3-NativeByteOrder::ToEnum())) |
|
#define | a2 (((word32 *)(polyS+i*4))[0+NativeByteOrder::ToEnum()]) |
|
#define | a3 (*(((word32 *)(polyS+i*4))+1-NativeByteOrder::ToEnum())) |
|
#define | aHi ((polyS+i*4)[0]) |
|
#define | k0 (((word32 *)(polyS+i*4+2))[2+NativeByteOrder::ToEnum()]) |
|
#define | k1 (*(((word32 *)(polyS+i*4+2))+3-NativeByteOrder::ToEnum())) |
|
#define | k2 (((word32 *)(polyS+i*4+2))[0+NativeByteOrder::ToEnum()]) |
|
#define | k3 (*(((word32 *)(polyS+i*4+2))+1-NativeByteOrder::ToEnum())) |
|
#define | kHi ((polyS+i*4+2)[0]) |
|
#define AccumulateNH |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| |
Value:
unsigned long long word64
Definition at line 518 of file vmac.cpp.
#define ADD128 |
( |
|
rh, |
|
|
|
rl, |
|
|
|
ih, |
|
|
|
il |
|
) |
| |
Value: (rl) += (_il); \
(rh) += (ih) + ((rl) < (_il)); \
}
unsigned long long word64
Definition at line 536 of file vmac.cpp.
#define aHi ((polyS+i*4)[0]) |
#define DeclareNH |
( |
|
a | ) |
word64 a##0=0, a##1=0, a##2=0 |
#define INNER_LOOP_ITERATION |
( |
|
j | ) |
|
Value: }
if(a.IndicesBefore(b, len, lenIndices))
byte order is little-endian
T ConditionalByteReverse(ByteOrder order, T value)
Reverses bytes in a value depending upon endianness.
unsigned long long word64
#define AccumulateNH(a, b, c)
#define kHi ((polyS+i*4+2)[0]) |
#define MUL64 |
( |
|
rh, |
|
|
|
rl, |
|
|
|
i1, |
|
|
|
i2 |
|
) |
| |
Value: rh =
MUL32(_i1>>32,_i2>>32); \
ADD128(rh,rl,(m1 >> 32),(m1 << 32));
\ ADD128(rh,rl,(m2 >> 32),(m2 << 32)); \
}
unsigned long long word64
#define ADD128(rh, rl, ih, il)
Definition at line 509 of file vmac.cpp.
#define VMAC_BOOL_32BIT 1 |
#define VMAC_BOOL_WORD128 0 |