libdecaf
Public Member Functions | List of all members
decaf::EdDSA< Ristretto >::Verification< CRTP, PURE > Class Reference

Verification (i.e. More...

#include <ed255.hxx>

Public Member Functions

decaf_error_t DECAF_WARN_UNUSED verify_noexcept (const FixedBlock< DECAF_EDDSA_25519_SIGNATURE_BYTES > &sig, const Block &message, const Block &context=NO_CONTEXT()) const
 Verify a signature, returning DECAF_FAILURE if verification fails.
 
void verify (const FixedBlock< DECAF_EDDSA_25519_SIGNATURE_BYTES > &sig, const Block &message, const Block &context=NO_CONTEXT()) const
 Verify a signature, throwing an exception if verification fails. More...
 

Detailed Description

Verification (i.e.

public) EdDSA key, PureEdDSA version.

Member Function Documentation

◆ verify()

void decaf::EdDSA< Ristretto >::Verification< CRTP, PURE >::verify ( const FixedBlock< DECAF_EDDSA_25519_SIGNATURE_BYTES > &  sig,
const Block message,
const Block context = NO_CONTEXT() 
) const
inline

Verify a signature, throwing an exception if verification fails.

Parameters
[in]sigThe signature.
[in]messageThe signed message.
[in]contextA context for the signature; must be at most 255 bytes.
Warning
It is generally unsafe to use Ed25519 with both prehashed and non-prehashed messages.

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