EME.pad

Encode an input

class EME
protected abstract const
SecureVector!ubyte
pad
(
const(ubyte)* input
,
size_t in_length
,
size_t key_length
,
RandomNumberGenerator rng
)

Parameters

input const(ubyte)*

the plaintext

in_length size_t

length of plaintext in bytes

key_length size_t

length of the key in bits

rng RandomNumberGenerator

a random number generator

Return Value

Type: SecureVector!ubyte

encoded plaintext

Meta