OAEP

OAEP (called EME1 in IEEE 1363 and in earlier versions of the library)

Constructors

this
this(HashFunction hash, string P)

Members

Functions

maximumInputSize
size_t maximumInputSize(size_t keybits)
Undocumented in source. Be warned that the author may not have intended to support it.
pad
SecureVector!ubyte pad(const(ubyte)* input, size_t in_length, size_t key_length, RandomNumberGenerator rng)
Undocumented in source. Be warned that the author may not have intended to support it.
unpad
SecureVector!ubyte unpad(const(ubyte)* input_, size_t in_length, size_t key_length)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

m_Phash
SecureVector!ubyte m_Phash;
Undocumented in source.
m_hash
Unique!HashFunction m_hash;
Undocumented in source.

Inherited Members

From EME

maximumInputSize
size_t maximumInputSize(size_t keybits)

Return the maximum input size in bytes we can support

encode
SecureVector!ubyte encode(const(ubyte)* msg, size_t msg_len, size_t key_bits, RandomNumberGenerator rng)

Encode an input

encode
SecureVector!ubyte encode(SecureVector!ubyte msg, size_t key_bits, RandomNumberGenerator rng)

Encode an input

decode
SecureVector!ubyte decode(const(ubyte)* msg, size_t msg_len, size_t key_bits)

Decode an input

decode
SecureVector!ubyte decode(SecureVector!ubyte msg, size_t key_bits)

Decode an input

~this
~this()
Undocumented in source.
pad
SecureVector!ubyte pad(const(ubyte)* input, size_t in_length, size_t key_length, RandomNumberGenerator rng)

Encode an input

unpad
SecureVector!ubyte unpad(const(ubyte)* input, size_t in_length, size_t key_length)

Decode an input

Meta