#include <openssl/evp.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <map>
#include <string>
#include <utility>
#include <vector>
#include <gtest/gtest.h>
#include <openssl/bytestring.h>
#include <openssl/crypto.h>
#include <openssl/digest.h>
#include <openssl/dsa.h>
#include <openssl/err.h>
#include <openssl/rsa.h>
#include "../test/file_test.h"
#include "../test/test_util.h"
#include "../test/wycheproof_util.h"
Go to the source code of this file.
Typedefs | |
using | KeyMap = std::map< std::string, bssl::UniquePtr< EVP_PKEY > > |
Functions | |
static const EVP_MD * | GetDigest (FileTest *t, const std::string &name) |
static int | GetKeyType (FileTest *t, const std::string &name) |
static int | GetRSAPadding (FileTest *t, int *out, const std::string &name) |
static bool | ImportKey (FileTest *t, KeyMap *key_map, EVP_PKEY *(*parse_func)(CBS *cbs), int(*marshal_func)(CBB *cbb, const EVP_PKEY *key)) |
static void | RunWycheproofDecryptTest (const char *path, std::function< void(FileTest *, EVP_PKEY_CTX *)> setup_cb) |
static void | RunWycheproofOAEPTest (const char *path) |
static void | RunWycheproofPKCS1DecryptTest (const char *path) |
static void | RunWycheproofVerifyTest (const char *path) |
static bool | SetupContext (FileTest *t, KeyMap *key_map, EVP_PKEY_CTX *ctx) |
TEST (EVPTest, TestVectors) | |
TEST (EVPTest, WycheproofDSA) | |
TEST (EVPTest, WycheproofECDSAP224) | |
TEST (EVPTest, WycheproofECDSAP256) | |
TEST (EVPTest, WycheproofECDSAP384) | |
TEST (EVPTest, WycheproofECDSAP521) | |
TEST (EVPTest, WycheproofEdDSA) | |
TEST (EVPTest, WycheproofRSAOAEP2048) | |
TEST (EVPTest, WycheproofRSAOAEP3072) | |
TEST (EVPTest, WycheproofRSAOAEP4096) | |
TEST (EVPTest, WycheproofRSAOAEPMisc) | |
TEST (EVPTest, WycheproofRSAPKCS1) | |
TEST (EVPTest, WycheproofRSAPKCS1Decrypt) | |
TEST (EVPTest, WycheproofRSAPKCS1Sign) | |
TEST (EVPTest, WycheproofRSAPSS) | |
static bool | TestDerive (FileTest *t, KeyMap *key_map, EVP_PKEY *key) |
static bool | TestEVP (FileTest *t, KeyMap *key_map) |
Definition at line 145 of file crypto/evp/evp_test.cc.
Definition at line 90 of file crypto/evp/evp_test.cc.
Definition at line 108 of file crypto/evp/evp_test.cc.
Definition at line 128 of file crypto/evp/evp_test.cc.
|
static |
Definition at line 147 of file crypto/evp/evp_test.cc.
|
static |
Definition at line 764 of file crypto/evp/evp_test.cc.
|
static |
Definition at line 802 of file crypto/evp/evp_test.cc.
|
static |
Definition at line 889 of file crypto/evp/evp_test.cc.
|
static |
Definition at line 570 of file crypto/evp/evp_test.cc.
|
static |
Definition at line 250 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
TestVectors | |||
) |
Definition at line 556 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
WycheproofDSA | |||
) |
Definition at line 641 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
WycheproofECDSAP224 | |||
) |
Definition at line 645 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
WycheproofECDSAP256 | |||
) |
Definition at line 654 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
WycheproofECDSAP384 | |||
) |
Definition at line 661 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
WycheproofECDSAP521 | |||
) |
Definition at line 666 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
WycheproofEdDSA | |||
) |
Definition at line 673 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
WycheproofRSAOAEP2048 | |||
) |
Definition at line 824 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
WycheproofRSAOAEP3072 | |||
) |
Definition at line 854 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
WycheproofRSAOAEP4096 | |||
) |
Definition at line 869 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
WycheproofRSAOAEPMisc | |||
) |
Definition at line 884 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
WycheproofRSAPKCS1 | |||
) |
Definition at line 677 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
WycheproofRSAPKCS1Decrypt | |||
) |
Definition at line 895 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
WycheproofRSAPKCS1Sign | |||
) |
Definition at line 701 of file crypto/evp/evp_test.cc.
TEST | ( | EVPTest | , |
WycheproofRSAPSS | |||
) |
Definition at line 743 of file crypto/evp/evp_test.cc.
Definition at line 304 of file crypto/evp/evp_test.cc.
Definition at line 361 of file crypto/evp/evp_test.cc.