8 #include <botan/if_algo.h> 9 #include <botan/numthry.h> 10 #include <botan/der_enc.h> 11 #include <botan/ber_dec.h> 56 .
encode(static_cast<size_t>(0))
124 if(
n < 35 ||
n.
is_even() ||
e < 2 || d < 2 || p < 3 || q < 3 || p*q !=
n)
130 if(d1 != d % (p - 1) || d2 != d % (q - 1) || c !=
inverse_mod(q, p))
virtual void load_check(RandomNumberGenerator &rng) const
SecureVector< byte > get_contents()
AlgorithmIdentifier algorithm_identifier() const
BER_Decoder & decode(bool &)
BER_Decoder & decode_and_check(const T &expected, const std::string &error_msg)
BER_Decoder start_cons(ASN1_Tag, ASN1_Tag=UNIVERSAL)
SecureVector< byte > decode(DataSource &source, std::string &label)
DER_Encoder & encode(bool b)
virtual OID get_oid() const
MemoryVector< byte > pkcs8_private_key() const
bool check_key(RandomNumberGenerator &rng, bool) const
MemoryVector< byte > x509_subject_public_key() const
BigInt inverse_mod(const BigInt &n, const BigInt &mod)
bool check_key(RandomNumberGenerator &rng, bool) const
BER_Decoder & verify_end()
DER_Encoder & start_cons(ASN1_Tag type_tag, ASN1_Tag class_tag=UNIVERSAL)
BigInt lcm(const BigInt &a, const BigInt &b)
bool check_prime(const BigInt &n, RandomNumberGenerator &rng)