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 45 of file signers.hpp.

+ Inheritance diagram for crypto::HmacShaSigner< bits >:
+ Collaboration 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.
 
- Public Member Functions inherited from crypto::Signer
 Signer (const std::string &name)
 
- Public Member Functions inherited from crypto::NamedAlgo
 NamedAlgo (std::string name)
 
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: