Monero
Loading...
Searching...
No Matches
hmac_keccak.cpp File Reference
#include "gtest/gtest.h"
#include "../io.h"
#include "crypto/hmac-keccak.h"
Include dependency graph for hmac_keccak.cpp:

Macros

#define KECCAK_BLOCKLEN   136

Functions

static void test_keccak_hmac (const size_t *chunks)
 TEST (keccak_hmac, nullptr)
 TEST (keccak_hmac, 1)
 TEST (keccak_hmac, 1_20)
 TEST (keccak_hmac, 136_1)
 TEST (keccak_hmac, 137_1)

Variables

struct { 
   const char *   key 
   const char *   inp 
   const char *   res 
keccak_hmac_vectors []

Macro Definition Documentation

◆ KECCAK_BLOCKLEN

#define KECCAK_BLOCKLEN   136

Function Documentation

◆ TEST() [1/5]

TEST ( keccak_hmac ,
1  )

◆ TEST() [2/5]

TEST ( keccak_hmac ,
136_1  )

◆ TEST() [3/5]

TEST ( keccak_hmac ,
137_1  )

◆ TEST() [4/5]

TEST ( keccak_hmac ,
1_20  )

◆ TEST() [5/5]

TEST ( keccak_hmac ,
nullptr  )

◆ test_keccak_hmac()

void test_keccak_hmac ( const size_t * chunks)
static

Variable Documentation

◆ inp

const char* inp

◆ [struct]

const struct { ... } keccak_hmac_vectors[]

◆ key

const char* key

◆ res

const char* res