userver: crypto::DsaVerifier< type, bits > Class Template Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
crypto::DsaVerifier< type, bits > Class Template Referencefinal

Generic verifier for asymmetric cryptography. More...

#include <userver/crypto/verifiers.hpp>

+ Inheritance diagram for crypto::DsaVerifier< type, bits >:
+ Collaboration diagram for crypto::DsaVerifier< type, bits >:

Public Member Functions

 DsaVerifier (PublicKey pubkey)
 Constructor from public key.
 
 DsaVerifier (std::string_view pubkey)
 Constructor from a PEM-encoded public key or a X509 certificate.
 
void Verify (std::initializer_list< std::string_view > data, std::string_view raw_signature) const override
 Verifies a signature against the message.
 
void VerifyDigest (std::string_view digest, std::string_view raw_signature) const
 
- Public Member Functions inherited from crypto::Verifier
 Verifier (const std::string &name)
 
- Public Member Functions inherited from crypto::NamedAlgo
 NamedAlgo (std::string name)
 
const std::string & Name () const
 

Detailed Description

template<DsaType type, DigestSize bits>
class crypto::DsaVerifier< type, bits >

Generic verifier for asymmetric cryptography.

Definition at line 69 of file verifiers.hpp.

Member Function Documentation

◆ Verify()

template<DsaType type, DigestSize bits>
void crypto::DsaVerifier< type, bits >::Verify ( std::initializer_list< std::string_view >  data,
std::string_view  raw_signature 
) const
overridevirtual

Verifies a signature against the message.

Implements crypto::Verifier.

◆ VerifyDigest()

template<DsaType type, DigestSize bits>
void crypto::DsaVerifier< type, bits >::VerifyDigest ( std::string_view  digest,
std::string_view  raw_signature 
) const

Verifies a signature against the message digest.

Not available for RSASSA-PSS.

Warning
Do not use this function when the raw message is available!

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