CCF
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ccf::crypto::EdDSAKeyPair_OpenSSL Class Reference

#include <eddsa_key_pair.h>

Inherits ccf::crypto::EdDSAPublicKey_OpenSSL, and ccf::crypto::EdDSAKeyPair.

Public Member Functions

 EdDSAKeyPair_OpenSSL (CurveID curve_id)
 
 EdDSAKeyPair_OpenSSL (const Pem &pem)
 
 EdDSAKeyPair_OpenSSL (const JsonWebKeyEdDSAPrivate &jwk)
 
Pem private_key_pem () const override
 
Pem public_key_pem () const override
 
std::vector< uint8_t > sign (std::span< const uint8_t > d) const override
 
bool verify (const uint8_t *contents, size_t contents_size, const uint8_t *signature, size_t signature_size) override
 
virtual CurveID get_curve_id () const override
 
virtual JsonWebKeyEdDSAPrivate private_key_jwk_eddsa (const std::optional< std::string > &kid=std::nullopt) const override
 
- Public Member Functions inherited from ccf::crypto::EdDSAPublicKey_OpenSSL
 EdDSAPublicKey_OpenSSL ()=default
 
 EdDSAPublicKey_OpenSSL (const Pem &pem)
 
 EdDSAPublicKey_OpenSSL (const JsonWebKeyEdDSAPublic &jwk)
 
virtual ~EdDSAPublicKey_OpenSSL ()
 
virtual JsonWebKeyEdDSAPublic public_key_jwk_eddsa (const std::optional< std::string > &kid=std::nullopt) const override
 
- Public Member Functions inherited from ccf::crypto::EdDSAPublicKey
 EdDSAPublicKey ()=default
 
virtual ~EdDSAPublicKey ()=default
 
 EdDSAPublicKey (const Pem &pem)
 
virtual bool verify (const std::vector< uint8_t > &contents, const std::vector< uint8_t > &signature)
 
- Public Member Functions inherited from ccf::crypto::EdDSAKeyPair
virtual ~EdDSAKeyPair ()=default
 
virtual bool verify (const std::vector< uint8_t > &contents, const std::vector< uint8_t > &signature)
 

Additional Inherited Members

- Static Public Member Functions inherited from ccf::crypto::EdDSAPublicKey_OpenSSL
static int get_openssl_group_id (CurveID gid)
 
- Protected Attributes inherited from ccf::crypto::EdDSAPublicKey_OpenSSL
EVP_PKEY * key = nullptr
 

Constructor & Destructor Documentation

◆ EdDSAKeyPair_OpenSSL() [1/3]

ccf::crypto::EdDSAKeyPair_OpenSSL::EdDSAKeyPair_OpenSSL ( CurveID  curve_id)

◆ EdDSAKeyPair_OpenSSL() [2/3]

ccf::crypto::EdDSAKeyPair_OpenSSL::EdDSAKeyPair_OpenSSL ( const Pem pem)

◆ EdDSAKeyPair_OpenSSL() [3/3]

ccf::crypto::EdDSAKeyPair_OpenSSL::EdDSAKeyPair_OpenSSL ( const JsonWebKeyEdDSAPrivate jwk)

Member Function Documentation

◆ get_curve_id()

CurveID ccf::crypto::EdDSAKeyPair_OpenSSL::get_curve_id ( ) const
overridevirtual

◆ private_key_jwk_eddsa()

JsonWebKeyEdDSAPrivate ccf::crypto::EdDSAKeyPair_OpenSSL::private_key_jwk_eddsa ( const std::optional< std::string > &  kid = std::nullopt) const
overridevirtual

◆ private_key_pem()

Pem ccf::crypto::EdDSAKeyPair_OpenSSL::private_key_pem ( ) const
overridevirtual

Get the private key in PEM format

Implements ccf::crypto::EdDSAKeyPair.

◆ public_key_pem()

Pem ccf::crypto::EdDSAKeyPair_OpenSSL::public_key_pem ( ) const
overridevirtual

◆ sign()

std::vector< uint8_t > ccf::crypto::EdDSAKeyPair_OpenSSL::sign ( std::span< const uint8_t >  d) const
overridevirtual

◆ verify()

bool ccf::crypto::EdDSAKeyPair_OpenSSL::verify ( const uint8_t *  contents,
size_t  contents_size,
const uint8_t *  signature,
size_t  signature_size 
)
overridevirtual

The documentation for this class was generated from the following files: