mirror of
https://github.com/nicesoft-labs/linux-crypto.git
synced 2026-01-23 00:53:55 +03:00
No description
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>
|
||
|---|---|---|
| crypto | ||
| .gitignore | ||
| .gitmodules | ||
| .travis.yml | ||
| gost-test-main.c | ||
| gost-test.h | ||
| gost28147_basic.c | ||
| gost28147_int.h | ||
| gost28147_modes.c | ||
| gost28147_param.h | ||
| gosthash94_generic.c | ||
| kuznyechik_generic.c | ||
| kuztable.h | ||
| LICENSE | ||
| magma_generic.c | ||
| Makefile | ||
| README.md | ||
| streebog_generic.c | ||
| testmgr.c | ||
| testmgr.h | ||
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