EME.encode

Encode an input

  1. SecureVector!ubyte encode(const(ubyte)* msg, size_t msg_len, size_t key_bits, RandomNumberGenerator rng)
    class EME
    public final const
    SecureVector!ubyte
    encode
    (
    const(ubyte)* msg
    ,
    size_t msg_len
    ,
    size_t key_bits
    ,
    RandomNumberGenerator rng
    )
  2. SecureVector!ubyte encode(SecureVector!ubyte msg, size_t key_bits, RandomNumberGenerator rng)

Parameters

msg const(ubyte)*

the plaintext

msg_len size_t

length of plaintext in bytes

key_bits size_t

length of the key in bits

rng RandomNumberGenerator

a random number generator

Return Value

Type: SecureVector!ubyte

encoded plaintext

Meta