EME.encode

Encode an input

  1. 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)
    class EME
    final const
    SecureVector!ubyte
    encode
    (
    const ref SecureVector!ubyte msg
    ,
    size_t key_bits
    ,
    RandomNumberGenerator rng
    )

Parameters

msg SecureVector!ubyte

the plaintext

key_bits size_t

length of the key in bits

rng RandomNumberGenerator

a random number generator

Return Value

Type: SecureVector!ubyte

encoded plaintext

Meta