#include <pssr.h>
PSSR_Raw This accepts a pre-hashed buffer
Definition at line 64 of file pssr.h.
◆ PSSR_Raw() [1/2]
- Parameters
-
hash | the hash function to use |
Definition at line 221 of file pssr.cpp.
221 :
222 m_hash(h),
223 m_salt_size(m_hash->output_length()),
224 m_required_salt_len(false)
225 {
226 }
◆ PSSR_Raw() [2/2]
Botan::PSSR_Raw::PSSR_Raw |
( |
HashFunction * |
hash, |
|
|
size_t |
salt_size |
|
) |
| |
- Parameters
-
hash | the hash function to use |
salt_size | the size of the salt to use in bytes |
Definition at line 228 of file pssr.cpp.
228 :
229 m_hash(h),
231 m_required_salt_len(true)
232 {
233 }
◆ clone()
EMSA * Botan::PSSR_Raw::clone |
( |
| ) |
|
|
overridevirtual |
- Returns
- a new object representing the same encoding method as *this
Implements Botan::EMSA.
Definition at line 281 of file pssr.cpp.
282 {
283 return new PSSR_Raw(m_hash->clone(), m_salt_size);
284 }
PSSR_Raw(HashFunction *hash)
◆ config_for_x509()
Prepare sig_algo for use in choose_sig_format for x509 certs
- Parameters
-
key | used for checking compatibility with the encoding scheme |
cert_hash_name | is checked to equal the hash for the encoding |
- Returns
- algorithm identifier to signatures created using this key, padding method and hash.
Reimplemented in Botan::EMSA1, Botan::EMSA_PKCS1v15, and Botan::PSSR.
Definition at line 38 of file emsa.cpp.
40 {
41 throw Not_Implemented(
"Encoding " +
name() +
" not supported for signing X509 objects");
42 }
virtual std::string name() const =0
References Botan::EMSA::name().
◆ name()
std::string Botan::PSSR_Raw::name |
( |
| ) |
const |
|
overridevirtual |
- Returns
- the SCAN name of the encoding/padding scheme
Implements Botan::EMSA.
Definition at line 286 of file pssr.cpp.
287 {
288 return "PSSR_Raw(" + m_hash->name() + ",MGF1," + std::to_string(m_salt_size) + ")";
289 }
The documentation for this class was generated from the following files: