No description
Find a file
Dmitry Baryshkov 36de1c8a28 magma: fix building with kernels >= 6.3
Fix following errors:

magma_generic.c: In function ‘magma_set_key’:
magma_generic.c:25:40: error: implicit declaration of function ‘crypto_tfm_ctx’ [-Werror=implicit-function-declaration]
   25 |         struct crypto_magma_ctx *ctx = crypto_tfm_ctx(tfm);
      |                                        ^~~~~~~~~~~~~~
magma_generic.c:25:40: warning: initialization of ‘struct crypto_magma_ctx *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
magma_generic.c: In function ‘magma_encrypt’:
magma_generic.c:39:46: warning: initialization of ‘const struct crypto_magma_ctx *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   39 |         const struct crypto_magma_ctx *ctx = crypto_tfm_ctx(tfm);
      |                                              ^~~~~~~~~~~~~~
magma_generic.c: In function ‘magma_decrypt’:
magma_generic.c:52:46: warning: initialization of ‘const struct crypto_magma_ctx *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   52 |         const struct crypto_magma_ctx *ctx = crypto_tfm_ctx(tfm);

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
2023-06-24 01:31:16 +03:00
crypto streebog: import sources that have finally landed in the kernel 2018-11-22 23:36:42 +03:00
.gitignore .gitignore: ignore *.mod files 2020-05-15 01:53:07 +03:00
.gitmodules streebog: import sources that have finally landed in the kernel 2018-11-22 23:36:42 +03:00
.travis.yml .travis.yml: disable Streebog, does not build with kernel 4.4 2018-10-09 09:33:49 +03:00
gost-test-main.c streebog: import sources that have finally landed in the kernel 2018-11-22 23:36:42 +03:00
gost-test.h gost-test: add testing infrastructure based on original testmgr module 2018-10-01 14:08:44 +03:00
gost28147_basic.c Linux 5.6: garbage collect CRYPTO_TFM_RES_BAD_KEY_LEN flag 2020-05-15 01:49:30 +03:00
gost28147_int.h gost28147: split CFB/CNT code to separate file 2018-10-23 11:43:38 +03:00
gost28147_modes.c crypto: cfb - remove bogus memcpy() with src == dest 2019-06-26 23:32:25 +03:00
gost28147_param.h gost28147: move params to separate header file 2018-10-22 17:50:25 +03:00
gosthash94_generic.c gosthash94: fix most checkpatch issues 2018-10-01 20:28:20 +03:00
kuznyechik_generic.c crypto: drop unused flags variables 2020-05-15 01:51:49 +03:00
kuztable.h kyznyechik: add GOST R 34.12-2015 128-bit cipher implementation 2018-10-03 01:02:55 +03:00
LICENSE LICENSE: Add GPL v2 text 2018-10-03 13:23:15 +03:00
magma_generic.c magma: fix building with kernels >= 6.3 2023-06-24 01:31:16 +03:00
Makefile streebog: import sources that have finally landed in the kernel 2018-11-22 23:36:42 +03:00
README.md Rename README to .md to enable markup parsing 2019-06-26 23:59:46 +03:00
streebog_generic.c streebog: import sources that have finally landed in the kernel 2018-11-22 23:36:42 +03:00
testmgr.c testmgr: support newer kernels 2022-02-13 01:16:32 +03:00
testmgr.h streebog: import sources that have finally landed in the kernel 2018-11-22 23:36:42 +03:00

This is a set of Linux kernel modules implementing GOST cryptographic algorithms:

  • GOST 28147 cipher (RFC 5830)
  • GOST 28147 "Imitovstavka" (MAC mode) (RFC 5830)
  • GOST R 34.11-94 digest (RFC 5831)
    • HMAC using GOST R 34.11-94 (RFC 4357)
  • GOST R 34.12-2015 ciphers (Magma and Kuznyechik) (RFC 7801)
    • CMAC using GOST R 34.12-2015 (as required by GOST R 34.13-2015)
  • GOST R 34.11-2012 digest is provided from external source, developed by Vitaly Chikunov

Build Status