#include <pk_ops_impl.h>
Definition at line 127 of file pk_ops_impl.h.
Botan::PK_Ops::Signature_with_EMSA::Signature_with_EMSA |
( |
const std::string & |
emsa | ) |
|
|
explicitprotected |
Definition at line 65 of file pk_ops.cpp.
References m_emsa.
72 throw Algorithm_Not_Found(emsa);
std::string hash_for_emsa(const std::string &algo_spec)
EMSA * get_emsa(const std::string &algo_spec)
std::unique_ptr< EMSA > m_emsa
std::unique_ptr< HashFunction > m_hash
Botan::PK_Ops::Signature_with_EMSA::~Signature_with_EMSA |
( |
| ) |
|
|
protecteddefault |
virtual bool Botan::PK_Ops::Signature_with_EMSA::has_prefix |
( |
| ) |
|
|
inlineprotectedvirtual |
std::string Botan::PK_Ops::Signature_with_EMSA::hash_for_signature |
( |
| ) |
|
|
inlineprotected |
Definition at line 137 of file pk_ops_impl.h.
std::unique_ptr< HashFunction > m_hash
virtual secure_vector<uint8_t> Botan::PK_Ops::Signature_with_EMSA::message_prefix |
( |
| ) |
const |
|
inlineprotectedvirtual |
- Returns
- the message prefix if this signature scheme uses a message prefix, signaled via has_prefix()
Definition at line 149 of file pk_ops_impl.h.
149 {
throw Exception(
"No prefix" ); }
Implements Botan::PK_Ops::Signature.
Definition at line 86 of file pk_ops.cpp.
References m_emsa.
88 m_prefix_used =
false;
89 const secure_vector<uint8_t> msg =
m_emsa->raw_data();
90 const auto padded =
m_emsa->encoding_of(msg, this->max_input_bits(), rng);
91 return raw_sign(padded.data(), padded.size(), rng);
std::unique_ptr< EMSA > m_emsa
void Botan::PK_Ops::Signature_with_EMSA::update |
( |
const uint8_t |
msg[], |
|
|
size_t |
msg_len |
|
) |
| |
|
overridevirtual |
Implements Botan::PK_Ops::Signature.
Definition at line 75 of file pk_ops.cpp.
References m_emsa.
81 m_emsa->update(prefix.data(), prefix.size());
83 m_emsa->update(msg, msg_len);
virtual bool has_prefix()
virtual secure_vector< uint8_t > message_prefix() const
std::unique_ptr< EMSA > m_emsa
std::unique_ptr<EMSA> Botan::PK_Ops::Signature_with_EMSA::m_emsa |
|
protected |
The documentation for this class was generated from the following files: