#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"
Go to the source code of this file.
|
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) |
|
◆ RunCAVPTest()
◆ TEST() [1/6]
TEST |
( |
CMACTest |
, |
|
|
CAVP3DES |
|
|
) |
| |
◆ TEST() [2/6]
TEST |
( |
CMACTest |
, |
|
|
CAVPAES128 |
|
|
) |
| |
◆ TEST() [3/6]
TEST |
( |
CMACTest |
, |
|
|
CAVPAES192 |
|
|
) |
| |
◆ TEST() [4/6]
TEST |
( |
CMACTest |
, |
|
|
CAVPAES256 |
|
|
) |
| |
◆ TEST() [5/6]
TEST |
( |
CMACTest |
, |
|
|
RFC4493TestVectors |
|
|
) |
| |
◆ TEST() [6/6]
TEST |
( |
CMACTest |
, |
|
|
Wycheproof |
|
|
) |
| |
◆ test()