botan.pubkey.algo.keypair

Keypair Checks

Public Imports

botan.pubkey.pk_keys
public import botan.pubkey.pk_keys;
botan.pubkey.pubkey
public import botan.pubkey.pubkey;

Members

Functions

encryptionConsistencyCheck
bool encryptionConsistencyCheck(RandomNumberGenerator rng, PrivateKey key, string padding)

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

signatureConsistencyCheck
bool signatureConsistencyCheck(RandomNumberGenerator rng, PrivateKey key, string padding)

Tests whether the key is consistent for signatures; whether a signature can be created and then verified

Meta

License

Botan is released under the Simplified BSD License (see LICENSE.md)