|
OpenVPN 3 Core Library
|
#include <iostream>#include "test_common.hpp"#include <openvpn/buffer/buffer.hpp>#include <openvpn/ssl/sslchoose.hpp>#include <openvpn/crypto/cryptoalgs.hpp>#include <openvpn/crypto/crypto_aead.hpp>#include <openvpn/crypto/crypto_aead_epoch.hpp>#include <openvpn/crypto/data_epoch.hpp>#include <openvpn/crypto/cryptodcsel.hpp>#include <cstring>Go to the source code of this file.
Classes | |
| class | DataChannelEpochTest |
| class | EpochTest |
Functions | |
| TEST (Crypto, Hmac) | |
| static openvpn::Frame::Context | frame_ctx () |
| openvpn::CryptoDCInstance::Ptr | create_dctest_instance (bool use_epoch) |
| void | test_datachannel_crypto (bool use_epoch) |
| TEST (Crypto, TestEpochIterateKey) | |
| TEST (Crypto, EpochDeriveDataKeys) | |
| TEST (Crypto, AeadCipherMovable) | |
| TEST (Crypto, DcaeadDataV2) | |
| TEST (Crypto, DcaeadEpochData) | |
| TEST (Crypto, HkdfExpandTesta1) | |
| TEST (Crypto, HkdfExpandTesta2) | |
| TEST (Crypto, OvpnLabelExpandTest) | |
| TEST (Crypto, HkdfExpandTesta3) | |
| TEST_F (EpochTest, KeyGeneration) | |
| TEST_F (EpochTest, KeyRotation) | |
| TEST_F (EpochTest, KeyReceiveLookup) | |
| TEST_F (EpochTest, KeyOverflow) | |
Variables | |
| static uint8_t | testkey [20] = {0x0b, 0x00} |
| static uint8_t | goodhash [20] |
| static const char * | ipsumlorem |
| openvpn::CryptoDCInstance::Ptr create_dctest_instance | ( | bool | use_epoch | ) |
|
static |
| TEST | ( | Crypto | , |
| AeadCipherMovable | |||
| ) |
Definition at line 308 of file test_crypto.cpp.
| TEST | ( | Crypto | , |
| DcaeadDataV2 | |||
| ) |
Definition at line 351 of file test_crypto.cpp.
| TEST | ( | Crypto | , |
| DcaeadEpochData | |||
| ) |
Definition at line 356 of file test_crypto.cpp.
| TEST | ( | Crypto | , |
| EpochDeriveDataKeys | |||
| ) |
Definition at line 279 of file test_crypto.cpp.
| TEST | ( | Crypto | , |
| HkdfExpandTesta1 | |||
| ) |
Definition at line 362 of file test_crypto.cpp.
| TEST | ( | Crypto | , |
| HkdfExpandTesta2 | |||
| ) |
Definition at line 392 of file test_crypto.cpp.
| TEST | ( | Crypto | , |
| HkdfExpandTesta3 | |||
| ) |
Definition at line 458 of file test_crypto.cpp.
| TEST | ( | Crypto | , |
| Hmac | |||
| ) |
Definition at line 39 of file test_crypto.cpp.
| TEST | ( | Crypto | , |
| OvpnLabelExpandTest | |||
| ) |
Definition at line 437 of file test_crypto.cpp.
| TEST | ( | Crypto | , |
| TestEpochIterateKey | |||
| ) |
Definition at line 218 of file test_crypto.cpp.
| void test_datachannel_crypto | ( | bool | use_epoch | ) |
| TEST_F | ( | EpochTest | , |
| KeyGeneration | |||
| ) |
Definition at line 543 of file test_crypto.cpp.
| TEST_F | ( | EpochTest | , |
| KeyOverflow | |||
| ) |
Definition at line 648 of file test_crypto.cpp.
| TEST_F | ( | EpochTest | , |
| KeyReceiveLookup | |||
| ) |
Definition at line 595 of file test_crypto.cpp.
| TEST_F | ( | EpochTest | , |
| KeyRotation | |||
| ) |
Definition at line 553 of file test_crypto.cpp.
|
static |
Definition at line 27 of file test_crypto.cpp.
|
static |
Definition at line 35 of file test_crypto.cpp.
|
static |
Definition at line 26 of file test_crypto.cpp.