SHA-3 hash
Loading...
Searching...
No Matches
Classes | Macros | Functions
sha3.hpp File Reference

Implementation of SHA-3 hash algo (all modes - 224, 384, 256 and 512) More...

#include <cstring>
#include <utility>
#include "constant.hh"
Include dependency graph for sha3.hpp:

Go to the source code of this file.

Classes

class  SHA3< m_mode >
 SHA-3 hash main class. More...
 

Macros

#define UNROLL(A, F)
 macro for compile-time for unroll
 

Functions

template<std::size_t m_mode>
void sha3 (auto &&... args)
 wrapper for calling a SHA-3 class as a function
 

Detailed Description

Implementation of SHA-3 hash algo (all modes - 224, 384, 256 and 512)

Author
https://github.com/gdaneek
See also
https://github.com/gdaneek/sha-3

Macro Definition Documentation

◆ UNROLL

#define UNROLL (   A,
 
)
Value:
[&]<uint64_t... I>(std::index_sequence<I...>) __attribute__((always_inline)) { \
((A), ...); \
} (std::make_index_sequence<(F)>());

macro for compile-time for unroll

Parameters
Aexpression for unrolling
Funroll factor