Botan
2.17.3
Crypto and TLS for C++11
|
#include <oaep.h>
Public Member Functions | |
secure_vector< uint8_t > | encode (const uint8_t in[], size_t in_length, size_t key_length, RandomNumberGenerator &rng) const |
secure_vector< uint8_t > | encode (const secure_vector< uint8_t > &in, size_t key_length, RandomNumberGenerator &rng) const |
size_t | maximum_input_size (size_t) const override |
OAEP (HashFunction *hash, const std::string &P="") | |
OAEP (HashFunction *hash, HashFunction *mgf1_hash, const std::string &P="") | |
OAEP (called EME1 in IEEE 1363 and in earlier versions of the library) as specified in PKCS#1 v2.0 (RFC 2437)
Botan::OAEP::OAEP | ( | HashFunction * | hash, |
const std::string & | P = "" |
||
) |
Botan::OAEP::OAEP | ( | HashFunction * | hash, |
HashFunction * | mgf1_hash, | ||
const std::string & | P = "" |
||
) |
|
inherited |
Encode an input
in | the plaintext |
in_length | length of plaintext in bytes |
key_length | length of the key in bits |
rng | a random number generator |
Definition at line 76 of file eme.cpp.
References Botan::EME::pad().
|
inherited |
Encode an input
in | the plaintext |
key_length | length of the key in bits |
rng | a random number generator |
Definition at line 86 of file eme.cpp.
References Botan::EME::pad().
|
overridevirtual |
Return the maximum input size in bytes we can support
keybits | the size of the key in bits |
Implements Botan::EME.