Engine.getEncryptionOp

Return a new operator object for this key, if possible

interface Engine
const
static if(BOTAN_HAS_PUBLIC_KEY_CRYPTO)
Encryption
getEncryptionOp
(
in PublicKey key
,
RandomNumberGenerator rng
)

Parameters

key PublicKey

the key we want an operator for

rng RandomNumberGenerator

a random number generator

Return Value

Type: Encryption

newly allocated operator object, or NULL

Meta