Functions
hmac_test.cc File Reference
#include <memory>
#include <string>
#include <vector>
#include <gtest/gtest.h>
#include <openssl/digest.h>
#include <openssl/hmac.h>
#include "../test/file_test.h"
#include "../test/test_util.h"
#include "../test/wycheproof_util.h"
Include dependency graph for hmac_test.cc:

Go to the source code of this file.

Functions

static const EVP_MDGetDigest (const std::string &name)
 
static void RunWycheproofTest (const char *path, const EVP_MD *md)
 
 TEST (HMACTest, TestVectors)
 
 TEST (HMACTest, WycheproofSHA1)
 
 TEST (HMACTest, WycheproofSHA224)
 
 TEST (HMACTest, WycheproofSHA256)
 
 TEST (HMACTest, WycheproofSHA384)
 
 TEST (HMACTest, WycheproofSHA512)
 

Function Documentation

◆ GetDigest()

static const EVP_MD* GetDigest ( const std::string &  name)
static

Definition at line 71 of file hmac_test.cc.

◆ RunWycheproofTest()

static void RunWycheproofTest ( const char *  path,
const EVP_MD md 
)
static

Definition at line 133 of file hmac_test.cc.

◆ TEST() [1/6]

TEST ( HMACTest  ,
TestVectors   
)

Definition at line 88 of file hmac_test.cc.

◆ TEST() [2/6]

TEST ( HMACTest  ,
WycheproofSHA1   
)

Definition at line 161 of file hmac_test.cc.

◆ TEST() [3/6]

TEST ( HMACTest  ,
WycheproofSHA224   
)

Definition at line 166 of file hmac_test.cc.

◆ TEST() [4/6]

TEST ( HMACTest  ,
WycheproofSHA256   
)

Definition at line 171 of file hmac_test.cc.

◆ TEST() [5/6]

TEST ( HMACTest  ,
WycheproofSHA384   
)

Definition at line 176 of file hmac_test.cc.

◆ TEST() [6/6]

TEST ( HMACTest  ,
WycheproofSHA512   
)

Definition at line 181 of file hmac_test.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:19