|
iPXE
|
Go to the source code of this file.
Data Structures | |
| struct | elliptic_test |
| An elliptic curve point multiplication test. More... | |
Macros | |
| #define | BASE(...) { __VA_ARGS__ } |
| Define inline base point. More... | |
| #define | BASE_GENERATOR BASE() |
| Define base point to be curve's generator. More... | |
| #define | SCALAR(...) { __VA_ARGS__ } |
| Define inline scalar multiple. More... | |
| #define | EXPECTED(...) { __VA_ARGS__ } |
| Define inline expected result point. More... | |
| #define | EXPECTED_FAIL EXPECTED() |
| Define result as an expected failure. More... | |
| #define | ELLIPTIC_TEST(name, CURVE, BASE, SCALAR, EXPECTED) |
| Define an elliptic curve point multiplication test. More... | |
| #define | elliptic_ok(test) elliptic_okx ( test, __FILE__, __LINE__ ) |
| Report an elliptic curve point multiplication test result. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| void | elliptic_okx (struct elliptic_test *test, const char *file, unsigned int line) |
| Report elliptic curve point multiplication test result. More... | |
| #define BASE | ( | ... | ) | { __VA_ARGS__ } |
Define inline base point.
Definition at line 29 of file elliptic_test.h.
| #define BASE_GENERATOR BASE() |
Define base point to be curve's generator.
Definition at line 32 of file elliptic_test.h.
| #define SCALAR | ( | ... | ) | { __VA_ARGS__ } |
Define inline scalar multiple.
Definition at line 35 of file elliptic_test.h.
| #define EXPECTED | ( | ... | ) | { __VA_ARGS__ } |
Define inline expected result point.
Definition at line 38 of file elliptic_test.h.
| #define EXPECTED_FAIL EXPECTED() |
Define result as an expected failure.
Definition at line 41 of file elliptic_test.h.
Define an elliptic curve point multiplication test.
| name | Test name |
| CURVE | Elliptic curve |
| BASE | Base point |
| SCALAR | Scalar multiple |
| EXPECTED | Expected result point |
| test | Elliptic curve point multiplication test |
Definition at line 53 of file elliptic_test.h.
| #define elliptic_ok | ( | test | ) | elliptic_okx ( test, __FILE__, __LINE__ ) |
Report an elliptic curve point multiplication test result.
| test | Elliptic curve point multiplication test |
Definition at line 75 of file elliptic_test.h.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| void elliptic_okx | ( | struct elliptic_test * | test, |
| const char * | file, | ||
| unsigned int | line | ||
| ) |
Report elliptic curve point multiplication test result.
| test | Elliptic curve point multiplication test |
| file | Test code file |
| line | Test code line |
Definition at line 49 of file elliptic_test.c.
References elliptic_multiply(), keysize, elliptic_curve::keysize, memcmp(), NULL, okx, elliptic_curve::pointsize, rc, and test.
1.8.15