]>
wagner.pp.ru Git - openssl-gost/engine.git/log
Dmitry Belyavskiy [Fri, 22 Mar 2019 19:23:39 +0000 (22:23 +0300)]
Partially fix #125 (Memory leak in pub_encode_gost_ec)
Dmitry Belyavskiy [Fri, 7 Dec 2018 19:09:21 +0000 (22:09 +0300)]
Because of some deprecations, we lost compatibility with master
Dmitry Belyavskiy [Sun, 18 Nov 2018 12:06:43 +0000 (15:06 +0300)]
GOST md aliases
Dmitry Belyavskiy [Thu, 23 Aug 2018 20:02:58 +0000 (23:02 +0300)]
Merge pull request #80 from glebfm/openssl_1_1_0-testsuite-ci
Backport testsuite and travis-ci support to 1.1.0 branch
Gleb Fotengauer-Malinovskiy [Tue, 21 Aug 2018 16:23:38 +0000 (19:23 +0300)]
test_grasshopper: drop test_omac
grasshopper-omac is not implemented in this version of engine.
Vitaly Chikunov [Thu, 26 Jul 2018 04:31:42 +0000 (07:31 +0300)]
test_grasshopper: Rework tests to be more flexible
(cherry picked from commit
234823a6d6971a72b29247a4893db5a61f8b992a )
Vitaly Chikunov [Wed, 25 Jul 2018 07:49:38 +0000 (10:49 +0300)]
test_grasshopper: Warn if EVP_MD_meth_set_result_size is performed
(cherry picked from commit
641223f4d077bfd41143420c852aabbef8ca7fdf )
Vitaly Chikunov [Wed, 25 Jul 2018 07:29:25 +0000 (10:29 +0300)]
test_grasshopper: Make it compile on 1.1.0
openssl-1.1.0 made ctx opaque and does not allow it on stack anymore.
(cherry picked from commit
20e590a4f0dc7a563b78e798c0a352b835d50bfa )
Vitaly Chikunov [Mon, 23 Jul 2018 17:27:14 +0000 (20:27 +0300)]
test_grasshopper: Remove long IV test for CTR mode
(cherry picked from commit
a53589ac2f9dffe4ef3c7f92d11d1d1a04cf0c49 )
Vitaly Chikunov [Mon, 23 Jul 2018 01:51:05 +0000 (04:51 +0300)]
test_grasshopper: Add chunked test and summarize testing
Encrypt with small chunks to verify that internal state is handled
correctly between calls.
(cherry picked from commit
3b13010957ba21890b5a9ece321a14aada1d7deb )
Vitaly Chikunov [Mon, 23 Jul 2018 01:15:25 +0000 (04:15 +0300)]
test_grasshopper: Tests for CBC and CFB
These tests are with generated test vectors from canonical TC26
implementation with truncated IVs.
(cherry picked from commit
9c0f7cd74fc568fdd62571c660060be2a93aeab9 )
Vitaly Chikunov [Mon, 23 Jul 2018 00:41:37 +0000 (03:41 +0300)]
test_grasshopper: Test OFB after it's fixed
(cherry picked from commit
ee15414bf118b8e3370ec8b5f0c4ff74eea9b31f )
Vitaly Chikunov [Sun, 22 Jul 2018 23:25:08 +0000 (02:25 +0300)]
test_grasshopper: ctr test 2 and ofb with truncated iv tests
Full test of OFB to match GOST R 34.13-2015 test vectors is impossible,
due to test IVs are having size (256-bits) over the maximum openssl can
allow (128-bits).
I generated new test vectors from canonical implementation
from `PR_GOSTR_bch_v9.zip` (revision of 2016-10-28) by truncating test
IVs in half.
(cherry picked from commit
d40efde88e6c6589d9d4f5128ec92178776c518a )
Vitaly Chikunov [Sun, 22 Jul 2018 09:21:43 +0000 (12:21 +0300)]
test_grasshopper: Stream modes testing
Make sure stream modes can encrypt any block size.
(cherry picked from commit
6e163b2cdd1233b2b0f46ddd2c9e0fdab0d318f8 )
Vitaly Chikunov [Sun, 22 Jul 2018 05:59:53 +0000 (08:59 +0300)]
test_grasshopper: Test for OMAC
(cherry picked from commit
370c40dfa4e9a372da03b68453a4af0c10d30a90 )
Vitaly Chikunov [Sun, 22 Jul 2018 00:10:37 +0000 (03:10 +0300)]
Add make test and test_grasshopper
test_grasshopper: test modes to match GOST vectors
Only ECB and CTR modes are tested. OBF, CBC, CFB modes is not testable
under openssl.
(cherry picked from commit
6547c44e46129c1d9d32760fa37a1a81fa085231 )
Gleb Fotengauer-Malinovskiy [Tue, 21 Aug 2018 16:13:15 +0000 (19:13 +0300)]
Add travis-ci support
Gleb Fotengauer-Malinovskiy [Tue, 21 Aug 2018 16:15:25 +0000 (19:15 +0300)]
build: fix build with custom openssl
Gleb Fotengauer-Malinovskiy [Tue, 24 Jul 2018 16:37:43 +0000 (19:37 +0300)]
test: Make perl tests report success or failure
Co-authored-by: Mikhail Gordeev <obirvalger@altlinux.org>
(cherry picked from commit
0329b9a709d7467284fdde076fa63cec7834980d )
Ilya Shipitsin [Wed, 27 Jun 2018 12:38:39 +0000 (17:38 +0500)]
modernize ci:
(*) convert 'openssl ciphers | grep ...' into Test:More syntax
(cherry picked from commit
abf1f76739e89aeee17988a55c2375324f66c380 )
Ilya Shipitsin [Tue, 26 Jun 2018 16:59:43 +0000 (21:59 +0500)]
fixed ciphers
(cherry picked from commit
1d378c5620f0fad2310676bad4f519d5fd9f2f1a )
Ilya Shipitsin [Tue, 26 Jun 2018 16:48:33 +0000 (21:48 +0500)]
allow OPENSSL_ENGINES to be specified explicitly
(cherry picked from commit
6eb11c677ad3c948da4abdca45ff451f50f413c1 )
Dmitry Belyavskiy [Mon, 25 Jun 2018 20:50:02 +0000 (23:50 +0300)]
Hopefully merge tests from object_db branch
(cherry picked from commit
3461793cc682c3336292696ded27f117849bcef0 )
Vitaly Chikunov [Tue, 24 Jul 2018 02:30:25 +0000 (05:30 +0300)]
Add perl test harness to CMakeLists to run on make test
Dmitry Belyavskiy [Tue, 21 Aug 2018 06:56:48 +0000 (09:56 +0300)]
Merge pull request #76 from glebfm/openssl_1_1_0-grasshopper-ctr-ofb-fixes
Backport grasshopper-ctr and grasshopper-ofb fixes to 1.1.0 branch
Dmitry Belyavskiy [Thu, 12 Jul 2018 18:49:21 +0000 (21:49 +0300)]
Explicitely setting cofactor
Gleb Fotengauer-Malinovskiy [Thu, 19 Jul 2018 17:11:37 +0000 (20:11 +0300)]
Fix grasshopper-ctr reinitialization
Also, document why CTR IV size is now set to 16, so user is noted to set
IV appropriately to full extent (including counter). Basically, it's for
openssh (and alike) to make it copy IV from privilege separated process.
(cherry picked from commit
74d13288e0a664f2615014d441087792eabc5cfa )
Vitaly Chikunov [Mon, 23 Jul 2018 00:35:13 +0000 (03:35 +0300)]
grasshopper: Fix OFB implementation.
Previous implementation was not OFB at all, and fail tests.
Note: This implementation is for fixed width 128-bit IV which makes
shift regiser redundant.
(cherry picked from commit
1e15537d7583cdd5a4b003b5efb92f0b6e1fdcc6 )
Vitaly Chikunov [Sun, 22 Jul 2018 07:34:03 +0000 (10:34 +0300)]
grasshopper: Fix streaming for CTR mode
Previously CTR did not continue unfinished block on the next cipher
iteration.
(cherry picked from commit
cf2ab51a449ce3d92163217c8078f0f625aac7ae )
andyk555 [Fri, 16 Feb 2018 19:16:15 +0000 (22:16 +0300)]
Update gost_grasshopper_cipher.c
(cherry picked from commit
6be1ab0065c7b2d24d1835f8b1bcb7cd28fb76e5 )
Dmitry Belyavskiy [Thu, 15 Mar 2018 08:01:59 +0000 (11:01 +0300)]
Bugfix - carry bit overflow
Dmitry Belyavskiy [Mon, 28 Aug 2017 12:23:28 +0000 (15:23 +0300)]
Mans from master
Dmitry Belyavskiy [Thu, 17 Aug 2017 19:41:56 +0000 (22:41 +0300)]
We do not need CXX
Dmitry Belyavskiy [Tue, 4 Jul 2017 11:19:19 +0000 (14:19 +0300)]
Remove stale patch
Dmitry Belyavskiy [Tue, 4 Jul 2017 11:09:32 +0000 (14:09 +0300)]
Fixed list of the supported algorithms.
Dmitry Belyavskiy [Tue, 4 Jul 2017 10:57:07 +0000 (13:57 +0300)]
Fix
Dmitry Belyavskiy [Tue, 4 Jul 2017 10:56:14 +0000 (13:56 +0300)]
Remove the mess with gostsum12/gost12sum
Dmitry Belyavskiy [Tue, 4 Jul 2017 10:33:42 +0000 (13:33 +0300)]
C89-compliance.
Dmitry Belyavskiy [Tue, 4 Jul 2017 10:32:03 +0000 (12:32 +0200)]
Merge pull request #37 from mouse07410/master
Address compiler warnings and build with CMAKE_C_FLAGS
Mouse [Tue, 27 Jun 2017 22:50:00 +0000 (18:50 -0400)]
Enable build by GCC and Clang, and passing -L flag via CMAKE_C_FLAGS variable
like the README suggests.
Mouse [Tue, 27 Jun 2017 22:32:32 +0000 (18:32 -0400)]
Fix compiler warnings
Mouse [Tue, 27 Jun 2017 22:17:30 +0000 (18:17 -0400)]
Merge remote-tracking branch 'upstream/master'
Uri Blumenthal [Tue, 27 Jun 2017 18:31:29 +0000 (14:31 -0400)]
Silence irrepairable compiler warnings. Add warnings that can be addressed.
Dmitry Belyavskiy [Tue, 27 Jun 2017 13:25:48 +0000 (15:25 +0200)]
Merge pull request #32 from mouse07410/master
Fix error in printf() invocation
Mouse [Tue, 27 Jun 2017 13:13:55 +0000 (09:13 -0400)]
Fixed sudden inability to find OpenSSL libraries by restoring manual specification of
where they reside
Mouse [Tue, 27 Jun 2017 12:34:04 +0000 (08:34 -0400)]
Merge remote-tracking branch 'upstream/master'
Mouse [Tue, 27 Jun 2017 12:29:49 +0000 (08:29 -0400)]
Make sure CMake does not pick stray directories for linking the engine
Dmitry Belyavskiy [Tue, 27 Jun 2017 10:20:41 +0000 (13:20 +0300)]
Merge pull request #26 from levitte/make-independent-new
Make gost-engine independent of OpenSSL SOURCE
Richard Levitte [Mon, 26 Jun 2017 07:39:34 +0000 (09:39 +0200)]
Make gost-engine independent of OpenSSL SOURCE
It really already was, this only removes artifacts in CMakeLists.txt
Uri Blumenthal [Mon, 26 Jun 2017 16:35:27 +0000 (12:35 -0400)]
Fix error in printf() invocation
Dmitry Belyavskiy [Mon, 26 Jun 2017 12:07:11 +0000 (15:07 +0300)]
Merge pull request #27 from levitte/separate-lib-and-eng
Separate GOST engine and GOST library, make GOST engine a module
Richard Levitte [Mon, 26 Jun 2017 07:50:29 +0000 (09:50 +0200)]
Rename the GOST engine
The GOST engine file was "libgost_engine.so". Unfortunately, this
will fail to load with any OpenSSL version, as the derived engine ID
will be "gost_engine" (OpenSSL <1.1.0) or "libgost_engine" (OpenSSL
>=1.1.0), since the engine checks the ID internally against "gost".
To make the IDs compatible, make sure the file name will be "gost.so"
Richard Levitte [Mon, 26 Jun 2017 07:46:11 +0000 (09:46 +0200)]
Separate GOST engine and GOST library, make GOST engine a module
The GOST engine is a dynamically loadable module rather than a shared
library, so make that explicit. However, the programs gost12sum,
gostsum and gostsum12 need to link against the algorithms implemented
as part of the engine, so separate those out into a static library
that both programs and engine link with.
Dmitry Belyavskiy [Thu, 15 Dec 2016 10:57:19 +0000 (13:57 +0300)]
Endianess test
Dmitry Belyavskiy [Wed, 14 Dec 2016 21:21:01 +0000 (00:21 +0300)]
Some code clarity
Dmitry Belyavskiy [Wed, 14 Dec 2016 21:20:17 +0000 (00:20 +0300)]
Some cleanup
Dmitry Belyavskiy [Tue, 13 Dec 2016 18:12:22 +0000 (21:12 +0300)]
Erroneous check removed
Dmitry Belyavskiy [Mon, 12 Dec 2016 13:47:46 +0000 (16:47 +0300)]
Fix signature processing
Dmitry Belyavskiy [Mon, 12 Dec 2016 12:57:00 +0000 (15:57 +0300)]
Fix warning
Dmitry Belyavskiy [Mon, 12 Dec 2016 12:17:18 +0000 (15:17 +0300)]
Bugfix according to real behaviour
Dmitry Belyavskiy [Mon, 12 Dec 2016 11:36:18 +0000 (14:36 +0300)]
Fix signature verification.
Dmitry Belyavskiy [Sun, 11 Dec 2016 17:59:42 +0000 (20:59 +0300)]
Fix return value of gost_ec_derive
Dmitry Belyavskiy [Sat, 19 Nov 2016 19:06:42 +0000 (22:06 +0300)]
Bugfix
Dmitry Belyavskiy [Sat, 19 Nov 2016 19:04:55 +0000 (22:04 +0300)]
Merge remote-tracking branch 'origin/openssl_1_1_0'
Conflicts:
gost_asn1.c
gost_crypt.c
Dmitry Belyavskiy [Sat, 19 Nov 2016 18:54:18 +0000 (21:54 +0300)]
Build with -Werror
Dmitry Belyavskiy [Sat, 19 Nov 2016 18:34:49 +0000 (21:34 +0300)]
Add -Werror
Dmitry Belyavskiy [Fri, 9 Sep 2016 21:23:20 +0000 (00:23 +0300)]
Merge pull request #21 from MaXaMaR/openssl_1_1_0
Fix grasshopper-ctr memory corruption
Max [Thu, 8 Sep 2016 09:02:49 +0000 (12:02 +0300)]
minor change
Max [Thu, 8 Sep 2016 09:02:01 +0000 (12:02 +0300)]
remove patch
Max [Thu, 8 Sep 2016 09:00:19 +0000 (12:00 +0300)]
remove some includes
Max [Thu, 8 Sep 2016 08:49:08 +0000 (11:49 +0300)]
merge upstream
Max [Thu, 8 Sep 2016 08:22:49 +0000 (11:22 +0300)]
minor change
Max [Thu, 8 Sep 2016 07:54:45 +0000 (10:54 +0300)]
fix grasshopper-ctr memory corruption - fix ctx buffer size
Dmitry Belyavskiy [Thu, 18 Aug 2016 20:28:42 +0000 (23:28 +0300)]
Merge pull request #19 from stevenlinsell/master
Fix missing cleanup of GOST specific error messages
stevenlinsell [Thu, 18 Aug 2016 00:37:35 +0000 (01:37 +0100)]
Fix missing cleanup of GOST specific error messages
Dmitry Belyavskiy [Thu, 28 Apr 2016 11:05:32 +0000 (14:05 +0300)]
Makefile is autocreated by CMake
Dmitry Belyavskiy [Thu, 28 Apr 2016 11:03:02 +0000 (14:03 +0300)]
C89 compliance
Dmitry Belyavskiy [Thu, 28 Apr 2016 10:40:47 +0000 (13:40 +0300)]
Reduce minimal version of the CMake
Maxim Tishkov [Thu, 28 Apr 2016 10:38:49 +0000 (13:38 +0300)]
Grasshopper && CMake
Dmitry Belyavskiy [Mon, 18 Apr 2016 18:43:25 +0000 (21:43 +0300)]
Adoption to TK26 recommendations
Dmitry Belyavskiy [Wed, 30 Mar 2016 18:02:54 +0000 (21:02 +0300)]
Try to fix segfault
Dmitry Belyavskiy [Tue, 29 Mar 2016 19:08:43 +0000 (22:08 +0300)]
Try to fix a strange segfault
Dmitry Belyavskiy [Sat, 26 Mar 2016 14:05:07 +0000 (17:05 +0300)]
Opaquization fixes + sources formatting.
Dmitry Belyavskiy [Sat, 26 Mar 2016 14:03:38 +0000 (17:03 +0300)]
Sources formatting
Dmitry Belyavskiy [Thu, 10 Mar 2016 17:48:11 +0000 (20:48 +0300)]
Memory leak fix
Dmitry Belyavskiy [Thu, 10 Mar 2016 17:17:41 +0000 (20:17 +0300)]
Backport of the ctrl-function from the 1_1_0 branch
Dmitry Belyavskiy [Wed, 2 Mar 2016 16:21:49 +0000 (19:21 +0300)]
Merge pull request #14 from levitte/fix-getting-asn1-params
Fix getting asn1 params
Max [Wed, 24 Feb 2016 11:54:27 +0000 (14:54 +0300)]
Add Grasshopper, CMake
Richard Levitte [Wed, 17 Feb 2016 11:34:36 +0000 (12:34 +0100)]
Fixup the horror of automatic source reformatting
Richard Levitte [Wed, 17 Feb 2016 11:32:16 +0000 (12:32 +0100)]
Get ASN.1 IV using public functions
The function EVP_CIPHER_get_asn1_iv(), which is the default
get_asn1_params implementation, can be used to set the "original IV".
No need to reach into the inside of EVP_CIPHER_CTX, which makes it
much more future proof.
Dmitry Belyavskiy [Mon, 15 Feb 2016 17:55:36 +0000 (20:55 +0300)]
Fix Visual Studio compliance
Dmitry Belyavskiy [Sat, 23 Jan 2016 09:44:01 +0000 (12:44 +0300)]
GOST engine fixes to make it compiling with opaque EVP_CIPHER/EVP_CIPHER_CTX structs
Dmitry Belyavskiy [Mon, 4 Jan 2016 19:40:02 +0000 (22:40 +0300)]
Openssl 1.1.0 has separate constants for managing key meshing and sbox values.
Added support for managing key meshing and sbox values into GOST89 ciphers.
Dmitry Belyavskiy [Mon, 4 Jan 2016 09:28:21 +0000 (12:28 +0300)]
Correct initializing the context
Dmitry Belyavskiy [Mon, 4 Jan 2016 09:12:15 +0000 (12:12 +0300)]
Fixed security bits for GOST 2001
Dmitry Belyavskiy [Sun, 3 Jan 2016 21:40:23 +0000 (00:40 +0300)]
Typo
Dmitry Belyavskiy [Sun, 3 Jan 2016 21:22:47 +0000 (00:22 +0300)]
Bugfix
Dmitry Belyavskiy [Sun, 3 Jan 2016 20:52:50 +0000 (23:52 +0300)]
Missed digests
Dmitry Belyavskiy [Sun, 3 Jan 2016 20:23:59 +0000 (23:23 +0300)]
Dmitry Belyavskiy [Sun, 3 Jan 2016 20:09:13 +0000 (23:09 +0300)]
openssl 1.1.0 compatibility