userver: crypto::HmacShaSigner< Bits > Class Template Reference
Loading...
Searching...
No Matches
crypto::HmacShaSigner< Bits > Class Template Referencefinal

#include <userver/crypto/signers.hpp>

Detailed Description

template<DigestSize Bits>
class crypto::HmacShaSigner< Bits >

HMAC-SHA signer.

Definition at line 44 of file signers.hpp.

+ Inheritance diagram for crypto::HmacShaSigner< Bits >:

Public Member Functions

 HmacShaSigner (std::string secret)
 Constructor from a shared secret.
 
std::string Sign (std::initializer_list< std::string_view > data) const override
 Signs a raw message, returning the signature.
 
const std::string & Name () const
 

Member Function Documentation

◆ Sign()

template<DigestSize Bits>
std::string crypto::HmacShaSigner< Bits >::Sign ( std::initializer_list< std::string_view >  data) const
overridevirtual

Signs a raw message, returning the signature.

Implements crypto::Signer.


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