3
* (C) 1999-2007 Jack Lloyd
5
* Botan is released under the Simplified BSD License (see license.txt)
11
#include <botan/eme.h>
12
#include <botan/hash.h>
17
* OAEP (called EME1 in IEEE 1363 and in earlier versions of the library)
18
* as specified in PKCS#1 v2.0 (RFC 2437)
20
class BOTAN_PUBLIC_API(2,0) OAEP final : public EME
23
size_t maximum_input_size(size_t) const override;
26
* @param hash function to use for hashing (takes ownership)
27
* @param P an optional label. Normally empty.
29
OAEP(HashFunction* hash, const std::string& P = "");
31
secure_vector<uint8_t> pad(const uint8_t in[],
34
RandomNumberGenerator& rng) const override;
36
secure_vector<uint8_t> unpad(uint8_t& valid_mask,
38
size_t in_len) const override;
40
secure_vector<uint8_t> m_Phash;
41
std::unique_ptr<HashFunction> m_hash;