botan ~master (2020-08-19T17:56:38Z)
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.