|
Botan 1.10.17
|
#include <rw.h>
Public Member Functions | |
| std::string | algo_name () const |
| AlgorithmIdentifier | algorithm_identifier () const |
| bool | check_key (RandomNumberGenerator &rng, bool) const |
| const BigInt & | get_e () const |
| const BigInt & | get_n () const |
| virtual OID | get_oid () const |
| size_t | max_input_bits () const |
| virtual size_t | message_part_size () const |
| virtual size_t | message_parts () const |
| RW_PublicKey (const AlgorithmIdentifier &alg_id, const MemoryRegion< byte > &key_bits) | |
| RW_PublicKey (const BigInt &mod, const BigInt &exponent) | |
| MemoryVector< byte > | x509_subject_public_key () const |
Protected Member Functions | |
| virtual void | load_check (RandomNumberGenerator &rng) const |
| RW_PublicKey () | |
Protected Attributes | |
| BigInt | e |
| BigInt | n |
|
inline |
Definition at line 26 of file rw.h.
References Botan::IF_Scheme_PublicKey::IF_Scheme_PublicKey().
Definition at line 31 of file rw.h.
References Botan::IF_Scheme_PublicKey::IF_Scheme_PublicKey().
|
inlineprotected |
|
inlinevirtual |
Get the name of the underlying public key scheme.
Implements Botan::Public_Key.
Definition at line 24 of file rw.h.
Referenced by Botan::RW_PrivateKey::RW_PrivateKey().
|
virtualinherited |
Implements Botan::Public_Key.
Definition at line 15 of file if_algo.cpp.
References Botan::AlgorithmIdentifier::AlgorithmIdentifier(), Botan::Public_Key::get_oid(), and Botan::AlgorithmIdentifier::USE_NULL_PARAM.
|
virtualinherited |
Test the key values for consistency.
| rng | rng to use |
| strong | whether to perform strong and lengthy version of the test |
Implements Botan::Public_Key.
Reimplemented in Botan::RSA_PrivateKey, and Botan::RW_PrivateKey.
Definition at line 45 of file if_algo.cpp.
References e, Botan::BigInt::is_even(), and n.
|
inlineinherited |
Definition at line 44 of file if_algo.h.
References e.
Referenced by Botan::Server_Key_Exchange::Server_Key_Exchange().
|
inlineinherited |
Definition at line 39 of file if_algo.h.
References n.
Referenced by Botan::Server_Key_Exchange::Server_Key_Exchange().
|
virtualinherited |
Get the OID of the underlying public key scheme.
Definition at line 17 of file pk_keys.cpp.
References algo_name(), Botan::OIDS::lookup(), and Botan::Lookup_Error::Lookup_Error().
Referenced by algo_name(), Botan::DL_Scheme_PublicKey::algorithm_identifier(), Botan::EC_PublicKey::algorithm_identifier(), and Botan::IF_Scheme_PublicKey::algorithm_identifier().
|
protectedvirtualinherited |
Self-test after loading a key
| rng | a random number generator |
Reimplemented in Botan::Private_Key.
Definition at line 31 of file pk_keys.cpp.
References algo_name(), and check_key().
|
inlinevirtualinherited |
Get the maximum message size in bits supported by this public key.
Implements Botan::Public_Key.
Definition at line 46 of file if_algo.h.
References n.
|
inlinevirtualinherited |
Find out the message part size supported by this scheme/key.
Reimplemented in Botan::DSA_PublicKey, Botan::ECDSA_PublicKey, and Botan::NR_PublicKey.
Definition at line 56 of file pk_keys.h.
|
inlinevirtualinherited |
Find out the number of message parts supported by this scheme.
Reimplemented in Botan::DSA_PublicKey, Botan::ECDSA_PublicKey, and Botan::NR_PublicKey.
Definition at line 50 of file pk_keys.h.
Referenced by Botan::X509_Object::check_signature(), and Botan::choose_sig_format().
|
virtualinherited |
Implements Botan::Public_Key.
Definition at line 21 of file if_algo.cpp.
References e, Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), Botan::DER_Encoder::get_contents(), n, Botan::SEQUENCE, and Botan::DER_Encoder::start_cons().
|
protectedinherited |
Definition at line 51 of file if_algo.h.
Referenced by Botan::IF_Scheme_PrivateKey::check_key(), check_key(), Botan::RSA_PrivateKey::check_key(), Botan::RW_PrivateKey::check_key(), get_e(), Botan::IF_Scheme_PrivateKey::IF_Scheme_PrivateKey(), Botan::IF_Scheme_PrivateKey::IF_Scheme_PrivateKey(), IF_Scheme_PublicKey(), IF_Scheme_PublicKey(), Botan::IF_Scheme_PrivateKey::pkcs8_private_key(), Botan::RSA_PrivateKey::RSA_PrivateKey(), Botan::RSA_PrivateKey::RSA_PrivateKey(), Botan::RSA_PublicKey::RSA_PublicKey(), Botan::RW_PrivateKey::RW_PrivateKey(), Botan::RW_PrivateKey::RW_PrivateKey(), and x509_subject_public_key().
|
protectedinherited |
Definition at line 51 of file if_algo.h.
Referenced by Botan::IF_Scheme_PrivateKey::check_key(), check_key(), get_n(), Botan::IF_Scheme_PrivateKey::IF_Scheme_PrivateKey(), Botan::IF_Scheme_PrivateKey::IF_Scheme_PrivateKey(), IF_Scheme_PublicKey(), IF_Scheme_PublicKey(), max_input_bits(), Botan::IF_Scheme_PrivateKey::pkcs8_private_key(), Botan::RSA_PrivateKey::RSA_PrivateKey(), Botan::RSA_PrivateKey::RSA_PrivateKey(), Botan::RSA_PublicKey::RSA_PublicKey(), Botan::RW_PrivateKey::RW_PrivateKey(), Botan::RW_PrivateKey::RW_PrivateKey(), and x509_subject_public_key().