aboutsummaryrefslogtreecommitdiff
path: root/test_digest.c
AgeCommit message (Collapse)AuthorFilesLines
2021-12-11MSVC: Fix 'no OPENSSL_Applink' errorVitaly Chikunov1-0/+5
Error message: OPENSSL_Uplink(00007FF9FB00F600,08): no OPENSSL_Applink Link: https://www.openssl.org/docs/faq.html#PROG3 Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
2021-12-11MSVC: Fix signed/unsigned mismatch errorsVitaly Chikunov1-3/+3
test_digest.c(513,2): warning C4389: '==': signed/unsigned mismatch test_digest.c(820,5): warning C4389: '==': signed/unsigned mismatch test_sign.c(241,22): warning C4389: '==': signed/unsigned mismatch test_params.c(1131,16): warning C4018: '<': signed/unsigned mismatch test_sign.c(241,22): warning C4389: '==': signed/unsigned mismatch Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
2021-12-11MSVC: No support for GCC's compound statement expressionsVitaly Chikunov1-11/+11
Error messages: test_ciphers.c(329,5): error C2059: syntax error: '{' test_ciphers.c(329,5): error C2059: syntax error: '}' test_ciphers.c(329,5): error C2059: syntax error: ')' Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
2021-12-11MSVC: Ifdef GCC pragmasVitaly Chikunov1-1/+3
Error message: test_ciphers.c(37,9): warning C4068: unknown pragma 'GCC' Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
2021-11-14Properly set expected digest size for mac in providerDmitry Belyavskiy1-2/+4
2021-10-11Making a gost provider - Adapt test_digest.c for providersRichard Levitte1-129/+246
2021-05-02Make test programs less hard-codedRichard Levitte1-8/+2
The following programs had a hard coded load of the gost engine. This changes them to rely more on the testing environment, and to load engines through configuration files. This affects: test_ciphers.c, test_context.c, test_derive.c, test_digest.c, test_params.c, test_sign.c, test_tls.c
2021-03-03EVP_MAC_init API changedDmitry Belyavskiy1-6/+2
2021-02-22Always cNORM before "\n"Richard Levitte1-15/+15
Using cNORM after "\n" may or may not work, probably because of the line buffered nature of standard output. If an error is displayed immediately after a printf that has cNORM after "\n", the error output sometimes "overrides" the cNORM, and you may end up with a surprisingly colorful error message, not to mention that this may also affect your prompt in the same manner. The lesson is to always output cNORM before the ending "\n".
2020-08-06API renamingDmitry Belyavskiy1-6/+6
2020-06-12EVP_MAC: APIs were renamed so they need to be fixed in here too. (#267)Pauli1-6/+6
2020-05-10test_digest: Add another carry test vector, also test GOST94Vitaly Chikunov1-2/+40
This vector triggers so much bugs in different implementations.
2020-05-10test_digest: Reduce arguments to tests, make concise loggingVitaly Chikunov1-52/+53
- Less arguments - less scary function calls. - Better screen output: all tests now shown. - Some typo corrections.
2020-05-10test_digest: Test CMAC using EVP_MAC (provider) APIVitaly Chikunov1-0/+67
Use chance of having CMAC test vector to test CMAC provider.
2020-05-10test_digest: Test old and new APIsVitaly Chikunov1-14/+22
Both HMAC (deprecated) and EVP_MAC (since 3.0). Also, remove redundant test iteration in do_digest().
2020-05-10test: List untested digests and ciphersVitaly Chikunov1-0/+14
It's good to know what needs to be done.
2020-05-09test_digest: Do HMAC using EVP_MAC APIVitaly Chikunov1-13/+51
They say `HMAC' API is deprecated since 3.0, thus `EVP_MAC' API should be used. https://www.openssl.org/docs/manmaster/man3/HMAC_CTX_free.html
2020-05-09test_digest: Add Magma OMAC1 testVitaly Chikunov1-3/+36
From GOST R 34.13-2015 (А.2.6).
2020-05-09test_digest: Add HMAC tests for StreebogVitaly Chikunov1-24/+94
From RFC 7836 (B) and R 50.1.113-2016 (A).
2020-05-09test_digest: Add more test vectors for StreebogVitaly Chikunov1-0/+139
Dumps from `etalon/' dir.
2020-05-09test_digest: Move MAC tests from test_cipher to test_digestVitaly Chikunov1-146/+256
Here is better place, because they all digests.
2020-03-01test_digest: Test all block sizes and alignmentsVitaly Chikunov1-1/+129
There need to be more tests than 2 constant fixed size blocks. Final digest values are generated from the first run. Test description in comments.
2019-04-10test_digest: simple digest testsVitaly Chikunov1-0/+219
Especially test alginment problems on MIPSel.