Classes | Typedefs | Functions | Variables
bssl::acvp Namespace Reference

Classes

class  RequestBuffer
 
class  RequestBufferImpl
 

Typedefs

typedef bool(* Handler) (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
typedef std::function< bool(const std::vector< Span< const uint8_t >> &)> ReplyCallback
 

Functions

template<bool(*)(EVP_AEAD_CTX *ctx, Span< const uint8_t > tag_len_span, Span< const uint8_t > key) SetupFunc>
static bool AEADOpen (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
template<bool(*)(EVP_AEAD_CTX *ctx, Span< const uint8_t > tag_len_span, Span< const uint8_t > key) SetupFunc>
static bool AEADSeal (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
template<int(*)(const uint8_t *key, unsigned bits, AES_KEY *out) SetKey, void(*)(const uint8_t *in, uint8_t *out, const AES_KEY *key) Block>
static bool AES (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
template<int(*)(const uint8_t *key, unsigned bits, AES_KEY *out) SetKey, int Direction>
static bool AES_CBC (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static bool AES_CTR (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static bool AESCCMSetup (EVP_AEAD_CTX *ctx, Span< const uint8_t > tag_len_span, Span< const uint8_t > key)
 
static bool AESGCMSetup (EVP_AEAD_CTX *ctx, Span< const uint8_t > tag_len_span, Span< const uint8_t > key)
 
static bool AESKeyWrapOpen (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static bool AESKeyWrapSeal (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static bool AESKeyWrapSetup (AES_KEY *out, bool decrypt, Span< const uint8_t > key, Span< const uint8_t > input)
 
static bool AESPaddedKeyWrapOpen (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static bool AESPaddedKeyWrapSeal (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static bool AESPaddedKeyWrapSetup (AES_KEY *out, bool decrypt, Span< const uint8_t > key)
 
static std::vector< uint8_tBIGNUMBytes (const BIGNUM *bn)
 
static bssl::UniquePtr< BIGNUMBytesToBIGNUM (Span< const uint8_t > bytes)
 
static std::map< unsigned, bssl::UniquePtr< RSA > > & CachedRSAKeys ()
 
static bool CMAC_AES (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static bool CMAC_AESVerify (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static bool DRBG (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
template<int Nid>
static bool ECDH (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static bool ECDSAKeyGen (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static bool ECDSAKeyVer (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static bool ECDSASigGen (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static bool ECDSASigVer (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static bssl::UniquePtr< EC_KEYECKeyFromName (Span< const uint8_t > name)
 
static bool FFDH (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
Handler FindHandler (Span< const Span< const uint8_t >> args)
 
static bool GetConfig (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static uint32_t GetIterations (const Span< const uint8_t > iterations_bytes)
 
static std::pair< std::vector< uint8_t >, std::vector< uint8_t > > GetPublicKeyBytes (const EC_KEY *key)
 
static RSAGetRSAKey (unsigned bits)
 
template<uint8_t *(*)(const uint8_t *, size_t, uint8_t *) OneShotHash, size_t DigestLength>
static bool Hash (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static const EVP_MDHashFromName (Span< const uint8_t > name)
 
template<uint8_t *(*)(const uint8_t *, size_t, uint8_t *) OneShotHash, size_t DigestLength>
static bool HashMCT (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
template<const EVP_MD * HashFunc>
static bool HMAC (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
Span< const Span< const uint8_t > > ParseArgsFromFd (int fd, RequestBuffer *in_buffer)
 
static bool ReadAll (int fd, void *in_data, size_t data_len)
 
static bool RSAKeyGen (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
template<const EVP_MD * , bool UsePSS>
static bool RSASigGen (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
template<const EVP_MD * , bool UsePSS>
static bool RSASigVer (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
static bool StringEq (Span< const uint8_t > a, const char *b)
 
template<bool Encrypt>
static bool TDES (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
template<bool Encrypt>
static bool TDES_CBC (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
template<const EVP_MD * >
static bool TLSKDF (const Span< const uint8_t > args[], ReplyCallback write_reply)
 
bool WriteReplyToFd (int fd, const std::vector< Span< const uint8_t >> &spans)
 

Variables

struct {
   bool(*   bssl::acvp::handler )(const Span< const uint8_t >
       args[], ReplyCallback
      write_reply)
 
   char   bssl::acvp::name [kMaxNameLength+1]
 
   uint8_t   bssl::acvp::num_expected_args
 
kFunctions []
 
constexpr size_t kMaxArgLength = (1 << 20)
 
constexpr size_t kMaxArgs = 8
 
constexpr size_t kMaxNameLength = 30
 

Typedef Documentation

◆ Handler

typedef bool(* bssl::acvp::Handler) (const Span< const uint8_t > args[], ReplyCallback write_reply)

Definition at line 61 of file modulewrapper.h.

◆ ReplyCallback

Definition at line 55 of file modulewrapper.h.

Function Documentation

◆ AEADOpen()

template<bool(*)(EVP_AEAD_CTX *ctx, Span< const uint8_t > tag_len_span, Span< const uint8_t > key) SetupFunc>
static bool bssl::acvp::AEADOpen ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 492 of file modulewrapper.cc.

◆ AEADSeal()

template<bool(*)(EVP_AEAD_CTX *ctx, Span< const uint8_t > tag_len_span, Span< const uint8_t > key) SetupFunc>
static bool bssl::acvp::AEADSeal ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 462 of file modulewrapper.cc.

◆ AES()

template<int(*)(const uint8_t *key, unsigned bits, AES_KEY *out) SetKey, void(*)(const uint8_t *in, uint8_t *out, const AES_KEY *key) Block>
static bool bssl::acvp::AES ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 287 of file modulewrapper.cc.

◆ AES_CBC()

template<int(*)(const uint8_t *key, unsigned bits, AES_KEY *out) SetKey, int Direction>
static bool bssl::acvp::AES_CBC ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 315 of file modulewrapper.cc.

◆ AES_CTR()

static bool bssl::acvp::AES_CTR ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 362 of file modulewrapper.cc.

◆ AESCCMSetup()

static bool bssl::acvp::AESCCMSetup ( EVP_AEAD_CTX ctx,
Span< const uint8_t tag_len_span,
Span< const uint8_t key 
)
static

Definition at line 429 of file modulewrapper.cc.

◆ AESGCMSetup()

static bool bssl::acvp::AESGCMSetup ( EVP_AEAD_CTX ctx,
Span< const uint8_t tag_len_span,
Span< const uint8_t key 
)
static

Definition at line 393 of file modulewrapper.cc.

◆ AESKeyWrapOpen()

static bool bssl::acvp::AESKeyWrapOpen ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 567 of file modulewrapper.cc.

◆ AESKeyWrapSeal()

static bool bssl::acvp::AESKeyWrapSeal ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 547 of file modulewrapper.cc.

◆ AESKeyWrapSetup()

static bool bssl::acvp::AESKeyWrapSetup ( AES_KEY out,
bool  decrypt,
Span< const uint8_t key,
Span< const uint8_t input 
)
static

Definition at line 532 of file modulewrapper.cc.

◆ AESPaddedKeyWrapOpen()

static bool bssl::acvp::AESPaddedKeyWrapOpen ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 612 of file modulewrapper.cc.

◆ AESPaddedKeyWrapSeal()

static bool bssl::acvp::AESPaddedKeyWrapSeal ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 590 of file modulewrapper.cc.

◆ AESPaddedKeyWrapSetup()

static bool bssl::acvp::AESPaddedKeyWrapSetup ( AES_KEY out,
bool  decrypt,
Span< const uint8_t key 
)
static

Definition at line 521 of file modulewrapper.cc.

◆ BIGNUMBytes()

static std::vector<uint8_t> bssl::acvp::BIGNUMBytes ( const BIGNUM bn)
static

Definition at line 817 of file modulewrapper.cc.

◆ BytesToBIGNUM()

static bssl::UniquePtr<BIGNUM> bssl::acvp::BytesToBIGNUM ( Span< const uint8_t bytes)
static

Definition at line 855 of file modulewrapper.cc.

◆ CachedRSAKeys()

static std::map<unsigned, bssl::UniquePtr<RSA> >& bssl::acvp::CachedRSAKeys ( )
static

Definition at line 995 of file modulewrapper.cc.

◆ CMAC_AES()

static bool bssl::acvp::CMAC_AES ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 962 of file modulewrapper.cc.

◆ CMAC_AESVerify()

static bool bssl::acvp::CMAC_AESVerify ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 981 of file modulewrapper.cc.

◆ DRBG()

static bool bssl::acvp::DRBG ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 761 of file modulewrapper.cc.

◆ ECDH()

template<int Nid>
static bool bssl::acvp::ECDH ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 1145 of file modulewrapper.cc.

◆ ECDSAKeyGen()

static bool bssl::acvp::ECDSAKeyGen ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 840 of file modulewrapper.cc.

◆ ECDSAKeyVer()

static bool bssl::acvp::ECDSAKeyVer ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 861 of file modulewrapper.cc.

◆ ECDSASigGen()

static bool bssl::acvp::ECDSASigGen ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 901 of file modulewrapper.cc.

◆ ECDSASigVer()

static bool bssl::acvp::ECDSASigVer ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 926 of file modulewrapper.cc.

◆ ECKeyFromName()

static bssl::UniquePtr<EC_KEY> bssl::acvp::ECKeyFromName ( Span< const uint8_t name)
static

Definition at line 800 of file modulewrapper.cc.

◆ FFDH()

static bool bssl::acvp::FFDH ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 1207 of file modulewrapper.cc.

◆ FindHandler()

Handler bssl::acvp::FindHandler ( Span< const Span< const uint8_t >>  args)

Definition at line 1333 of file modulewrapper.cc.

◆ GetConfig()

static bool bssl::acvp::GetConfig ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 225 of file modulewrapper.cc.

◆ GetIterations()

static uint32_t bssl::acvp::GetIterations ( const Span< const uint8_t iterations_bytes)
static

Definition at line 264 of file modulewrapper.cc.

◆ GetPublicKeyBytes()

static std::pair<std::vector<uint8_t>, std::vector<uint8_t> > bssl::acvp::GetPublicKeyBytes ( const EC_KEY key)
static

Definition at line 824 of file modulewrapper.cc.

◆ GetRSAKey()

static RSA* bssl::acvp::GetRSAKey ( unsigned  bits)
static

Definition at line 1000 of file modulewrapper.cc.

◆ Hash()

template<uint8_t *(*)(const uint8_t *, size_t, uint8_t *) OneShotHash, size_t DigestLength>
static bool bssl::acvp::Hash ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 234 of file modulewrapper.cc.

◆ HashFromName()

static const EVP_MD* bssl::acvp::HashFromName ( Span< const uint8_t name)
static

Definition at line 885 of file modulewrapper.cc.

◆ HashMCT()

template<uint8_t *(*)(const uint8_t *, size_t, uint8_t *) OneShotHash, size_t DigestLength>
static bool bssl::acvp::HashMCT ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 242 of file modulewrapper.cc.

◆ HMAC()

template<const EVP_MD * HashFunc>
static bool bssl::acvp::HMAC ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 750 of file modulewrapper.cc.

◆ ParseArgsFromFd()

Span< const Span< const uint8_t > > bssl::acvp::ParseArgsFromFd ( int  fd,
RequestBuffer in_buffer 
)

Definition at line 99 of file modulewrapper.cc.

◆ ReadAll()

static bool bssl::acvp::ReadAll ( int  fd,
void *  in_data,
size_t  data_len 
)
static

Definition at line 79 of file modulewrapper.cc.

◆ RSAKeyGen()

static bool bssl::acvp::RSAKeyGen ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 1017 of file modulewrapper.cc.

◆ RSASigGen()

template<const EVP_MD * , bool UsePSS>
static bool bssl::acvp::RSASigGen ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 1044 of file modulewrapper.cc.

◆ RSASigVer()

template<const EVP_MD * , bool UsePSS>
static bool bssl::acvp::RSASigVer ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 1083 of file modulewrapper.cc.

◆ StringEq()

static bool bssl::acvp::StringEq ( Span< const uint8_t a,
const char *  b 
)
static

Definition at line 795 of file modulewrapper.cc.

◆ TDES()

template<bool Encrypt>
static bool bssl::acvp::TDES ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 638 of file modulewrapper.cc.

◆ TDES_CBC()

template<bool Encrypt>
static bool bssl::acvp::TDES_CBC ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 684 of file modulewrapper.cc.

◆ TLSKDF()

template<const EVP_MD * >
static bool bssl::acvp::TLSKDF ( const Span< const uint8_t args[],
ReplyCallback  write_reply 
)
static

Definition at line 1119 of file modulewrapper.cc.

◆ WriteReplyToFd()

bool bssl::acvp::WriteReplyToFd ( int  fd,
const std::vector< Span< const uint8_t >> &  spans 
)

Definition at line 166 of file modulewrapper.cc.

Variable Documentation

◆ handler

bool(* bssl::acvp::handler) (const Span< const uint8_t > args[], ReplyCallback write_reply)

Definition at line 1256 of file modulewrapper.cc.

◆ kFunctions

constexpr { ... } bssl::acvp::kFunctions[]

◆ kMaxArgLength

constexpr size_t bssl::acvp::kMaxArgLength = (1 << 20)
constexpr

Definition at line 62 of file modulewrapper.cc.

◆ kMaxArgs

constexpr size_t bssl::acvp::kMaxArgs = 8
constexpr

Definition at line 29 of file modulewrapper.h.

◆ kMaxNameLength

constexpr size_t bssl::acvp::kMaxNameLength = 30
constexpr

Definition at line 31 of file modulewrapper.h.

◆ name

char bssl::acvp::name[kMaxNameLength+1]

Definition at line 1254 of file modulewrapper.cc.

◆ num_expected_args

uint8_t bssl::acvp::num_expected_args

Definition at line 1255 of file modulewrapper.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:58