Botan  2.7.0
Crypto and TLS for C++11
Namespaces | Macros
sm4.cpp File Reference
#include <botan/sm4.h>
#include <botan/loadstor.h>

Go to the source code of this file.

Namespaces

 Botan
 

Macros

#define SM4_RNDS(k0, k1, k2, k3, F)
 

Macro Definition Documentation

◆ SM4_RNDS

#define SM4_RNDS (   k0,
  k1,
  k2,
  k3,
 
)
Value:
do { \
B0 ^= F(B1 ^ B2 ^ B3 ^ m_RK[k0]); \
B1 ^= F(B0 ^ B2 ^ B3 ^ m_RK[k1]); \
B2 ^= F(B0 ^ B1 ^ B3 ^ m_RK[k2]); \
B3 ^= F(B0 ^ B1 ^ B2 ^ m_RK[k3]); \
} while(0)

Definition at line 113 of file sm4.cpp.

Referenced by Botan::SM4::decrypt_n(), and Botan::SM4::encrypt_n().