aboutsummaryrefslogtreecommitdiff
path: root/gost_pmeth.c
AgeCommit message (Collapse)AuthorFilesLines
2021-12-11MSVC: Fix unreachable code warningVitaly Chikunov1-1/+0
Errors are like this: gost_pmeth.c(188): warning C4702: unreachable code gost_grasshopper_cipher.c(909): warning C4702: unreachable code Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
2020-11-28Add explicit support for NID_id_GostR3410_2001DH (GOST R 34.10-2001 DH)Dmitry Timoshkov1-0/+4
2020-07-09Add string option 'vko' for EVP_PKEY_CTRL_SET_VKOVitaly Chikunov1-0/+13
Format: vko:<bit length> Such as: vko:256 for VKO_256 vko:512 for VKO_512 vko:0 disable strict VKO mode, switch to other derive methods.
2020-07-09Allow to use raw VKO in EVP_PKEY_deriveVitaly Chikunov1-1/+16
Suitable for tests. Use EVP_PKEY_CTRL_SET_VKO ctrl with appropriate digest nid to enable VKO mode.
2020-05-18Fix code formating.Nikolay Morozov1-14/+14
All tabs replcaded with spaces. One file was 2 tabs fornating.
2020-05-10GOST CMS encryption implementation.Dmitry Belyavskiy1-11/+17
2020-05-02Free memoryDmitry Belyavskiy1-0/+1
2020-05-01Fix code aligningDmitry Belyavskiy1-18/+18
2020-05-01pkeyutl -derive supportDmitry Belyavskiy1-2/+25
Support of pkeyutl -pkeyopt ukmhex:0102030405060708 syntax
2020-02-27cppcheck: The scope of the variable can be reduced.Nikolay Morozov1-7/+7
2019-10-08Add support for NID_id_tc26_gost_3410_2012_512_paramSetTestDmitry Eremin-Solenikov1-0/+1
Add support for 512-bit curve parameters. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
2019-09-04Get rid of EVP_MD_CTRL_MAC_LENDmitry Belyavskiy1-1/+1
2019-08-23gost_pmeth.c: mitigate for constness difference in copy functionRichard Levitte1-2/+9
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
2019-03-22Fix one more constificationDmitry Belyavskiy1-1/+1
2019-03-22Fix constificationDmitry Belyavskiy1-1/+1
2019-01-30Implement EVP_PKEY_{,public_}checkVitaly Chikunov1-0/+14
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()).
2019-01-26Allow key creation using TC26 (2012) parametersVitaly Chikunov1-0/+28
R 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.
2019-01-21Fix DEBUG_SIGNVitaly Chikunov1-2/+2
2018-09-11Default size of imitovstavka adjustedDmitry Belyavskiy1-2/+2
2018-09-06Temporary FIXME to make engine kuznyuechik-omac friendly.Dmitry Belyavskiy1-1/+3
2018-09-06Mkae kuznyechik recognizable by libsslDmitry Belyavskiy1-0/+1
2018-09-04Let's wrap old and new key enncryption togetherDmitry Belyavskiy1-6/+6
2018-09-03Remove dependency from DSADmitry Belyavskiy1-11/+11
2018-08-30Dealing with new KeyExchangeDmitry Belyavskiy1-0/+4
2018-06-15CleanupDmitry Belyavskiy1-3/+1
2018-06-15Corrected MAC nameDmitry Belyavskiy1-2/+1
Redundant values removed
2018-06-14Finalizing OMACDmitry Belyavskiy1-12/+223
2018-06-14OMACs implementation. Unfinished.Dmitry Belyavskiy1-1/+24
2018-06-14Error codes rebuildDmitry Belyavskiy1-3/+3
2016-12-12Fix signature verification.Dmitry Belyavskiy1-9/+9
2016-11-19Merge remote-tracking branch 'origin/openssl_1_1_0'Dmitry Belyavskiy1-16/+22
Conflicts: gost_asn1.c gost_crypt.c
2016-11-19Build with -WerrorDmitry Belyavskiy1-4/+4
2016-03-26Opaquization fixes + sources formatting.Dmitry Belyavskiy1-13/+17
2016-03-10Memory leak fixDmitry Belyavskiy1-0/+2
2016-01-03openssl 1.1.0 compatibilityDmitry Belyavskiy1-7/+9
2016-01-03Allow to pass mac_size via -macoptDmitry Belyavskiy1-8/+14
2016-01-02Formatting fixDmitry Belyavskiy1-65/+65
2016-01-02Gost MAC paramsetDmitry Belyavskiy1-6/+49
2015-08-23Added CBC mode for gost and contril command to set size of MAC (from 1 to 8 ↵Victor Wagner1-2/+27
bytes)
2015-08-15Merge branch 'no_gost94_sig' into gost12_algsDmitry Belyavskiy1-151/+37
Conflicts: Makefile e_gost_err.c e_gost_err.h gost2001.c gost94_keyx.c gost_ameth.c gost_asn1.c gost_eng.c gost_lcl.h gost_params.c gost_params.h gost_pmeth.c gost_sign.c
2015-08-14Initial commit providing GOST 2012 algorithms.Dmitry Belyavskiy1-65/+293
2015-08-14Commit from current openssl master. The Gost94 signature algorithm isDmitry Belyavskiy1-154/+44
removed.
2015-08-14Initial commitDmitry Belyavsky1-0/+621