[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[openssl-gost] [gost-engine/engine] a14b39: test_ciphers: Rework cipher test
Branch: refs/heads/master
Home: https://github.com/gost-engine/engine
Commit: a14b39cd5af4635947b86433bbc44bbd267011b2
https://github.com/gost-engine/engine/commit/a14b39cd5af4635947b86433bbc44bbd267011b2
Author: Vitaly Chikunov <vt@altlinux.org>
Date: 2020-05-09 (Sat, 09 May 2020)
Changed paths:
M test_ciphers.c
Log Message:
-----------
test_ciphers: Rework cipher test
- Use EVP API instead of direct calls to gost-engine;
- Remove MAC tests (they should go into test_digest);
- Expand `testcases' array to be more readable;
- Add some asserts of IV and block sizes.
- Remove noisy hex dumps if there is no errors;
- Note: no new cipers are added.
Commit: bf543de48ea7ba83f2a161c90a141dff5bb6f672
https://github.com/gost-engine/engine/commit/bf543de48ea7ba83f2a161c90a141dff5bb6f672
Author: Vitaly Chikunov <vt@altlinux.org>
Date: 2020-05-09 (Sat, 09 May 2020)
Changed paths:
M test_digest.c
Log Message:
-----------
test_digest: Move MAC tests from test_cipher to test_digest
Here is better place, because they all digests.
Commit: c3eb4304e412235062c6cf45f407c80cddbaf944
https://github.com/gost-engine/engine/commit/c3eb4304e412235062c6cf45f407c80cddbaf944
Author: Vitaly Chikunov <vt@altlinux.org>
Date: 2020-05-09 (Sat, 09 May 2020)
Changed paths:
M test_digest.c
Log Message:
-----------
test_digest: Add more test vectors for Streebog
Dumps from `etalon/' dir.
Commit: 0ec3f1a77a0ff3addd205527e74e1260d4a7ed54
https://github.com/gost-engine/engine/commit/0ec3f1a77a0ff3addd205527e74e1260d4a7ed54
Author: Vitaly Chikunov <vt@altlinux.org>
Date: 2020-05-09 (Sat, 09 May 2020)
Changed paths:
M test_digest.c
Log Message:
-----------
test_digest: Add HMAC tests for Streebog
From RFC 7836 (B) and R 50.1.113-2016 (A).
Commit: 8b83b83b881b6fc3cd1909e376f7f1e878b80d57
https://github.com/gost-engine/engine/commit/8b83b83b881b6fc3cd1909e376f7f1e878b80d57
Author: Vitaly Chikunov <vt@altlinux.org>
Date: 2020-05-09 (Sat, 09 May 2020)
Changed paths:
M test_digest.c
Log Message:
-----------
test_digest: Add Magma OMAC1 test
From GOST R 34.13-2015 (А.2.6).
Commit: a3cee1c0660285f5669a9bfd85a494e18b970a67
https://github.com/gost-engine/engine/commit/a3cee1c0660285f5669a9bfd85a494e18b970a67
Author: Vitaly Chikunov <vt@altlinux.org>
Date: 2020-05-09 (Sat, 09 May 2020)
Changed paths:
M gost_crypt.c
Log Message:
-----------
gost_crypt: Fix IV length for Magma CTR mode
It's 4, half of block size.
Commit: 541bf464a0b5849e0823d075a2403eeb37f90ea9
https://github.com/gost-engine/engine/commit/541bf464a0b5849e0823d075a2403eeb37f90ea9
Author: Vitaly Chikunov <vt@altlinux.org>
Date: 2020-05-09 (Sat, 09 May 2020)
Changed paths:
M test_ciphers.c
Log Message:
-----------
test_ciphers: Add Magma CTR (and CBC) test(s)
- CTR vector is from standard.
- CBC vector is generated by PR_GOSTR_bch_v9. CBC test fail in-place
decryption, so it's disabled by `#if 0'.
Commit: 3c0db93862faa4b5f302bf6f310c5f86f4dded24
https://github.com/gost-engine/engine/commit/3c0db93862faa4b5f302bf6f310c5f86f4dded24
Author: Vitaly Chikunov <vt@altlinux.org>
Date: 2020-05-09 (Sat, 09 May 2020)
Changed paths:
M test_digest.c
Log Message:
-----------
test_digest: Do HMAC using EVP_MAC API
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
Compare: https://github.com/gost-engine/engine/compare/2ffd7dabe3d9...3c0db93862fa