encryptionConsistencyCheck

Tests whether the key is consistent for encryption; whether encrypting and then decrypting gives to the original plaintext.

static if(BOTAN_HAS_PUBLIC_KEY_CRYPTO)
bool
encryptionConsistencyCheck

Parameters

rng RandomNumberGenerator

the rng to use

key PrivateKey

the key to test

padding string

the encryption padding method to use

Return Value

Type: bool

true if consistent otherwise false

Meta