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_r() const
const BigInt & get_r2() const
void swap(CurveGFp &other)
const BigInt & get_a() const
CurveGFp(const BigInt &p, const BigInt &a, const BigInt &b)
size_t get_p_words() const
const BigInt & get_p() const
const BigInt & get_b() const
bool operator==(const CurveGFp &other) const
const BigInt & get_b_r() const
BigInt inverse_mod(const BigInt &n, const BigInt &mod)
bool operator!=(const OctetString &s1, const OctetString &s2)
void swap< Botan::CurveGFp >(Botan::CurveGFp &curve1, Botan::CurveGFp &curve2)
void swap(Botan::MemoryRegion< T > &x, Botan::MemoryRegion< T > &y)