|
iPXE
|
Go to the source code of this file.
Data Structures | |
| struct | asn1_test_digest |
| An ASN.1 test digest. More... | |
| struct | asn1_test |
| An ASN.1 test. More... | |
Macros | |
| #define | asn1_test_digest_algorithm sha1_algorithm |
| Digest algorithm used for ASN.1 tests. | |
| #define | ASN1_TEST_DIGEST_SIZE SHA1_DIGEST_SIZE |
| Digest size used for ASN.1 tests. | |
| #define | ASN1(_name, _type, _file, ...) |
| Define an ASN.1 test. | |
| #define | asn1_ok(test) |
| Report ASN.1 test result. | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| void | asn1_okx (struct asn1_test *test, const char *file, unsigned int line) |
| Report ASN.1 test result. | |
| #define asn1_test_digest_algorithm sha1_algorithm |
Digest algorithm used for ASN.1 tests.
Definition at line 12 of file asn1_test.h.
Referenced by asn1_okx().
| #define ASN1_TEST_DIGEST_SIZE SHA1_DIGEST_SIZE |
Digest size used for ASN.1 tests.
Definition at line 15 of file asn1_test.h.
Referenced by asn1_okx().
| #define ASN1 | ( | _name, | |
| _type, | |||
| _file, | |||
| ... ) |
Define an ASN.1 test.
| _name | Test name |
| _type | Test image file type |
| _file | Test image file data |
| ... | Expected ASN.1 object digests |
| test | ASN.1 test |
Definition at line 44 of file asn1_test.h.
| #define asn1_ok | ( | test | ) |
Report ASN.1 test result.
| test | ASN.1 test |
Definition at line 72 of file asn1_test.h.
Referenced by der_test_exec(), efisig_test_exec(), and pem_test_exec().
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
extern |
Report ASN.1 test result.
| test | ASN.1 test |
| file | Test code file |
| line | Test code line |
Definition at line 50 of file asn1_test.c.
References asn1_test_digest_algorithm, ASN1_TEST_DIGEST_SIZE, assert, ctx, digest_algorithm::ctxsize, asn1_cursor::data, digest_final(), digest_init(), digest_update(), digest_algorithm::digestsize, free, image_asn1(), asn1_cursor::len, memcmp(), next, offset, okx, out, register_image(), test, and unregister_image().