10 #ifndef BOTAN_GFP_CURVE_H__
11 #define BOTAN_GFP_CURVE_H__
13 #include <botan/numthry.h>
36 p(p), a(a), b(b), p_words(p.sig_words())
40 p_dash = (((r *
inverse_mod(r, p)) - 1) / p).word_at(0);
122 return (p == other.p && a_r == other.a_r && b_r == other.b_r);
144 return !(lhs == rhs);
const BigInt & get_a() const
bool operator!=(const OctetString &s1, const OctetString &s2)
CurveGFp(const BigInt &p, const BigInt &a, const BigInt &b)
const BigInt & get_b() const
const BigInt & get_b_r() const
bool operator==(const CurveGFp &other) const
size_t get_p_words() const
const BigInt & get_r2() const
const BigInt & get_a_r() const
void swap(CurveGFp &other)
BigInt inverse_mod(const BigInt &n, const BigInt &mod)
const BigInt & get_p() const
void swap(Botan::MemoryRegion< T > &x, Botan::MemoryRegion< T > &y)