Botan
1.10.9
|
Functions | |
bool | encryption_consistency_check (RandomNumberGenerator &rng, const Private_Key &key, const std::string &padding) |
bool | signature_consistency_check (RandomNumberGenerator &rng, const Private_Key &key, const std::string &padding) |
BOTAN_DLL bool Botan::KeyPair::encryption_consistency_check | ( | RandomNumberGenerator & | rng, |
const Private_Key & | key, | ||
const std::string & | padding | ||
) |
Tests whether the key is consistent for encryption; whether encrypting and then decrypting gives to the original plaintext.
rng | the rng to use |
key | the key to test |
padding | the encryption padding method to use |
Definition at line 18 of file keypair.cpp.
References Botan::PK_Decryptor::decrypt(), Botan::PK_Encryptor::encrypt(), Botan::PK_Encryptor_EME::maximum_input_size(), and Botan::RandomNumberGenerator::random_vec().
Referenced by Botan::ElGamal_PrivateKey::check_key().
BOTAN_DLL bool Botan::KeyPair::signature_consistency_check | ( | RandomNumberGenerator & | rng, |
const Private_Key & | key, | ||
const std::string & | padding | ||
) |
Tests whether the key is consistent for signatures; whether a signature can be created and then verified
rng | the rng to use |
key | the key to test |
padding | the signature padding method to use |
Definition at line 47 of file keypair.cpp.
References Botan::RandomNumberGenerator::random_vec(), Botan::PK_Signer::sign_message(), and Botan::PK_Verifier::verify_message().
Referenced by Botan::NR_PrivateKey::check_key(), Botan::RSA_PrivateKey::check_key(), Botan::DSA_PrivateKey::check_key(), Botan::RW_PrivateKey::check_key(), and Botan::ECDSA_PrivateKey::check_key().