PKEncryptor.encrypt

Encrypt a message.

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

Parameters

input const(ubyte)*

the message as a ubyte array

length size_t

the length of the above ubyte array

rng RandomNumberGenerator

the random number source to use

Return Value

Type: Vector!ubyte

encrypted message

Meta