Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions gost28147_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
#include <linux/crypto.h>
#include <linux/version.h>
#include <asm/byteorder.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0)
#include <asm/unaligned.h>
#else
#include <linux/unaligned.h>
#endif
#include "gost28147_int.h"
#include "gost28147_param.h"

Expand Down
4 changes: 4 additions & 0 deletions gost28147_modes.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
#include <linux/crypto.h>
#include <linux/version.h>
#include <asm/byteorder.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0)
#include <asm/unaligned.h>
#else
#include <linux/unaligned.h>
#endif
#include "gost28147_int.h"

struct crypto_gost28147_mode_ctx {
Expand Down
5 changes: 5 additions & 0 deletions gosthash94_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@

#include <linux/crypto.h>
#include <linux/module.h>
#include <linux/version.h>

#include <asm/byteorder.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0)
#include <asm/unaligned.h>
#else
#include <linux/unaligned.h>
#endif

#include <crypto/internal/hash.h>
#include <crypto/gost28147.h>
Expand Down
4 changes: 4 additions & 0 deletions kuznyechik_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
#include <linux/crypto.h>
#include <linux/module.h>
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0)
#include <asm/unaligned.h>
#else
#include <linux/unaligned.h>
#endif

#include <crypto/algapi.h>
#include <crypto/kuznyechik.h>
Expand Down
5 changes: 5 additions & 0 deletions magma_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@

#include <linux/crypto.h>
#include <linux/module.h>
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0)
#include <asm/unaligned.h>
#else
#include <linux/unaligned.h>
#endif
#include <crypto/algapi.h>
#include <crypto/magma.h>
#include <crypto/gost28147.h>
Expand Down
6 changes: 5 additions & 1 deletion testmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@

#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0)
#include <crypto/internal/cipher.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0)
MODULE_IMPORT_NS("CRYPTO_INTERNAL");
#else
MODULE_IMPORT_NS(CRYPTO_INTERNAL);
#endif
#endif // kernel >= 6.13
#endif // kernel >= 5.12

#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0)
#define CRYPTO_TFM_REQ_FORBID_WEAK_KEYS CRYPTO_TFM_REQ_WEAK_KEY
Expand Down