|
Botan
1.11.15
|
#include <pssr.h>
Public Types | |
| typedef SCAN_Name | Spec |
Public Member Functions | |
| PSSR (HashFunction *hash) | |
| PSSR (HashFunction *hash, size_t salt_size) | |
Static Public Member Functions | |
| static PSSR * | make (const Spec &spec) |
PSSR (called EMSA4 in IEEE 1363 and in old versions of the library)
typedef SCAN_Name Botan::EMSA::Spec [inherited] |
| Botan::PSSR::PSSR | ( | HashFunction * | hash | ) |
| Botan::PSSR::PSSR | ( | HashFunction * | hash, |
| size_t | salt_size | ||
| ) |
| PSSR * Botan::PSSR::make | ( | const Spec & | spec | ) | [static] |
Definition at line 15 of file pssr.cpp.
References Botan::SCAN_Name::arg(), Botan::SCAN_Name::arg_as_integer(), and PSSR().
{
if(request.arg(1, "MGF1") != "MGF1")
return nullptr;
auto hash = make_a<HashFunction>(request.arg(0));
if(!hash)
return nullptr;
const size_t salt_size = request.arg_as_integer(2, hash->output_length());
return new PSSR(hash, salt_size);
}
1.7.6.1