|
CCF
|
#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 |
| CurveID | get_curve_id () const override |
| 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) | |
| ~EdDSAPublicKey_OpenSSL () override | |
| Pem | public_key_pem () const override |
| bool | verify (const uint8_t *contents, size_t contents_size, const uint8_t *sig, size_t signature_size) override |
| CurveID | get_curve_id () const override |
| 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 |
| ccf::crypto::EdDSAKeyPair_OpenSSL::EdDSAKeyPair_OpenSSL | ( | CurveID | curve_id | ) |
| ccf::crypto::EdDSAKeyPair_OpenSSL::EdDSAKeyPair_OpenSSL | ( | const Pem & | pem | ) |
| ccf::crypto::EdDSAKeyPair_OpenSSL::EdDSAKeyPair_OpenSSL | ( | const JsonWebKeyEdDSAPrivate & | jwk | ) |
|
overridevirtual |
Implements ccf::crypto::EdDSAPublicKey.
|
overridevirtual |
Implements ccf::crypto::EdDSAKeyPair.
|
overridevirtual |
Get the private key in PEM format
Implements ccf::crypto::EdDSAKeyPair.
|
overridevirtual |
Implements ccf::crypto::EdDSAPublicKey.
|
overridevirtual |
Implements ccf::crypto::EdDSAKeyPair.
|
overridevirtual |
Implements ccf::crypto::EdDSAPublicKey.