diff options
| author | Brent Cook <busterb@gmail.com> | 2022-07-31 23:31:18 -0500 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2022-07-31 23:31:18 -0500 |
| commit | cc613e785e9272db37991ec35785d78f50e0ca15 (patch) | |
| tree | a96bc62fb8d595b5a40ea22b3f504ac180ed2a24 | |
| parent | 5f5feb2bbc94a8cd8d101b6245c0d9b50f2a15ce (diff) | |
| download | portable-cc613e785e9272db37991ec35785d78f50e0ca15.tar.gz portable-cc613e785e9272db37991ec35785d78f50e0ca15.tar.bz2 portable-cc613e785e9272db37991ec35785d78f50e0ca15.zip | |
updates for new files and test cases
| -rw-r--r-- | crypto/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | crypto/Makefile.am | 3 | ||||
| -rw-r--r-- | ssl/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | ssl/Makefile.am | 1 | ||||
| -rw-r--r-- | tests/CMakeLists.txt | 7 | ||||
| -rw-r--r-- | tests/Makefile.am | 5 | ||||
| -rwxr-xr-x | tests/aeadtest.sh | 8 | ||||
| -rwxr-xr-x | update.sh | 2 |
8 files changed, 26 insertions, 3 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 2d23332..3f0c603 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt | |||
| @@ -333,6 +333,7 @@ set( | |||
| 333 | bn/bn_add.c | 333 | bn/bn_add.c |
| 334 | bn/bn_asm.c | 334 | bn/bn_asm.c |
| 335 | bn/bn_blind.c | 335 | bn/bn_blind.c |
| 336 | bn/bn_bpsw.c | ||
| 336 | bn/bn_const.c | 337 | bn/bn_const.c |
| 337 | bn/bn_ctx.c | 338 | bn/bn_ctx.c |
| 338 | bn/bn_depr.c | 339 | bn/bn_depr.c |
| @@ -342,6 +343,7 @@ set( | |||
| 342 | bn/bn_exp2.c | 343 | bn/bn_exp2.c |
| 343 | bn/bn_gcd.c | 344 | bn/bn_gcd.c |
| 344 | bn/bn_gf2m.c | 345 | bn/bn_gf2m.c |
| 346 | bn/bn_isqrt.c | ||
| 345 | bn/bn_kron.c | 347 | bn/bn_kron.c |
| 346 | bn/bn_lib.c | 348 | bn/bn_lib.c |
| 347 | bn/bn_mod.c | 349 | bn/bn_mod.c |
diff --git a/crypto/Makefile.am b/crypto/Makefile.am index b78f491..9b36724 100644 --- a/crypto/Makefile.am +++ b/crypto/Makefile.am | |||
| @@ -412,6 +412,7 @@ noinst_HEADERS += bio/bio_local.h | |||
| 412 | libcrypto_la_SOURCES += bn/bn_add.c | 412 | libcrypto_la_SOURCES += bn/bn_add.c |
| 413 | libcrypto_la_SOURCES += bn/bn_asm.c | 413 | libcrypto_la_SOURCES += bn/bn_asm.c |
| 414 | libcrypto_la_SOURCES += bn/bn_blind.c | 414 | libcrypto_la_SOURCES += bn/bn_blind.c |
| 415 | libcrypto_la_SOURCES += bn/bn_bpsw.c | ||
| 415 | libcrypto_la_SOURCES += bn/bn_const.c | 416 | libcrypto_la_SOURCES += bn/bn_const.c |
| 416 | libcrypto_la_SOURCES += bn/bn_ctx.c | 417 | libcrypto_la_SOURCES += bn/bn_ctx.c |
| 417 | libcrypto_la_SOURCES += bn/bn_depr.c | 418 | libcrypto_la_SOURCES += bn/bn_depr.c |
| @@ -421,6 +422,7 @@ libcrypto_la_SOURCES += bn/bn_exp.c | |||
| 421 | libcrypto_la_SOURCES += bn/bn_exp2.c | 422 | libcrypto_la_SOURCES += bn/bn_exp2.c |
| 422 | libcrypto_la_SOURCES += bn/bn_gcd.c | 423 | libcrypto_la_SOURCES += bn/bn_gcd.c |
| 423 | libcrypto_la_SOURCES += bn/bn_gf2m.c | 424 | libcrypto_la_SOURCES += bn/bn_gf2m.c |
| 425 | libcrypto_la_SOURCES += bn/bn_isqrt.c | ||
| 424 | libcrypto_la_SOURCES += bn/bn_kron.c | 426 | libcrypto_la_SOURCES += bn/bn_kron.c |
| 425 | libcrypto_la_SOURCES += bn/bn_lib.c | 427 | libcrypto_la_SOURCES += bn/bn_lib.c |
| 426 | libcrypto_la_SOURCES += bn/bn_mod.c | 428 | libcrypto_la_SOURCES += bn/bn_mod.c |
| @@ -927,6 +929,7 @@ libcrypto_la_SOURCES += ts/ts_rsp_sign.c | |||
| 927 | libcrypto_la_SOURCES += ts/ts_rsp_utils.c | 929 | libcrypto_la_SOURCES += ts/ts_rsp_utils.c |
| 928 | libcrypto_la_SOURCES += ts/ts_rsp_verify.c | 930 | libcrypto_la_SOURCES += ts/ts_rsp_verify.c |
| 929 | libcrypto_la_SOURCES += ts/ts_verify_ctx.c | 931 | libcrypto_la_SOURCES += ts/ts_verify_ctx.c |
| 932 | noinst_HEADERS += ts/ts_local.h | ||
| 930 | 933 | ||
| 931 | # txt_db | 934 | # txt_db |
| 932 | libcrypto_la_SOURCES += txt_db/txt_db.c | 935 | libcrypto_la_SOURCES += txt_db/txt_db.c |
diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index 07636ad..e4af7ca 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt | |||
| @@ -47,6 +47,7 @@ set( | |||
| 47 | tls13_key_schedule.c | 47 | tls13_key_schedule.c |
| 48 | tls13_legacy.c | 48 | tls13_legacy.c |
| 49 | tls13_lib.c | 49 | tls13_lib.c |
| 50 | tls13_quic.c | ||
| 50 | tls13_record.c | 51 | tls13_record.c |
| 51 | tls13_record_layer.c | 52 | tls13_record_layer.c |
| 52 | tls13_server.c | 53 | tls13_server.c |
diff --git a/ssl/Makefile.am b/ssl/Makefile.am index 9cf3839..42b548c 100644 --- a/ssl/Makefile.am +++ b/ssl/Makefile.am | |||
| @@ -86,6 +86,7 @@ libssl_la_SOURCES += tls13_handshake_msg.c | |||
| 86 | libssl_la_SOURCES += tls13_key_schedule.c | 86 | libssl_la_SOURCES += tls13_key_schedule.c |
| 87 | libssl_la_SOURCES += tls13_legacy.c | 87 | libssl_la_SOURCES += tls13_legacy.c |
| 88 | libssl_la_SOURCES += tls13_lib.c | 88 | libssl_la_SOURCES += tls13_lib.c |
| 89 | libssl_la_SOURCES += tls13_quic.c | ||
| 89 | libssl_la_SOURCES += tls13_record.c | 90 | libssl_la_SOURCES += tls13_record.c |
| 90 | libssl_la_SOURCES += tls13_record_layer.c | 91 | libssl_la_SOURCES += tls13_record_layer.c |
| 91 | libssl_la_SOURCES += tls13_server.c | 92 | libssl_la_SOURCES += tls13_server.c |
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index e6cb2bc..efa6e04 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
| @@ -21,7 +21,12 @@ file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR} TEST_SOURCE_DIR) | |||
| 21 | # aeadtest | 21 | # aeadtest |
| 22 | add_executable(aeadtest aeadtest.c) | 22 | add_executable(aeadtest aeadtest.c) |
| 23 | target_link_libraries(aeadtest ${OPENSSL_TEST_LIBS}) | 23 | target_link_libraries(aeadtest ${OPENSSL_TEST_LIBS}) |
| 24 | add_test(aeadtest aeadtest ${CMAKE_CURRENT_SOURCE_DIR}/aeadtests.txt) | 24 | if(NOT WIN32) |
| 25 | add_test(NAME aeadtest COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/aeadtest.sh) | ||
| 26 | set_tests_properties(aeadtest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") | ||
| 27 | else() | ||
| 28 | add_test(aeadtest aeadtest aead ${CMAKE_CURRENT_SOURCE_DIR}/aeadtests.txt) | ||
| 29 | endif() | ||
| 25 | 30 | ||
| 26 | # aes_wrap | 31 | # aes_wrap |
| 27 | add_executable(aes_wrap aes_wrap.c) | 32 | add_executable(aes_wrap aes_wrap.c) |
diff --git a/tests/Makefile.am b/tests/Makefile.am index 5f768e2..3be2f3f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
| @@ -34,6 +34,11 @@ check_PROGRAMS += aeadtest | |||
| 34 | aeadtest_SOURCES = aeadtest.c | 34 | aeadtest_SOURCES = aeadtest.c |
| 35 | EXTRA_DIST += aeadtest.sh | 35 | EXTRA_DIST += aeadtest.sh |
| 36 | EXTRA_DIST += aeadtests.txt | 36 | EXTRA_DIST += aeadtests.txt |
| 37 | EXTRA_DIST += aes_128_gcm_tests.txt | ||
| 38 | EXTRA_DIST += aes_192_gcm_tests.txt | ||
| 39 | EXTRA_DIST += aes_256_gcm_tests.txt | ||
| 40 | EXTRA_DIST += chacha20_poly1305_tests.txt | ||
| 41 | EXTRA_DIST += xchacha20_poly1305_tests.txt | ||
| 37 | 42 | ||
| 38 | # aes_wrap | 43 | # aes_wrap |
| 39 | TESTS += aes_wrap | 44 | TESTS += aes_wrap |
diff --git a/tests/aeadtest.sh b/tests/aeadtest.sh index 132b1fd..9f59595 100755 --- a/tests/aeadtest.sh +++ b/tests/aeadtest.sh | |||
| @@ -4,4 +4,10 @@ TEST=./aeadtest | |||
| 4 | if [ -e ./aeadtest.exe ]; then | 4 | if [ -e ./aeadtest.exe ]; then |
| 5 | TEST=./aeadtest.exe | 5 | TEST=./aeadtest.exe |
| 6 | fi | 6 | fi |
| 7 | $TEST $srcdir/aeadtests.txt | 7 | $TEST aead $srcdir/aeadtests.txt |
| 8 | $TEST aes-128-gcm $srcdir/aes_128_gcm_tests.txt | ||
| 9 | $TEST aes-192-gcm $srcdir/aes_192_gcm_tests.txt | ||
| 10 | $TEST aes-256-gcm $srcdir/aes_256_gcm_tests.txt | ||
| 11 | $TEST chacha20-poly1305 $srcdir/chacha20_poly1305_tests.txt | ||
| 12 | $TEST xchacha20-poly1305 $srcdir/xchacha20_poly1305_tests.txt | ||
| 13 | |||
| @@ -288,7 +288,7 @@ for i in `find $libcrypto_regress -name '*.c'`; do | |||
| 288 | $CP "$i" tests | 288 | $CP "$i" tests |
| 289 | done | 289 | done |
| 290 | $CP $libcrypto_regress/evp/evptests.txt tests | 290 | $CP $libcrypto_regress/evp/evptests.txt tests |
| 291 | $CP $libcrypto_regress/aead/aeadtests.txt tests | 291 | $CP $libcrypto_regress/aead/*.txt tests |
| 292 | 292 | ||
| 293 | # generate libcrypto freenull.c | 293 | # generate libcrypto freenull.c |
| 294 | awk -f $libcrypto_regress/free/freenull.awk \ | 294 | awk -f $libcrypto_regress/free/freenull.awk \ |
