aboutsummaryrefslogtreecommitdiff
path: root/gost_grasshopper_cipher.c
AgeCommit message (Collapse)AuthorFilesLines
2022-12-02Implementation of the MGM mode for magma/kuznyechikigrkir1-0/+291
first implemented in ossl_patched branch uses dynamic NIDs Signed-off-by: Sergei Ianovich <sergei.ianovich@ya.ru>
2021-12-11MSVC: Fix unresolved externals (cipher_gost_grasshopper_ctracpkm)Vitaly Chikunov1-1/+1
Un-inline `cipher_gost_grasshopper_ctracpkm'. Error message: gost_core.lib(gost_omac_acpkm.obj) : error LNK2019: unresolved external symbol cipher_gost_grasshopper_ctracpkm referenced in function CMAC_ACPKM_Init gost.dll : fatal error LNK1120: 1 unresolved externals Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
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-12modernize ctrl function for magma & kuznechik TLS usageIgor Kirillov1-21/+17
modernize magma & kuznechik ctrl functions for EVP_CTRL_TLSTREE mode. add some minor updates to store master key for using in magma TLSTREE mode.
2020-05-18Fix code formating.Nikolay Morozov1-87/+87
All tabs replcaded with spaces. One file was 2 tabs fornating.
2020-05-13Add static to functions that not need to be exportedVitaly Chikunov1-49/+57
After registration rework many callbacks not need to be exported. Also, some functions inconsistently declared static in headers and non-static in the code. Finally, some functions just not need to be exported.
2020-05-13Remove unneeded declarations after registration reworkVitaly Chikunov1-0/+1
2020-05-12gost_grasshopper_cipher: Remove redundant codeVitaly Chikunov1-237/+3
Not needed after cipher registration converted into table way.
2020-05-12gost_grasshopper_cipher: Rework cipher registrationVitaly Chikunov1-0/+99
This only adds registering via tables, but not removing obsolete code.
2020-05-10GOST CMS encryption implementation.Dmitry Belyavskiy1-25/+16
2020-05-09Refactoring unprotected attributes processingDmitry Belyavskiy1-30/+11
2020-05-04Fix coverity issue 300457Dmitry Belyavskiy1-0/+4
2020-05-04CTR encryption updateDmitry Belyavskiy1-7/+6
2020-05-04Make grasshopper_test happyDmitry Belyavskiy1-5/+5
2020-05-04KUZNYECHIK-CTR_ACPKM-OMAC implementationDmitry Belyavskiy1-80/+254
2020-05-04Kuznyechik ASN1 parameters parsingDmitry Belyavskiy1-30/+33
2020-02-29cppcheck: Variable is reassigned a value before the old one has been used.Nikolay Morozov1-3/+1
Plus some minor chnages - function defenition doen't match function declaration - Consecutive break statement is unnecessary. - Type missmatch in format string
2020-02-27cppcheck: The scope of the variable can be reduced.Nikolay Morozov1-8/+4
2020-02-26Replace RAND_bytes with RAND_priv_bytesVitaly Chikunov1-1/+1
`RAND_priv_bytes' is supposed to be used for private data.
2020-02-22No need for special OFB contextDmitry Belyavskiy1-24/+10
2019-10-14Fix potential memory leakDmitry Belyavskiy1-0/+1
Fixes #180
2019-09-05Fix compilation with Microsoft Visual C.Dmitry Timoshkov1-26/+28
2019-05-13Не учитывается значение carryVoev1-4/+3
2018-12-28Bugfix: iv should be adjusted before tlstreeDmitry Belyavskiy1-47/+45
2018-12-28Bugfix of seq decrementDmitry Belyavskiy1-2/+3
2018-12-27CryptoPro compatibilityDmitry Belyavskiy1-0/+33
2018-09-19Result checkDmitry Belyavskiy1-1/+1
2018-09-19FormattingDmitry Belyavskiy1-145/+137
2018-09-19TLSTREE ctrlDmitry Belyavskiy1-0/+38
2018-09-13Fix in-place decryption for CBC modeVitaly Chikunov1-1/+4
2018-09-11Fixed in-place encryption for CTR and CTR-ACPKM modesDmitry Belyavskiy1-5/+8
2018-09-11FormattingDmitry Belyavskiy1-735/+735
2018-09-11FormattingDmitry Belyavskiy1-623/+721
2018-09-03Allow double calling of gost_grasshopper_cipher_cleanup()Vitaly Chikunov1-0/+4
2018-07-31Optimize out skip_sections and add tests for ACPKM-MasterVitaly Chikunov1-17/+9
ACPKM-Master is from R 23565.1.017-2018, it will be required for ACPKM-OMAC for TLS 1.2.
2018-07-26Ensure proper cipher type for EVP_CTRL_KEY_MESHVitaly Chikunov1-3/+6
2018-07-26Set default value for CTR ACPKM limitVitaly Chikunov1-2/+2
Default limit for Kuznyechik is 4KiB, from TLS 1.2 recommendations. As a consequence it does not need to be configured via EVP_CTRL_KEY_MESH. Also, explicitly set ACPKM limit in tests.
2018-07-26Add kuznyechik_ctracpkmVitaly Chikunov1-4/+127
2018-07-25Move openssl-1.0.2 shim layer hereVitaly Chikunov1-4/+4
Previously, we had shim layer in our openssl branch Could be squashed with 01d26132d156ba9fff7a8142d5a6899d7b2e6286
2018-07-25Fix grasshopper-ctr reinitializationGleb Fotengauer-Malinovskiy1-8/+9
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.
2018-07-23grasshopper: Fix OFB implementation.Vitaly Chikunov1-41/+4
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.
2018-07-22grasshopper: Fix streaming for CTR modeVitaly Chikunov1-1/+11
Previously CTR did not continue unfinished block on the next cipher iteration.
2018-07-20Merge branch 'magma_impl' into openssl_1_0_2_altVitaly Chikunov1-6/+12
2018-07-17Fix a mem leakMatt Caswell1-0/+14
Ensure the grasshopper ciphers are destroyed on engine destroy.
2018-06-19Magma CTR (no meshing), compile-only version.Dmitry Belyavskiy1-3/+9
2018-06-14Error codes rebuildDmitry Belyavskiy1-3/+3
2018-02-16Update gost_grasshopper_cipher.candyk5551-8/+17
2017-06-27Fix compiler warningsMouse1-1/+0
2016-11-19Build with -WerrorDmitry Belyavskiy1-20/+20
2016-09-08merge upstreamMax1-18/+20