userver: crypto::DsaSigner< type, bits > Class Template Reference
Loading...
Searching...
No Matches
crypto::DsaSigner< type, bits > Class Template Referencefinal

#include <userver/crypto/signers.hpp>

Detailed Description

template<DsaType type, DigestSize bits>
class crypto::DsaSigner< type, bits >

Generic signer for asymmetric cryptography.

Definition at line 68 of file signers.hpp.

+ Inheritance diagram for crypto::DsaSigner< type, bits >:

Public Member Functions

 DsaSigner (const std::string &privkey, const std::string &password={})
 Constructor from a PEM-encoded private key and an optional passphrase.
 
std::string Sign (std::initializer_list< std::string_view > data) const override
 Signs a raw message, returning the signature.
 
std::string SignDigest (std::string_view digest) const
 
const std::string & Name () const
 

Member Function Documentation

◆ Sign()

template<DsaType type, DigestSize bits>
std::string crypto::DsaSigner< type, bits >::Sign ( std::initializer_list< std::string_view > data) const
overridevirtual

Signs a raw message, returning the signature.

Implements crypto::Signer.

◆ SignDigest()

template<DsaType type, DigestSize bits>
std::string crypto::DsaSigner< type, bits >::SignDigest ( std::string_view digest) const

Signs a message digest, returning the signature.

Not available for RSASSA-PSS.


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