Go to the source code of this file.
Classes |
struct | wiselib::Curve |
struct | wiselib::Point |
struct | wiselib::Params |
class | wiselib::PMP |
Namespaces |
namespace | wiselib |
| AES Algorithm.
|
Defines |
#define | KEY_BIT_LEN 128 |
#define | THIRTYTWO_BIT_PROCESSOR |
#define | NN_DIGIT_BITS 32 |
#define | NN_DIGIT_LEN (NN_DIGIT_BITS/8) |
#define | MAX_NN_DIGIT 0xffffffff |
#define | KEYDIGITS (KEY_BIT_LEN/NN_DIGIT_BITS) |
#define | MAX_NN_DIGITS (KEYDIGITS+1) |
#define | NUMWORDS MAX_NN_DIGITS |
#define | MAXIMUM(a, b) ((a) < (b) ? (b) : (a)) |
#define | DIGIT_MSB(x) (NN_DIGIT)(((x) >> (NN_DIGIT_BITS - 1)) & 1) |
#define | DIGIT_2MSB(x) (NN_DIGIT)(((x) >> (NN_DIGIT_BITS - 2)) & 3) |
#define | ASSIGN_DIGIT(a, b, digits) {AssignZero (a, digits); a[0] = b;} |
#define | EQUAL(a, b, digits) (! NN_Cmp (a, b, digits)) |
#define | EVEN(a, digits) (((digits) == 0) || ! (a[0] & 1)) |
#define | DigitMult(b, c) (NN_DOUBLE_DIGIT)(b) * (c) |
Typedefs |
typedef uint32_t | wiselib::NN_DIGIT |
typedef uint64_t | wiselib::NN_DOUBLE_DIGIT |
typedef uint8_t | wiselib::NN_UINT |
typedef uint16_t | wiselib::NN_UINT2 |
Define Documentation
#define ASSIGN_DIGIT |
( |
|
a, |
|
|
|
b, |
|
|
|
digits |
|
) |
| {AssignZero (a, digits); a[0] = b;} |
#define DIGIT_2MSB |
( |
|
x | ) |
(NN_DIGIT)(((x) >> (NN_DIGIT_BITS - 2)) & 3) |
#define DIGIT_MSB |
( |
|
x | ) |
(NN_DIGIT)(((x) >> (NN_DIGIT_BITS - 1)) & 1) |
#define DigitMult |
( |
|
b, |
|
|
|
c |
|
) |
| (NN_DOUBLE_DIGIT)(b) * (c) |
#define EQUAL |
( |
|
a, |
|
|
|
b, |
|
|
|
digits |
|
) |
| (! NN_Cmp (a, b, digits)) |
#define EVEN |
( |
|
a, |
|
|
|
digits |
|
) |
| (((digits) == 0) || ! (a[0] & 1)) |
#define KEYDIGITS (KEY_BIT_LEN/NN_DIGIT_BITS) |
#define MAX_NN_DIGIT 0xffffffff |
#define MAX_NN_DIGITS (KEYDIGITS+1) |
#define MAXIMUM |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) < (b) ? (b) : (a)) |
#define NN_DIGIT_LEN (NN_DIGIT_BITS/8) |
#define NUMWORDS MAX_NN_DIGITS |
#define THIRTYTWO_BIT_PROCESSOR |