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: