botan v1.12.12 (2020-01-26T16:00:04Z)
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.