userver: crypto::DsaVerifier< Type, Bits > Class Template Reference
Loading...
Searching...
No Matches
crypto::DsaVerifier< Type, Bits > Class Template Referencefinal

#include <userver/crypto/verifiers.hpp>

Detailed Description

template<DsaType Type, DigestSize Bits>
class crypto::DsaVerifier< Type, Bits >

Generic verifier for asymmetric cryptography.

Definition at line 66 of file verifiers.hpp.

+ Inheritance 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
 
const std::string & Name () const
 

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: