userver: crypto::DsaSigner< type, 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::DsaSigner< type, bits > Class Template Referencefinal

Generic signer for asymmetric cryptography. More...

#include <userver/crypto/signers.hpp>

+ Inheritance diagram for crypto::DsaSigner< type, bits >:
+ Collaboration 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
 
- 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
 

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.

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: