Functions
cmac_test.cc File Reference
#include <stdio.h>
#include <algorithm>
#include <vector>
#include <gtest/gtest.h>
#include <openssl/cipher.h>
#include <openssl/cmac.h>
#include <openssl/mem.h>
#include "../test/file_test.h"
#include "../test/test_util.h"
#include "../test/wycheproof_util.h"
Include dependency graph for cmac_test.cc:

Go to the source code of this file.

Functions

static void RunCAVPTest (const char *path, const EVP_CIPHER *cipher, bool is_3des)
 
 TEST (CMACTest, CAVP3DES)
 
 TEST (CMACTest, CAVPAES128)
 
 TEST (CMACTest, CAVPAES192)
 
 TEST (CMACTest, CAVPAES256)
 
 TEST (CMACTest, RFC4493TestVectors)
 
 TEST (CMACTest, Wycheproof)
 
static void test (const char *name, const uint8_t *key, size_t key_len, const uint8_t *msg, size_t msg_len, const uint8_t *expected)
 

Function Documentation

◆ RunCAVPTest()

static void RunCAVPTest ( const char *  path,
const EVP_CIPHER cipher,
bool  is_3des 
)
static

Definition at line 187 of file cmac_test.cc.

◆ TEST() [1/6]

TEST ( CMACTest  ,
CAVP3DES   
)

Definition at line 265 of file cmac_test.cc.

◆ TEST() [2/6]

TEST ( CMACTest  ,
CAVPAES128   
)

Definition at line 250 of file cmac_test.cc.

◆ TEST() [3/6]

TEST ( CMACTest  ,
CAVPAES192   
)

Definition at line 255 of file cmac_test.cc.

◆ TEST() [4/6]

TEST ( CMACTest  ,
CAVPAES256   
)

Definition at line 260 of file cmac_test.cc.

◆ TEST() [5/6]

TEST ( CMACTest  ,
RFC4493TestVectors   
)

Definition at line 74 of file cmac_test.cc.

◆ TEST() [6/6]

TEST ( CMACTest  ,
Wycheproof   
)

Definition at line 123 of file cmac_test.cc.

◆ test()

static void test ( const char *  name,
const uint8_t key,
size_t  key_len,
const uint8_t msg,
size_t  msg_len,
const uint8_t expected 
)
static

Definition at line 31 of file cmac_test.cc.



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