userver: crypto::HmacShaVerifier< 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::HmacShaVerifier< bits > Class Template Referencefinal

HMAC-SHA verifier. More...

#include <userver/crypto/verifiers.hpp>

+ Inheritance diagram for crypto::HmacShaVerifier< bits >:
+ Collaboration diagram for crypto::HmacShaVerifier< bits >:

Public Member Functions

 HmacShaVerifier (std::string secret)
 Constructor from a shared secret.
 
void Verify (std::initializer_list< std::string_view > data, std::string_view raw_signature) const override
 Verifies a signature against the message.
 
- 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<DigestSize bits>
class crypto::HmacShaVerifier< bits >

HMAC-SHA verifier.

Definition at line 45 of file verifiers.hpp.

Member Function Documentation

◆ Verify()

template<DigestSize bits>
void crypto::HmacShaVerifier< 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.


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