Typedefs | Functions
crypto/evp/evp_test.cc File Reference
#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"
Include dependency graph for crypto/evp/evp_test.cc:

Go to the source code of this file.

Typedefs

using KeyMap = std::map< std::string, bssl::UniquePtr< EVP_PKEY > >
 

Functions

static const EVP_MDGetDigest (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)
 

Typedef Documentation

◆ KeyMap

using KeyMap = std::map<std::string, bssl::UniquePtr<EVP_PKEY> >

Definition at line 145 of file crypto/evp/evp_test.cc.

Function Documentation

◆ GetDigest()

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

Definition at line 90 of file crypto/evp/evp_test.cc.

◆ GetKeyType()

static int GetKeyType ( FileTest t,
const std::string &  name 
)
static

Definition at line 108 of file crypto/evp/evp_test.cc.

◆ GetRSAPadding()

static int GetRSAPadding ( FileTest t,
int out,
const std::string &  name 
)
static

Definition at line 128 of file crypto/evp/evp_test.cc.

◆ ImportKey()

static bool ImportKey ( FileTest t,
KeyMap key_map,
EVP_PKEY *(*)(CBS *cbs parse_func,
int(*)(CBB *cbb, const EVP_PKEY *key marshal_func 
)
static

Definition at line 147 of file crypto/evp/evp_test.cc.

◆ RunWycheproofDecryptTest()

static void RunWycheproofDecryptTest ( const char *  path,
std::function< void(FileTest *, EVP_PKEY_CTX *)>  setup_cb 
)
static

Definition at line 764 of file crypto/evp/evp_test.cc.

◆ RunWycheproofOAEPTest()

static void RunWycheproofOAEPTest ( const char *  path)
static

Definition at line 802 of file crypto/evp/evp_test.cc.

◆ RunWycheproofPKCS1DecryptTest()

static void RunWycheproofPKCS1DecryptTest ( const char *  path)
static

Definition at line 889 of file crypto/evp/evp_test.cc.

◆ RunWycheproofVerifyTest()

static void RunWycheproofVerifyTest ( const char *  path)
static

Definition at line 570 of file crypto/evp/evp_test.cc.

◆ SetupContext()

static bool SetupContext ( FileTest t,
KeyMap key_map,
EVP_PKEY_CTX ctx 
)
static

Definition at line 250 of file crypto/evp/evp_test.cc.

◆ TEST() [1/15]

TEST ( EVPTest  ,
TestVectors   
)

Definition at line 556 of file crypto/evp/evp_test.cc.

◆ TEST() [2/15]

TEST ( EVPTest  ,
WycheproofDSA   
)

Definition at line 641 of file crypto/evp/evp_test.cc.

◆ TEST() [3/15]

TEST ( EVPTest  ,
WycheproofECDSAP224   
)

Definition at line 645 of file crypto/evp/evp_test.cc.

◆ TEST() [4/15]

TEST ( EVPTest  ,
WycheproofECDSAP256   
)

Definition at line 654 of file crypto/evp/evp_test.cc.

◆ TEST() [5/15]

TEST ( EVPTest  ,
WycheproofECDSAP384   
)

Definition at line 661 of file crypto/evp/evp_test.cc.

◆ TEST() [6/15]

TEST ( EVPTest  ,
WycheproofECDSAP521   
)

Definition at line 666 of file crypto/evp/evp_test.cc.

◆ TEST() [7/15]

TEST ( EVPTest  ,
WycheproofEdDSA   
)

Definition at line 673 of file crypto/evp/evp_test.cc.

◆ TEST() [8/15]

TEST ( EVPTest  ,
WycheproofRSAOAEP2048   
)

Definition at line 824 of file crypto/evp/evp_test.cc.

◆ TEST() [9/15]

TEST ( EVPTest  ,
WycheproofRSAOAEP3072   
)

Definition at line 854 of file crypto/evp/evp_test.cc.

◆ TEST() [10/15]

TEST ( EVPTest  ,
WycheproofRSAOAEP4096   
)

Definition at line 869 of file crypto/evp/evp_test.cc.

◆ TEST() [11/15]

TEST ( EVPTest  ,
WycheproofRSAOAEPMisc   
)

Definition at line 884 of file crypto/evp/evp_test.cc.

◆ TEST() [12/15]

TEST ( EVPTest  ,
WycheproofRSAPKCS1   
)

Definition at line 677 of file crypto/evp/evp_test.cc.

◆ TEST() [13/15]

TEST ( EVPTest  ,
WycheproofRSAPKCS1Decrypt   
)

Definition at line 895 of file crypto/evp/evp_test.cc.

◆ TEST() [14/15]

TEST ( EVPTest  ,
WycheproofRSAPKCS1Sign   
)

Definition at line 701 of file crypto/evp/evp_test.cc.

◆ TEST() [15/15]

TEST ( EVPTest  ,
WycheproofRSAPSS   
)

Definition at line 743 of file crypto/evp/evp_test.cc.

◆ TestDerive()

static bool TestDerive ( FileTest t,
KeyMap key_map,
EVP_PKEY key 
)
static

Definition at line 304 of file crypto/evp/evp_test.cc.

◆ TestEVP()

static bool TestEVP ( FileTest t,
KeyMap key_map 
)
static

Definition at line 361 of file crypto/evp/evp_test.cc.



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