Skip to content
13 changes: 12 additions & 1 deletion cipher/cipher_algorithms.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,16 @@
#include "cipher/chacha.h"
#endif

//KUZNYECHIK cipher support?
#if (KUZNYECHIK_SUPPORT == ENABLED)
#include "cipher/kuznyechik.h"
#endif


//Maximum block size
#if (RC6_SUPPORT == ENABLED)
#if (KUZNYECHIK_SUPPORT ==ENABLED)
#define MAX_CIPHER_BLOCK_SIZE KUZNYECHIK_BLOCK_SIZE
#elif (RC6_SUPPORT == ENABLED)
#define MAX_CIPHER_BLOCK_SIZE RC6_BLOCK_SIZE
#elif (CAST256_SUPPORT == ENABLED)
#define MAX_CIPHER_BLOCK_SIZE CAST256_BLOCK_SIZE
Expand Down Expand Up @@ -273,6 +281,9 @@ typedef union
#if (ZUC_SUPPORT == ENABLED)
ZucContext zucContext;
#endif
#if (KUZNYECHIK_SUPPORT == ENABLED)
KuznyechikContext kuznyechikContext;
#endif
} CipherContext;


Expand Down
Loading