Botan 3.5.0
Crypto and TLS for C&
Botan::Serpent_F::Key_Inserter Class Referencefinal

#include <serpent_fn.h>

Public Member Functions

 Key_Inserter (const uint32_t *RK)
 
template<typename T >
void operator() (size_t R, T &B0, T &B1, T &B2, T &B3) const
 

Detailed Description

Definition at line 54 of file serpent_fn.h.

Constructor & Destructor Documentation

◆ Key_Inserter()

Botan::Serpent_F::Key_Inserter::Key_Inserter ( const uint32_t * RK)
inline

Definition at line 56 of file serpent_fn.h.

56: m_RK(RK) {}

Member Function Documentation

◆ operator()()

template<typename T >
void Botan::Serpent_F::Key_Inserter::operator() ( size_t R,
T & B0,
T & B1,
T & B2,
T & B3 ) const
inline

Definition at line 59 of file serpent_fn.h.

59 {
60 B0 ^= m_RK[4 * R];
61 B1 ^= m_RK[4 * R + 1];
62 B2 ^= m_RK[4 * R + 2];
63 B3 ^= m_RK[4 * R + 3];
64 }

The documentation for this class was generated from the following file: