PKEncryptor.encrypt

Encrypt a message.

  1. Vector!ubyte encrypt(const(ubyte)* input, size_t length, RandomNumberGenerator rng)
  2. Vector!ubyte encrypt(Vector!(ubyte, Alloc) input, RandomNumberGenerator rng)
    interface PKEncryptor
    final const
    Vector!ubyte
    encrypt
    (
    Alloc
    )
    (
    const ref Vector!(ubyte, Alloc) input
    ,)

Parameters

input Vector!(ubyte, Alloc)

the message

rng RandomNumberGenerator

the random number source to use

Return Value

Type: Vector!ubyte

encrypted message

Meta