Electroneum
hmac_keccak.cpp File Reference
#include "gtest/gtest.h"
#include "../io.h"
#include "crypto/hmac-keccak.h"
Include dependency graph for hmac_keccak.cpp:

Go to the source code of this file.

Macros

#define KECCAK_BLOCKLEN   136
 

Functions

 TEST (keccak_hmac, nullptr)
 
 TEST (keccak_hmac, 1)
 
 TEST (keccak_hmac, 1_20)
 
 TEST (keccak_hmac, 136_1)
 
 TEST (keccak_hmac, 137_1)
 

Macro Definition Documentation

◆ KECCAK_BLOCKLEN

#define KECCAK_BLOCKLEN   136

Definition at line 36 of file hmac_keccak.cpp.

Function Documentation

◆ TEST() [1/5]

TEST ( keccak_hmac  ,
nullptr   
)

Definition at line 126 of file hmac_keccak.cpp.

127 {
128  test_keccak_hmac(nullptr);
129 }

◆ TEST() [2/5]

TEST ( keccak_hmac  ,
 
)

Definition at line 131 of file hmac_keccak.cpp.

132 {
133  static const size_t chunks[] = {1, 0};
134  test_keccak_hmac(chunks);
135 }

◆ TEST() [3/5]

TEST ( keccak_hmac  ,
1_20   
)

Definition at line 137 of file hmac_keccak.cpp.

138 {
139  static const size_t chunks[] = {1, 20, 0};
140  test_keccak_hmac(chunks);
141 }

◆ TEST() [4/5]

TEST ( keccak_hmac  ,
136_1   
)

Definition at line 143 of file hmac_keccak.cpp.

144 {
145  static const size_t chunks[] = {136, 1, 0};
146  test_keccak_hmac(chunks);
147 }

◆ TEST() [5/5]

TEST ( keccak_hmac  ,
137_1   
)

Definition at line 149 of file hmac_keccak.cpp.

150 {
151  static const size_t chunks[] = {137, 1, 0};
152  test_keccak_hmac(chunks);
153 }

Variable Documentation

◆ inp

const char* inp

Definition at line 40 of file hmac_keccak.cpp.

◆ key

const char* key

Definition at line 39 of file hmac_keccak.cpp.

◆ res

const char* res

Definition at line 41 of file hmac_keccak.cpp.