Functions
cavp_test_util.h File Reference
#include <stdlib.h>
#include <string>
#include <vector>
#include <openssl/aead.h>
#include <openssl/cipher.h>
#include "../crypto/test/file_test.h"
Include dependency graph for cavp_test_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool AEADDecrypt (const EVP_AEAD *aead, std::vector< uint8_t > *pt, size_t pt_len, const std::vector< uint8_t > &key, const std::vector< uint8_t > &aad, const std::vector< uint8_t > &ct, const std::vector< uint8_t > &tag, const std::vector< uint8_t > &iv)
 
bool AEADEncrypt (const EVP_AEAD *aead, std::vector< uint8_t > *ct, std::vector< uint8_t > *tag, size_t tag_len, const std::vector< uint8_t > &key, const std::vector< uint8_t > &pt, const std::vector< uint8_t > &aad, const std::vector< uint8_t > &iv)
 
int cavp_aes_gcm_test_main (int argc, char **argv)
 
int cavp_aes_test_main (int argc, char **argv)
 
int cavp_ctr_drbg_test_main (int argc, char **argv)
 
int cavp_ecdsa2_keypair_test_main (int argc, char **argv)
 
int cavp_ecdsa2_pkv_test_main (int argc, char **argv)
 
int cavp_ecdsa2_siggen_test_main (int argc, char **argv)
 
int cavp_ecdsa2_sigver_test_main (int argc, char **argv)
 
int cavp_hmac_test_main (int argc, char **argv)
 
int cavp_kas_test_main (int argc, char **argv)
 
int cavp_keywrap_test_main (int argc, char **argv)
 
int cavp_rsa2_keygen_test_main (int argc, char **argv)
 
int cavp_rsa2_siggen_test_main (int argc, char **argv)
 
int cavp_rsa2_sigver_test_main (int argc, char **argv)
 
int cavp_sha_monte_test_main (int argc, char **argv)
 
int cavp_sha_test_main (int argc, char **argv)
 
int cavp_tdes_test_main (int argc, char **argv)
 
int cavp_tlskdf_test_main (int argc, char **argv)
 
bool CipherOperation (const EVP_CIPHER *cipher, std::vector< uint8_t > *out, bool encrypt, const std::vector< uint8_t > &key, const std::vector< uint8_t > &iv, const std::vector< uint8_t > &in)
 
void EchoComment (const std::string &comment)
 
bssl::UniquePtr< BIGNUMGetBIGNUM (FileTest *t, const char *attribute)
 
const EVP_CIPHERGetCipher (const std::string &name)
 
const EVP_MDGetDigestFromInstruction (FileTest *t)
 
int GetECGroupNIDFromInstruction (FileTest *t, const char **out_str=nullptr)
 

Function Documentation

◆ AEADDecrypt()

bool AEADDecrypt ( const EVP_AEAD aead,
std::vector< uint8_t > *  pt,
size_t  pt_len,
const std::vector< uint8_t > &  key,
const std::vector< uint8_t > &  aad,
const std::vector< uint8_t > &  ct,
const std::vector< uint8_t > &  tag,
const std::vector< uint8_t > &  iv 
)

Definition at line 125 of file cavp_test_util.cc.

◆ AEADEncrypt()

bool AEADEncrypt ( const EVP_AEAD aead,
std::vector< uint8_t > *  ct,
std::vector< uint8_t > *  tag,
size_t  tag_len,
const std::vector< uint8_t > &  key,
const std::vector< uint8_t > &  pt,
const std::vector< uint8_t > &  aad,
const std::vector< uint8_t > &  iv 
)

Definition at line 97 of file cavp_test_util.cc.

◆ cavp_aes_gcm_test_main()

int cavp_aes_gcm_test_main ( int  argc,
char **  argv 
)

Definition at line 136 of file cavp_aes_gcm_test.cc.

◆ cavp_aes_test_main()

int cavp_aes_test_main ( int  argc,
char **  argv 
)

Definition at line 189 of file cavp_aes_test.cc.

◆ cavp_ctr_drbg_test_main()

int cavp_ctr_drbg_test_main ( int  argc,
char **  argv 
)

Definition at line 95 of file cavp_ctr_drbg_test.cc.

◆ cavp_ecdsa2_keypair_test_main()

int cavp_ecdsa2_keypair_test_main ( int  argc,
char **  argv 
)

Definition at line 79 of file cavp_ecdsa2_keypair_test.cc.

◆ cavp_ecdsa2_pkv_test_main()

int cavp_ecdsa2_pkv_test_main ( int  argc,
char **  argv 
)

Definition at line 53 of file cavp_ecdsa2_pkv_test.cc.

◆ cavp_ecdsa2_siggen_test_main()

int cavp_ecdsa2_siggen_test_main ( int  argc,
char **  argv 
)

Definition at line 100 of file cavp_ecdsa2_siggen_test.cc.

◆ cavp_ecdsa2_sigver_test_main()

int cavp_ecdsa2_sigver_test_main ( int  argc,
char **  argv 
)

Definition at line 71 of file cavp_ecdsa2_sigver_test.cc.

◆ cavp_hmac_test_main()

int cavp_hmac_test_main ( int  argc,
char **  argv 
)

Definition at line 95 of file cavp_hmac_test.cc.

◆ cavp_kas_test_main()

int cavp_kas_test_main ( int  argc,
char **  argv 
)

Definition at line 131 of file cavp_kas_test.cc.

◆ cavp_keywrap_test_main()

int cavp_keywrap_test_main ( int  argc,
char **  argv 
)

Definition at line 137 of file cavp_keywrap_test.cc.

◆ cavp_rsa2_keygen_test_main()

int cavp_rsa2_keygen_test_main ( int  argc,
char **  argv 
)

Definition at line 80 of file cavp_rsa2_keygen_test.cc.

◆ cavp_rsa2_siggen_test_main()

int cavp_rsa2_siggen_test_main ( int  argc,
char **  argv 
)

Definition at line 104 of file cavp_rsa2_siggen_test.cc.

◆ cavp_rsa2_sigver_test_main()

int cavp_rsa2_sigver_test_main ( int  argc,
char **  argv 
)

Definition at line 101 of file cavp_rsa2_sigver_test.cc.

◆ cavp_sha_monte_test_main()

int cavp_sha_monte_test_main ( int  argc,
char **  argv 
)

Definition at line 89 of file cavp_sha_monte_test.cc.

◆ cavp_sha_test_main()

int cavp_sha_test_main ( int  argc,
char **  argv 
)

Definition at line 83 of file cavp_sha_test.cc.

◆ cavp_tdes_test_main()

int cavp_tdes_test_main ( int  argc,
char **  argv 
)

Definition at line 303 of file cavp_tdes_test.cc.

◆ cavp_tlskdf_test_main()

int cavp_tlskdf_test_main ( int  argc,
char **  argv 
)

Definition at line 101 of file cavp_tlskdf_test.cc.

◆ CipherOperation()

bool CipherOperation ( const EVP_CIPHER cipher,
std::vector< uint8_t > *  out,
bool  encrypt,
const std::vector< uint8_t > &  key,
const std::vector< uint8_t > &  iv,
const std::vector< uint8_t > &  in 
)

Definition at line 68 of file cavp_test_util.cc.

◆ EchoComment()

void EchoComment ( const std::string &  comment)

Definition at line 218 of file cavp_test_util.cc.

◆ GetBIGNUM()

bssl::UniquePtr<BIGNUM> GetBIGNUM ( FileTest t,
const char *  attribute 
)

Definition at line 158 of file cavp_test_util.cc.

◆ GetCipher()

const EVP_CIPHER* GetCipher ( const std::string &  name)

Definition at line 23 of file cavp_test_util.cc.

◆ GetDigestFromInstruction()

const EVP_MD* GetDigestFromInstruction ( FileTest t)

Definition at line 198 of file cavp_test_util.cc.

◆ GetECGroupNIDFromInstruction()

int GetECGroupNIDFromInstruction ( FileTest t,
const char **  out_str = nullptr 
)

Definition at line 172 of file cavp_test_util.cc.



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