Browse Source

[test] Add big integer self-tests

These test vectors are generated using Perl's Math::BigInt.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
4e53303c03
2 changed files with 2430 additions and 0 deletions
  1. 2429
    0
      src/tests/bigint_test.c
  2. 1
    0
      src/tests/tests.c

+ 2429
- 0
src/tests/bigint_test.c
File diff suppressed because it is too large
View File


+ 1
- 0
src/tests/tests.c View File

33
 REQUIRE_OBJECT ( aes_cbc_test );
33
 REQUIRE_OBJECT ( aes_cbc_test );
34
 REQUIRE_OBJECT ( hmac_drbg_test );
34
 REQUIRE_OBJECT ( hmac_drbg_test );
35
 REQUIRE_OBJECT ( hash_df_test );
35
 REQUIRE_OBJECT ( hash_df_test );
36
+REQUIRE_OBJECT ( bigint_test );

Loading…
Cancel
Save