botan v1.12.5 (2016-04-07T22:31:19Z)
Dub
Repo
PKEncryptor.encrypt
botan
pubkey
pubkey
PKEncryptor
Encrypt a message.
Vector
!
ubyte
encrypt
(const(ubyte)* input, size_t length, RandomNumberGenerator rng)
Vector
!
ubyte
encrypt
(Vector!(ubyte, Alloc) input, RandomNumberGenerator rng)
interface
PKEncryptor
final const
Vector
!ubyte
encrypt
(
Alloc
)
(
const
ref
Vector
!(
ubyte
,
Alloc
)
input
,
RandomNumberGenerator
rng
)
Parameters
input
Vector
!(
ubyte
,
Alloc
)
the message
rng
RandomNumberGenerator
the random number source to use
Return Value
Type:
Vector
!ubyte
encrypted message
Meta
Source
See Implementation
botan
pubkey
pubkey
PKEncryptor
functions
enc
encrypt
maximumInputSize
Encrypt a message.