]> wagner.pp.ru Git - openssl-gost/engine.git/log
openssl-gost/engine.git
5 years agoCoveruty CID253284
Dmitry Belyavskiy [Sat, 21 Sep 2019 13:23:11 +0000 (16:23 +0300)]
Coveruty CID253284

5 years agoFix fb infer complain
Dmitry Belyavskiy [Sat, 21 Sep 2019 13:03:30 +0000 (16:03 +0300)]
Fix fb infer complain

5 years agoFix fb infer complain
Dmitry Belyavskiy [Sat, 21 Sep 2019 12:59:45 +0000 (15:59 +0300)]
Fix fb infer complain

5 years agoMerge pull request #170 from hackomatic/wip
Dmitry Belyavskiy [Thu, 5 Sep 2019 07:55:40 +0000 (10:55 +0300)]
Merge pull request #170 from hackomatic/wip

Fix compilation with Microsoft Visual C.

5 years agoMake VKO_compute_key public. 170/head
Dmitry Timoshkov [Wed, 4 Sep 2019 03:45:42 +0000 (11:45 +0800)]
Make VKO_compute_key public.

5 years agoFix compilation with Microsoft Visual C.
Dmitry Timoshkov [Wed, 4 Sep 2019 03:42:59 +0000 (11:42 +0800)]
Fix compilation with Microsoft Visual C.

5 years agoGet rid of EVP_MD_CTRL_MAC_LEN
Dmitry Belyavskiy [Wed, 4 Sep 2019 19:45:37 +0000 (22:45 +0300)]
Get rid of EVP_MD_CTRL_MAC_LEN

5 years agoMerge pull request #169 from levitte/omac-ctx-size
Dmitry Belyavskiy [Wed, 4 Sep 2019 19:23:56 +0000 (22:23 +0300)]
Merge pull request #169 from levitte/omac-ctx-size

For Grasshopper OMAC_ACPKM, OMAC and MAGMA, support XOF

5 years agoFor Grasshopper OMAC_ACPKM, OMAC and MAGMA, support XOF 169/head
Richard Levitte [Wed, 4 Sep 2019 14:22:26 +0000 (16:22 +0200)]
For Grasshopper OMAC_ACPKM, OMAC and MAGMA, support XOF

XOF (eXtendable-Output Function) is supported in OpenSSL since version
1.1.1.  Unfortunately, that support is limited, as it requires calling
EVP_DigestFinalXOF().  However, the grasshopper code wasn't compatible.

This changeset adds XOF support in grasshopper

This changeset removes the _meth_ calls from test_grasshopper.c (they
should never have been there, but considering support for XOF came so
late in OpenSSL, their presence is understandable) and uses supported
functionality for this sort of thing instead.

5 years agoMerge pull request #166 from levitte/cleanup-tests
Dmitry Belyavskiy [Wed, 28 Aug 2019 09:10:51 +0000 (12:10 +0300)]
Merge pull request #166 from levitte/cleanup-tests

Cleanup tests

5 years agotest/*.t: Don't check OPENSSL_ENGINES 166/head
Richard Levitte [Wed, 28 Aug 2019 08:23:57 +0000 (10:23 +0200)]
test/*.t: Don't check OPENSSL_ENGINES

It's set correctly when these tests are started with ctest, and
otherwise, we leave it to the user to decide.  Either way, we set it
to a bogus value when it isn't previously set...

5 years agoCMakeLists.txt: make sure the engine tests get OPENSSL_CONF too
Richard Levitte [Wed, 28 Aug 2019 08:23:01 +0000 (10:23 +0200)]
CMakeLists.txt: make sure the engine tests get OPENSSL_CONF too

An OPENSSL_CONF from the user may cause trouble

5 years agoMerge pull request #164 from levitte/run_tests-verbosity
Dmitry Belyavskiy [Tue, 27 Aug 2019 06:30:21 +0000 (09:30 +0300)]
Merge pull request #164 from levitte/run_tests-verbosity

test/run_tests: when ctest is verbose, make TAP::Harness verbose too

5 years agotest/run_tests: when ctest is verbose, make TAP::Harness verbose too 164/head
Richard Levitte [Tue, 27 Aug 2019 03:19:49 +0000 (05:19 +0200)]
test/run_tests: when ctest is verbose, make TAP::Harness verbose too

5 years agoMerge pull request #161 from levitte/fix-146-2
Dmitry Belyavskiy [Sun, 25 Aug 2019 18:24:06 +0000 (21:24 +0300)]
Merge pull request #161 from levitte/fix-146-2

test/run_tests: extend support for more operating systems

5 years agotest/run_tests: extend support for more operating systems 161/head
Richard Levitte [Sun, 25 Aug 2019 09:32:21 +0000 (11:32 +0200)]
test/run_tests: extend support for more operating systems

Not all systems recognise LD_LIBRARY_PATH, and we therefore need to
set other environment variables.

Currently set:

- LD_LIBRARY_PATH (Linux and ELF HP-UX)
- DYLD_LIBRARY_PATH (MacOS X)
- LIBPATH (AIX, OS/2)

More can be added as the need arises.

Fixes #146

5 years agoMerge pull request #160 from levitte/fix-146
Dmitry Belyavskiy [Sat, 24 Aug 2019 15:00:40 +0000 (18:00 +0300)]
Merge pull request #160 from levitte/fix-146

test/run_tests: Always set paths when OPENSSL_ROOT_DIR is defined

5 years ago.cirrus.yml: install pkgconf 160/head
Richard Levitte [Sat, 24 Aug 2019 12:35:39 +0000 (14:35 +0200)]
.cirrus.yml: install pkgconf

That will add the pkg-config on FreeBSD

5 years agotest/run_tests: Always set paths when OPENSSL_ROOT_DIR is defined
Richard Levitte [Sat, 24 Aug 2019 08:36:39 +0000 (10:36 +0200)]
test/run_tests: Always set paths when OPENSSL_ROOT_DIR is defined

When the environment variable OPENSSL_ROOT_DIR is defined, we need to
ensure that PATH and LD_LIBRARY_PATH are properly affected.

This is a little bit complicated, since OPENSSL_ROOT_DIR could point
at an OpenSSL build directory as well as an OpenSSL installation
tree.  Fortunately, it's easy to detect the difference; if it's a
build tree, there's a sub-directory 'apps'.

For installation trees, it's further complicated by OpenSSL's
'multilib' target attribute, which exists for platforms that support
directory separated libraries for differing bitness (typically 32-bit
and 64-bit libraries).  We trust pkg-config to give us the answer.
Binaries are easier, they live in $OPENSL_ROOT_DIR/bin.

Fixes #146

5 years agoMerge pull request #159 from levitte/fix-154
Dmitry Belyavskiy [Fri, 23 Aug 2019 17:22:28 +0000 (20:22 +0300)]
Merge pull request #159 from levitte/fix-154

gost_pmeth.c: mitigate for constness difference in copy function

5 years agogost_pmeth.c: mitigate for constness difference in copy function 159/head
Richard Levitte [Fri, 23 Aug 2019 16:55:42 +0000 (18:55 +0200)]
gost_pmeth.c: mitigate for constness difference in copy function

The second argument for the pkey_copy function has been constified in
OpenSSL to be 3.0.  This is normally not a problem, but when passing a
pointer to such a function, the compiler does complain.

This change solves the issue by looking at the macros
OPENSSL_VERSION_MAJOR, which is new in OpenSSL to be 3.0, and set
constness based on that.

Fixes #154

5 years agoMerge pull request #141 from chipitsine/ppc64le
Dmitry Belyavskiy [Thu, 1 Aug 2019 08:07:26 +0000 (11:07 +0300)]
Merge pull request #141 from chipitsine/ppc64le

travis-ci: add linux-ppc64le build

5 years agotravis-ci: install cmake-3.15.1 on linux-ppc64le 141/head
Ilya Shipitsin [Sat, 27 Jul 2019 19:34:58 +0000 (00:34 +0500)]
travis-ci: install cmake-3.15.1 on linux-ppc64le

5 years agotravis-ci: add linux-ppc64le builds
Ilya Shipitsin [Sat, 27 Jul 2019 18:14:16 +0000 (23:14 +0500)]
travis-ci: add linux-ppc64le builds

5 years agoMerge pull request #152 from vt-alt/fix151
Dmitry Belyavskiy [Fri, 12 Jul 2019 09:32:14 +0000 (12:32 +0300)]
Merge pull request #152 from vt-alt/fix151

Fix test_grasshopper and test_keyexpimp engine init

5 years agoTry to fix Travis-CI build installing cpanimus 152/head
Vitaly Chikunov [Fri, 12 Jul 2019 00:49:36 +0000 (03:49 +0300)]
Try to fix Travis-CI build installing cpanimus

Try this approach:
https://stackoverflow.com/questions/32358197/travis-ci-install-perl-module-with-non-perl-language

5 years agoFix test_grasshopper and test_keyexpimp engine init
Vitaly Chikunov [Fri, 12 Jul 2019 00:23:10 +0000 (03:23 +0300)]
Fix test_grasshopper and test_keyexpimp engine init

Make proper engine initialization for tests instead of
EVP_add_cipher/EVP_add_digest hack. Fixes #151.

5 years agoMerge pull request #147 from chipitsine/clean_osx_travis_workaround
Dmitry Belyavskiy [Mon, 10 Jun 2019 08:15:35 +0000 (11:15 +0300)]
Merge pull request #147 from chipitsine/clean_osx_travis_workaround

travis-ci: cleanup "so/dylib" mangling, not needed

5 years agotravis-ci: cleanup "so/dylib" mangling, not needed 147/head
Ilya Shipitsin [Sat, 8 Jun 2019 20:46:01 +0000 (01:46 +0500)]
travis-ci: cleanup "so/dylib" mangling, not needed
after https://github.com/openssl/openssl/pull/8951

5 years agoMake build against current OpenSSL with --no-deprecated
Dmitry Belyavskiy [Sat, 8 Jun 2019 12:58:19 +0000 (15:58 +0300)]
Make build against current OpenSSL with --no-deprecated

5 years agoRevert previous commit
beldmit [Wed, 5 Jun 2019 20:59:39 +0000 (23:59 +0300)]
Revert previous commit

5 years agoTry to fix --no-deprecated build
beldmit [Wed, 5 Jun 2019 20:45:55 +0000 (23:45 +0300)]
Try to fix --no-deprecated build

5 years agoMerge pull request #140 from chipitsine/master
Dmitry Belyavskiy [Sat, 18 May 2019 14:22:34 +0000 (17:22 +0300)]
Merge pull request #140 from chipitsine/master

travis-ci: add osx builds

5 years agotravis-ci: add osx builds 140/head
Ilya Shipitsin [Sat, 18 May 2019 12:04:58 +0000 (17:04 +0500)]
travis-ci: add osx builds

5 years agoMerge pull request #137 from DJm00n/master
Dmitry Belyavskiy [Sat, 18 May 2019 05:55:17 +0000 (08:55 +0300)]
Merge pull request #137 from DJm00n/master

Fix MacOS building (master branch)

5 years agoFix MacOS building 137/head
Dimitriy Ryazantcev [Sat, 4 May 2019 17:22:16 +0000 (20:22 +0300)]
Fix MacOS building

Fixes #122

5 years agoMerge pull request #138 from Voev/patch-1
Dmitry Belyavskiy [Mon, 13 May 2019 20:52:39 +0000 (23:52 +0300)]
Merge pull request #138 from Voev/patch-1

Не учитывается значение carry

5 years agoНе учитывается значение carry 138/head
Voev [Mon, 13 May 2019 15:03:58 +0000 (18:03 +0300)]
Не учитывается значение carry

5 years agoUpdate README.md
Dmitry Belyavskiy [Tue, 30 Apr 2019 13:05:44 +0000 (16:05 +0300)]
Update README.md

5 years agoUpdate README.md
Dmitry Belyavskiy [Tue, 30 Apr 2019 13:05:23 +0000 (16:05 +0300)]
Update README.md

5 years agoMerge pull request #136 from chipitsine/master
Dmitry Belyavskiy [Tue, 30 Apr 2019 06:47:42 +0000 (09:47 +0300)]
Merge pull request #136 from chipitsine/master

initial cirrus-ci support

5 years agoinitial cirrus-ci support 136/head
Ilya Shipitsin [Mon, 29 Apr 2019 22:06:42 +0000 (03:06 +0500)]
initial cirrus-ci support

5 years agoMerge pull request #135 from vt-alt/test_tls2
Dmitry Belyavskiy [Mon, 29 Apr 2019 19:53:40 +0000 (22:53 +0300)]
Merge pull request #135 from vt-alt/test_tls2

test_tls: use socketpair instead of network connection

5 years agotest_tls: use socketpair instead of network connection 135/head
Vitaly Chikunov [Sun, 28 Apr 2019 19:04:49 +0000 (22:04 +0300)]
test_tls: use socketpair instead of network connection

May fix build on Cirrus-CI, issue #134.

5 years agoMerge pull request #132 from vt-alt/fbsdfix
Dmitry Belyavskiy [Sun, 21 Apr 2019 13:47:34 +0000 (16:47 +0300)]
Merge pull request #132 from vt-alt/fbsdfix

Fix compilation on FreeBSD

5 years agoFix compilation on FreeBSD 132/head
Vitaly Chikunov [Sun, 21 Apr 2019 03:45:55 +0000 (06:45 +0300)]
Fix compilation on FreeBSD

Otherwise `struct sockaddr_in` is undefined for test_tls.

Reported in #123 by f-andrey.

5 years agoMerge pull request #130 from vt-alt/align2
Dmitry Belyavskiy [Wed, 10 Apr 2019 18:46:04 +0000 (21:46 +0300)]
Merge pull request #130 from vt-alt/align2

test_digest and alignment fix for Streebog

5 years agoFix Streebog alignment problem 130/head
Vitaly Chikunov [Wed, 10 Apr 2019 18:09:54 +0000 (18:09 +0000)]
Fix Streebog alignment problem

Some architectures in some circumstances do not allow unaligned
memory access (such as ARM, MIPS) triggering SIGBUS. This patch
very crudely fixes this issue.

The issue is found and original fix is proposed by Eric Biggers:

  https://patchwork.kernel.org/patch/10878865/

5 years agotest_digest: simple digest tests
Vitaly Chikunov [Wed, 10 Apr 2019 17:43:45 +0000 (17:43 +0000)]
test_digest: simple digest tests

Especially test alginment problems on MIPSel.

5 years agoCofactor should be taken into account in VKO
Dmitry Belyavskiy [Thu, 4 Apr 2019 15:45:36 +0000 (18:45 +0300)]
Cofactor should be taken into account in VKO

5 years agoMerge pull request #127 from chipitsine/master
Dmitry Belyavskiy [Fri, 22 Mar 2019 20:03:21 +0000 (23:03 +0300)]
Merge pull request #127 from chipitsine/master

travis-ci: switch to xenial

5 years agotravis-ci: switch to xenial 127/head
Ilya Shipitsin [Fri, 22 Mar 2019 19:53:34 +0000 (00:53 +0500)]
travis-ci: switch to xenial

5 years agoFix one more constification
Dmitry Belyavskiy [Fri, 22 Mar 2019 19:50:24 +0000 (22:50 +0300)]
Fix one more constification

5 years agoFix constification
Dmitry Belyavskiy [Fri, 22 Mar 2019 19:43:30 +0000 (22:43 +0300)]
Fix constification

5 years agoPartially fix #125 (Memory leak in pub_encode_gost_ec)
Dmitry Belyavskiy [Fri, 22 Mar 2019 19:23:39 +0000 (22:23 +0300)]
Partially fix #125 (Memory leak in pub_encode_gost_ec)

5 years agoMerge pull request #121 from vt-alt/test_tls
Dmitry Belyavskiy [Sat, 2 Mar 2019 18:48:36 +0000 (21:48 +0300)]
Merge pull request #121 from vt-alt/test_tls

test_tls: simple TLS connection testing

5 years agoWe cannot ensure ALIGN(16) of externally allocated data
Dmitry Belyavskiy [Fri, 1 Mar 2019 20:36:30 +0000 (23:36 +0300)]
We cannot ensure ALIGN(16) of externally allocated data

5 years agotest_tls: simple TLS connection testing 121/head
Vitaly Chikunov [Mon, 25 Feb 2019 08:40:19 +0000 (11:40 +0300)]
test_tls: simple TLS connection testing

Generate cert for every parameter, set it up on s_server, connect
s_client, and transfer 1M of data to both directions.

5 years agoMerge pull request #96 from abbra/support-Test-Stream
Dmitry Belyavskiy [Sun, 17 Feb 2019 10:36:38 +0000 (13:36 +0300)]
Merge pull request #96 from abbra/support-Test-Stream

Migrate test framework to Test2

5 years agoAdd Test2::V0 to Travis CI 96/head
Alexander Bokovoy [Sat, 16 Feb 2019 18:55:50 +0000 (20:55 +0200)]
Add Test2::V0 to Travis CI

5 years agoMigrate test framework to Test2
Alexander Bokovoy [Thu, 4 Oct 2018 07:23:44 +0000 (10:23 +0300)]
Migrate test framework to Test2

At least Fedora 30 will have no Test::More anymore. Test::More is
deprecated, as well as Test::Stream and Test2 is a recommended
replacement.

Luckily, gost-engine's use of Test::More is limited to functions which
are compatible with implementations in Test2, so only module import and
test plan announcement need to change.

Also, on Fedora 29 perl 5.28 is very picky on undefined variables.

5 years agoMerge pull request #120 from vt-alt/test_engine
Dmitry Belyavskiy [Sat, 16 Feb 2019 07:56:29 +0000 (10:56 +0300)]
Merge pull request #120 from vt-alt/test_engine

tests: Load just built engine from the output directory

5 years agotests: Load just built engine from the output directory 120/head
Vitaly Chikunov [Fri, 15 Feb 2019 19:18:08 +0000 (22:18 +0300)]
tests: Load just built engine from the output directory

Define ENGINE_DIR for all binary tests. Instead of auto-loading engine
using `example.conf' load it directly from the OUTPUT_DIRECTORY for
curves tests.

5 years agoClang options
Dmitry Belyavskiy [Fri, 15 Feb 2019 18:09:08 +0000 (21:09 +0300)]
Clang options

5 years agoMerge pull request #119 from vt-alt/lrt
Dmitry Belyavskiy [Fri, 8 Feb 2019 18:13:27 +0000 (21:13 +0300)]
Merge pull request #119 from vt-alt/lrt

cmake: benchmark/sign - link with rt for clock_gettime when needed

5 years agocmake: benchmark/sign - link with rt for clock_gettime when needed 119/head
Vitaly Chikunov [Fri, 8 Feb 2019 18:02:31 +0000 (21:02 +0300)]
cmake: benchmark/sign - link with rt for clock_gettime when needed

Test if clock_gettime() requires linking with -lrt and link sign
benchmark with rt if needed. clock_gettime() requires -lrt only for
glibc versions before 2.17.

5 years agort library for clock_gettime
Dmitry Belyavskiy [Thu, 7 Feb 2019 09:23:04 +0000 (12:23 +0300)]
rt library for clock_gettime

5 years agoMerge pull request #117 from vt-alt/asan
Dmitry Belyavskiy [Sun, 3 Feb 2019 10:32:57 +0000 (13:32 +0300)]
Merge pull request #117 from vt-alt/asan

travis: Enable ASan build

5 years agotravis: Enable ASan build 117/head
Vitaly Chikunov [Sun, 3 Feb 2019 10:15:40 +0000 (13:15 +0300)]
travis: Enable ASan build

5 years agoMerge pull request #115 from vt-alt/leak
Dmitry Belyavskiy [Sat, 2 Feb 2019 18:11:36 +0000 (21:11 +0300)]
Merge pull request #115 from vt-alt/leak

Fix leaks in tests

5 years agoFix memory leaks in the tests 115/head
Vitaly Chikunov [Sat, 2 Feb 2019 16:39:57 +0000 (19:39 +0300)]
Fix memory leaks in the tests

In preparation for memory leak detector fix them in the tests.

5 years agotest_curves: Fix forgotten comparison in test
Vitaly Chikunov [Sat, 2 Feb 2019 16:41:27 +0000 (19:41 +0300)]
test_curves: Fix forgotten comparison in test

5 years agoMerge branch 'master' of https://github.com/gost-engine/engine
Dmitry Belyavskiy [Thu, 31 Jan 2019 17:39:56 +0000 (20:39 +0300)]
Merge branch 'master' of https://github.com/gost-engine/engine

5 years agoFix to #110
Dmitry Belyavskiy [Thu, 31 Jan 2019 17:38:48 +0000 (20:38 +0300)]
Fix to #110

5 years agoMerge pull request #111 from vt-alt/check
Dmitry Belyavskiy [Wed, 30 Jan 2019 14:02:21 +0000 (17:02 +0300)]
Merge pull request #111 from vt-alt/check

Implement EVP_PKEY_{,public_}check

5 years agoImplement EVP_PKEY_{,public_}check 111/head
Vitaly Chikunov [Wed, 30 Jan 2019 13:02:53 +0000 (16:02 +0300)]
Implement EVP_PKEY_{,public_}check

Very simple redirect to EC_KEY_check_key() which is doing all basic
checks (see crypto/ec/ec_key.c:ec_key_simple_check_key()).

5 years agoMerge pull request #109 from vt-alt/test_params2
Dmitry Belyavskiy [Mon, 28 Jan 2019 13:22:51 +0000 (16:22 +0300)]
Merge pull request #109 from vt-alt/test_params2

 test_params: remove calls to internall API and add more tests

5 years agotest_params: additional tests 109/head
Vitaly Chikunov [Sun, 27 Jan 2019 00:42:15 +0000 (03:42 +0300)]
test_params: additional tests

- Manually verify cert using EVP_Verify API. (In addition to
X509_verify).
- Add test using EVP_DigestVerifyInit API for raw vectors.

5 years agoMerge pull request #108 from vt-alt/perl
Dmitry Belyavskiy [Mon, 28 Jan 2019 13:05:08 +0000 (16:05 +0300)]
Merge pull request #108 from vt-alt/perl

run_tests: pass OPENSSL_ROOT_DIR into perl tests

5 years agoMerge pull request #107 from vt-alt/travis
Dmitry Belyavskiy [Mon, 28 Jan 2019 13:04:31 +0000 (16:04 +0300)]
Merge pull request #107 from vt-alt/travis

travis: speed up Travis build

5 years agoMerge pull request #106 from vt-alt/test_sign
Dmitry Belyavskiy [Mon, 28 Jan 2019 13:03:36 +0000 (16:03 +0300)]
Merge pull request #106 from vt-alt/test_sign

Sign/Verify and tests for all curves

5 years agotest_params: Avoid calls to fill_GOST_EC_params and bind_gost
Vitaly Chikunov [Sat, 26 Jan 2019 23:15:00 +0000 (02:15 +0300)]
test_params: Avoid calls to fill_GOST_EC_params and bind_gost

Use external API to generate key with parameters instead of calling
fill_GOST_EC_params(). Use OPENSSL_CONF trick like in test_sign to avoid
calling bind_gost(). Reverting 1716316de77 ("Export bind_gost to allow
local engine init") as not needed anymore.

5 years agoEnable benchmark for all curves 106/head
Vitaly Chikunov [Thu, 24 Jan 2019 03:24:43 +0000 (06:24 +0300)]
Enable benchmark for all curves

5 years agotest_sign: Sign/Verify tests for all curves
Vitaly Chikunov [Wed, 23 Jan 2019 05:16:33 +0000 (08:16 +0300)]
test_sign: Sign/Verify tests for all curves

Currently, not all curves are tested, but only these that are fully
implemented, to test all curves run `test_sign` with any argument.

5 years agoAllow key creation using TC26 (2012) parameters
Vitaly Chikunov [Thu, 24 Jan 2019 01:32:28 +0000 (04:32 +0300)]
Allow key creation using TC26 (2012) parameters

1323565.1.023-2018 forbids encoding hash oid into TC26 (2012)
parameters in AlgorithmIdentifier, so this is removed.

New "paramset" names for 256-bit TC26 parameters: TCA, TCB, TCC, TCD,
for 512-bit parameter: C.

Using these new OIDs for gost2012_256:
  NID_id_tc26_gost_3410_2012_256_paramSetA = TCA
  NID_id_tc26_gost_3410_2012_256_paramSetB = TCB
  NID_id_tc26_gost_3410_2012_256_paramSetC = TCC
  NID_id_tc26_gost_3410_2012_256_paramSetD = TCD
for gost2012_512:
  NID_id_tc26_gost_3410_2012_512_paramSetC = C

Resolves #84.

5 years agorun_tests: pass OPENSSL_ROOT_DIR into perl tests 108/head
Vitaly Chikunov [Thu, 24 Jan 2019 03:59:39 +0000 (06:59 +0300)]
run_tests: pass OPENSSL_ROOT_DIR into perl tests

If OPENSSL_ROOT_DIR is specified pass it to the perl tests, and set its
value as LD_LIBRARY_PATH, if unset. This allows to run tests for custom
openssl build without manually setting proper env.

5 years agotravis: speed up Travis build 107/head
Vitaly Chikunov [Wed, 23 Jan 2019 23:58:10 +0000 (02:58 +0300)]
travis: speed up Travis build

Do shallow clone of openssl, make parallel on all available cpus (2).

5 years agotest_curves: test all allowed GOST 34.10 curves
Vitaly Chikunov [Wed, 23 Jan 2019 03:01:00 +0000 (06:01 +0300)]
test_curves: test all allowed GOST 34.10 curves

Enable test for 2001 curves since they are allowed and add TC26
aliases for 256-bit curves.

5 years agoMerge pull request #105 from vt-alt/test_params
Dmitry Belyavskiy [Mon, 21 Jan 2019 18:28:06 +0000 (21:28 +0300)]
Merge pull request #105 from vt-alt/test_params

Test signature verify for different parameters

5 years agotravis: make 'make test' verbose on failure 105/head
Vitaly Chikunov [Mon, 21 Jan 2019 06:26:15 +0000 (09:26 +0300)]
travis: make 'make test' verbose on failure

5 years agoec_sign: map tc26-2012 256-bit parameters to cp-2001 parameters
Vitaly Chikunov [Mon, 21 Jan 2019 05:36:04 +0000 (08:36 +0300)]
ec_sign: map tc26-2012 256-bit parameters to cp-2001 parameters

This will make at least signature verification work.

5 years agoasn1: make hash_params optional
Vitaly Chikunov [Mon, 21 Jan 2019 05:15:19 +0000 (08:15 +0300)]
asn1: make hash_params optional

1323565.1.023-2018 defines in the `parameters' for
`AlgorithmIdentifier' field `digestParamSet' is optional.

5 years agotest_params: signature verify tests for different curves
Vitaly Chikunov [Mon, 21 Jan 2019 08:53:11 +0000 (11:53 +0300)]
test_params: signature verify tests for different curves

Interoperability with third party software.

5 years agoExport bind_gost to allow local engine init
Vitaly Chikunov [Mon, 21 Jan 2019 08:46:56 +0000 (11:46 +0300)]
Export bind_gost to allow local engine init

Look at `test_params.c` for example.

5 years agoFix DEBUG_SIGN
Vitaly Chikunov [Mon, 21 Jan 2019 08:52:10 +0000 (11:52 +0300)]
Fix DEBUG_SIGN

5 years agoSome PVS Studio nits
Dmitry Belyavskiy [Sat, 29 Dec 2018 12:01:32 +0000 (15:01 +0300)]
Some PVS Studio nits

5 years agoMerge branch 'master' of https://github.com/gost-engine/engine
Dmitry Belyavskiy [Fri, 28 Dec 2018 10:12:37 +0000 (13:12 +0300)]
Merge branch 'master' of https://github.com/gost-engine/engine

5 years agoAcceptance tests of TLSTREE ctrl
Dmitry Belyavskiy [Fri, 28 Dec 2018 10:11:48 +0000 (13:11 +0300)]
Acceptance tests of TLSTREE ctrl

5 years agoBugfix: iv should be adjusted before tlstree
Dmitry Belyavskiy [Fri, 28 Dec 2018 10:11:01 +0000 (13:11 +0300)]
Bugfix: iv should be adjusted before tlstree

5 years agoMerge pull request #103 from UndefBehavior/edw_paramsets
Dmitry Belyavskiy [Fri, 28 Dec 2018 08:22:28 +0000 (11:22 +0300)]
Merge pull request #103 from UndefBehavior/edw_paramsets

Replace orders of groups with orders of cyclic subgroups