Classes | Functions | Variables
speed.cc File Reference
#include <algorithm>
#include <functional>
#include <memory>
#include <string>
#include <vector>
#include <assert.h>
#include <errno.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/aead.h>
#include <openssl/aes.h>
#include <openssl/base64.h>
#include <openssl/bn.h>
#include <openssl/curve25519.h>
#include <openssl/crypto.h>
#include <openssl/digest.h>
#include <openssl/err.h>
#include <openssl/ec.h>
#include <openssl/ecdsa.h>
#include <openssl/ec_key.h>
#include <openssl/evp.h>
#include <openssl/hrss.h>
#include <openssl/mem.h>
#include <openssl/nid.h>
#include <openssl/rand.h>
#include <openssl/rsa.h>
#include <openssl/trust_token.h>
#include <time.h>
#include "../crypto/ec_extra/internal.h"
#include "../crypto/fipsmodule/ec/internal.h"
#include "../crypto/internal.h"
#include "../crypto/trust_token/internal.h"
#include "internal.h"
Include dependency graph for speed.cc:

Go to the source code of this file.

Classes

struct  TimeResults
 

Functions

static std::string ChunkLenSuffix (size_t chunk_len)
 
bool Speed (const std::vector< std::string > &args)
 
static bool Speed25519 (const std::string &selected)
 
static bool SpeedAEAD (const EVP_AEAD *aead, const std::string &name, size_t ad_len, const std::string &selected)
 
static bool SpeedAEADChunk (const EVP_AEAD *aead, std::string name, size_t chunk_len, size_t ad_len, evp_aead_direction_t direction)
 
static bool SpeedAEADOpen (const EVP_AEAD *aead, const std::string &name, size_t ad_len, const std::string &selected)
 
static bool SpeedAESBlock (const std::string &name, unsigned bits, const std::string &selected)
 
static bool SpeedBase64 (const std::string &selected)
 
static bool SpeedECDH (const std::string &selected)
 
static bool SpeedECDHCurve (const std::string &name, int nid, const std::string &selected)
 
static bool SpeedECDSA (const std::string &selected)
 
static bool SpeedECDSACurve (const std::string &name, int nid, const std::string &selected)
 
static bool SpeedHash (const EVP_MD *md, const std::string &name, const std::string &selected)
 
static bool SpeedHashChunk (const EVP_MD *md, std::string name, size_t chunk_len)
 
static bool SpeedHashToCurve (const std::string &selected)
 
static bool SpeedHRSS (const std::string &selected)
 
static bool SpeedRandom (const std::string &selected)
 
static bool SpeedRandomChunk (std::string name, size_t chunk_len)
 
static bool SpeedRSA (const std::string &selected)
 
static bool SpeedRSAKeyGen (const std::string &selected)
 
static bool SpeedScrypt (const std::string &selected)
 
static bool SpeedSPAKE2 (const std::string &selected)
 
static bool SpeedTrustToken (std::string name, const TRUST_TOKEN_METHOD *method, size_t batchsize, const std::string &selected)
 
static uint64_t time_now ()
 
static bool TimeFunction (TimeResults *results, std::function< bool()> func)
 
static TRUST_TOKEN_PRETOKENtrust_token_pretoken_dup (TRUST_TOKEN_PRETOKEN *in)
 

Variables

static std::vector< size_t > g_chunk_lengths = {16, 256, 1350, 8192, 16384}
 
static bool g_print_json = false
 
static uint64_t g_timeout_seconds = 1
 
static const struct argument kArguments []
 

Function Documentation

◆ ChunkLenSuffix()

static std::string ChunkLenSuffix ( size_t  chunk_len)
static

Definition at line 356 of file speed.cc.

◆ Speed()

bool Speed ( const std::vector< std::string > &  args)

Definition at line 1327 of file speed.cc.

◆ Speed25519()

static bool Speed25519 ( const std::string &  selected)
static

Definition at line 751 of file speed.cc.

◆ SpeedAEAD()

static bool SpeedAEAD ( const EVP_AEAD aead,
const std::string &  name,
size_t  ad_len,
const std::string &  selected 
)
static

Definition at line 463 of file speed.cc.

◆ SpeedAEADChunk()

static bool SpeedAEADChunk ( const EVP_AEAD aead,
std::string  name,
size_t  chunk_len,
size_t  ad_len,
evp_aead_direction_t  direction 
)
static

Definition at line 363 of file speed.cc.

◆ SpeedAEADOpen()

static bool SpeedAEADOpen ( const EVP_AEAD aead,
const std::string &  name,
size_t  ad_len,
const std::string &  selected 
)
static

Definition at line 477 of file speed.cc.

◆ SpeedAESBlock()

static bool SpeedAESBlock ( const std::string &  name,
unsigned  bits,
const std::string &  selected 
)
static

Definition at line 492 of file speed.cc.

◆ SpeedBase64()

static bool SpeedBase64 ( const std::string &  selected)
static

Definition at line 996 of file speed.cc.

◆ SpeedECDH()

static bool SpeedECDH ( const std::string &  selected)
static

Definition at line 737 of file speed.cc.

◆ SpeedECDHCurve()

static bool SpeedECDHCurve ( const std::string &  name,
int  nid,
const std::string &  selected 
)
static

Definition at line 638 of file speed.cc.

◆ SpeedECDSA()

static bool SpeedECDSA ( const std::string &  selected)
static

Definition at line 744 of file speed.cc.

◆ SpeedECDSACurve()

static bool SpeedECDSACurve ( const std::string &  name,
int  nid,
const std::string &  selected 
)
static

Definition at line 695 of file speed.cc.

◆ SpeedHash()

static bool SpeedHash ( const EVP_MD md,
const std::string &  name,
const std::string &  selected 
)
static

Definition at line 589 of file speed.cc.

◆ SpeedHashChunk()

static bool SpeedHashChunk ( const EVP_MD md,
std::string  name,
size_t  chunk_len 
)
static

Definition at line 561 of file speed.cc.

◆ SpeedHashToCurve()

static bool SpeedHashToCurve ( const std::string &  selected)
static

Definition at line 956 of file speed.cc.

◆ SpeedHRSS()

static bool SpeedHRSS ( const std::string &  selected)
static

Definition at line 902 of file speed.cc.

◆ SpeedRandom()

static bool SpeedRandom ( const std::string &  selected)
static

Definition at line 624 of file speed.cc.

◆ SpeedRandomChunk()

static bool SpeedRandomChunk ( std::string  name,
size_t  chunk_len 
)
static

Definition at line 604 of file speed.cc.

◆ SpeedRSA()

static bool SpeedRSA ( const std::string &  selected)
static

Definition at line 192 of file speed.cc.

◆ SpeedRSAKeyGen()

static bool SpeedRSAKeyGen ( const std::string &  selected)
static

Definition at line 289 of file speed.cc.

◆ SpeedScrypt()

static bool SpeedScrypt ( const std::string &  selected)
static

Definition at line 867 of file speed.cc.

◆ SpeedSPAKE2()

static bool SpeedSPAKE2 ( const std::string &  selected)
static

Definition at line 820 of file speed.cc.

◆ SpeedTrustToken()

static bool SpeedTrustToken ( std::string  name,
const TRUST_TOKEN_METHOD method,
size_t  batchsize,
const std::string &  selected 
)
static

Definition at line 1048 of file speed.cc.

◆ time_now()

static uint64_t time_now ( )
static

Definition at line 134 of file speed.cc.

◆ TimeFunction()

static bool TimeFunction ( TimeResults results,
std::function< bool()>  func 
)
static

Definition at line 148 of file speed.cc.

◆ trust_token_pretoken_dup()

static TRUST_TOKEN_PRETOKEN* trust_token_pretoken_dup ( TRUST_TOKEN_PRETOKEN in)
static

Definition at line 1038 of file speed.cc.

Variable Documentation

◆ g_chunk_lengths

std::vector<size_t> g_chunk_lengths = {16, 256, 1350, 8192, 16384}
static

Definition at line 146 of file speed.cc.

◆ g_print_json

bool g_print_json = false
static

Definition at line 63 of file speed.cc.

◆ g_timeout_seconds

uint64_t g_timeout_seconds = 1
static

Definition at line 145 of file speed.cc.

◆ kArguments

const struct argument kArguments[]
static

Definition at line 1293 of file speed.cc.



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