#include <stdlib.h>
#include <string>
#include <vector>
#include <openssl/aead.h>
#include <openssl/cipher.h>
#include "../crypto/test/file_test.h"
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< BIGNUM > | GetBIGNUM (FileTest *t, const char *attribute) |
const EVP_CIPHER * | GetCipher (const std::string &name) |
const EVP_MD * | GetDigestFromInstruction (FileTest *t) |
int | GetECGroupNIDFromInstruction (FileTest *t, const char **out_str=nullptr) |
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.
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.
Definition at line 136 of file cavp_aes_gcm_test.cc.
Definition at line 189 of file cavp_aes_test.cc.
Definition at line 95 of file cavp_ctr_drbg_test.cc.
Definition at line 79 of file cavp_ecdsa2_keypair_test.cc.
Definition at line 53 of file cavp_ecdsa2_pkv_test.cc.
Definition at line 100 of file cavp_ecdsa2_siggen_test.cc.
Definition at line 71 of file cavp_ecdsa2_sigver_test.cc.
Definition at line 95 of file cavp_hmac_test.cc.
Definition at line 131 of file cavp_kas_test.cc.
Definition at line 137 of file cavp_keywrap_test.cc.
Definition at line 80 of file cavp_rsa2_keygen_test.cc.
Definition at line 104 of file cavp_rsa2_siggen_test.cc.
Definition at line 101 of file cavp_rsa2_sigver_test.cc.
Definition at line 89 of file cavp_sha_monte_test.cc.
Definition at line 83 of file cavp_sha_test.cc.
Definition at line 303 of file cavp_tdes_test.cc.
Definition at line 101 of file cavp_tlskdf_test.cc.
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.
void EchoComment | ( | const std::string & | comment | ) |
Definition at line 218 of file cavp_test_util.cc.
Definition at line 158 of file cavp_test_util.cc.
const EVP_CIPHER* GetCipher | ( | const std::string & | name | ) |
Definition at line 23 of file cavp_test_util.cc.
Definition at line 198 of file cavp_test_util.cc.
Definition at line 172 of file cavp_test_util.cc.