|
CCF
|
#include <eddsa_public_key.h>
Inherited by ccf::crypto::EdDSAPublicKey_OpenSSL.
Public Member Functions | |
| EdDSAPublicKey ()=default | |
| virtual | ~EdDSAPublicKey ()=default |
| EdDSAPublicKey (const Pem &pem) | |
| virtual Pem | public_key_pem () const =0 |
| virtual bool | verify (const std::vector< uint8_t > &contents, const std::vector< uint8_t > &signature) |
| virtual bool | verify (const uint8_t *contents, size_t contents_size, const uint8_t *signature, size_t signature_size)=0 |
| virtual CurveID | get_curve_id () const =0 |
| virtual JsonWebKeyEdDSAPublic | public_key_jwk_eddsa (const std::optional< std::string > &kid=std::nullopt) const =0 |
|
default |
|
virtualdefault |
| ccf::crypto::EdDSAPublicKey::EdDSAPublicKey | ( | const Pem & | pem | ) |
Construct from PEM
|
pure virtual |
Implemented in ccf::crypto::EdDSAKeyPair_OpenSSL, and ccf::crypto::EdDSAPublicKey_OpenSSL.
|
pure virtual |
Implemented in ccf::crypto::EdDSAPublicKey_OpenSSL.
|
pure virtual |
Implemented in ccf::crypto::EdDSAKeyPair_OpenSSL, and ccf::crypto::EdDSAPublicKey_OpenSSL.
|
inlinevirtual |
Verify that a signature was produced on contents with the private key associated with the public key held by the object.
| contents | Sequence of bytes that was signed |
| signature | Signature as a sequence of bytes |
|
pure virtual |
Implemented in ccf::crypto::EdDSAPublicKey_OpenSSL, and ccf::crypto::EdDSAKeyPair_OpenSSL.