UltrafastSecp256k1 3.50.0
Ultra high-performance secp256k1 elliptic curve cryptography library
Loading...
Searching...
No Matches
secp256k1::fast::FieldElement52 Struct Reference

#include <field_52.hpp>

Public Member Functions

FieldElement to_fe () const noexcept
 
void to_bytes_into (std::uint8_t *out) const noexcept
 
void store_b32_prenorm (std::uint8_t *out) const noexcept
 
FieldElement52 inverse_safegcd () const noexcept
 
void normalize_weak () noexcept
 
void normalize () noexcept
 
FieldElement52 operator+ (const FieldElement52 &rhs) const noexcept
 
void add_assign (const FieldElement52 &rhs) noexcept
 
FieldElement52 negate (unsigned magnitude) const noexcept
 
void negate_assign (unsigned magnitude) noexcept
 
void conditional_negate_assign (std::int32_t sign_mask) noexcept
 
FieldElement52 operator* (const FieldElement52 &rhs) const noexcept
 
FieldElement52 square () const noexcept
 
void mul_assign (const FieldElement52 &rhs) noexcept
 
FieldElement52operator*= (const FieldElement52 &rhs) noexcept
 
void square_inplace () noexcept
 
bool is_zero () const noexcept
 
bool operator== (const FieldElement52 &rhs) const noexcept
 
bool normalizes_to_zero () const noexcept
 
bool normalizes_to_zero_var () const noexcept
 
void mul_int_assign (std::uint32_t a) noexcept
 
FieldElement52 half () const noexcept
 
void half_assign () noexcept
 
FieldElement52 inverse () const noexcept
 
FieldElement52 sqrt () const noexcept
 

Static Public Member Functions

static FieldElement52 zero () noexcept
 
static FieldElement52 one () noexcept
 
static FieldElement52 from_fe (const FieldElement &fe) noexcept
 
static FieldElement52 from_4x64_limbs (const std::uint64_t *limbs) noexcept
 
static FieldElement52 from_bytes (const std::array< std::uint8_t, 32 > &bytes) noexcept
 
static FieldElement52 from_bytes (const std::uint8_t *bytes) noexcept
 

Public Attributes

std::uint64_t n [5]
 

Detailed Description

Definition at line 55 of file field_52.hpp.

Member Function Documentation

◆ add_assign()

void secp256k1::fast::FieldElement52::add_assign ( const FieldElement52 rhs)
noexcept

◆ conditional_negate_assign()

void secp256k1::fast::FieldElement52::conditional_negate_assign ( std::int32_t  sign_mask)
noexcept

◆ from_4x64_limbs()

static FieldElement52 secp256k1::fast::FieldElement52::from_4x64_limbs ( const std::uint64_t *  limbs)
staticnoexcept

◆ from_bytes() [1/2]

static FieldElement52 secp256k1::fast::FieldElement52::from_bytes ( const std::array< std::uint8_t, 32 > &  bytes)
staticnoexcept

◆ from_bytes() [2/2]

static FieldElement52 secp256k1::fast::FieldElement52::from_bytes ( const std::uint8_t *  bytes)
staticnoexcept

◆ from_fe()

static FieldElement52 secp256k1::fast::FieldElement52::from_fe ( const FieldElement fe)
staticnoexcept

◆ half()

FieldElement52 secp256k1::fast::FieldElement52::half ( ) const
noexcept

◆ half_assign()

void secp256k1::fast::FieldElement52::half_assign ( )
noexcept

◆ inverse()

FieldElement52 secp256k1::fast::FieldElement52::inverse ( ) const
noexcept

◆ inverse_safegcd()

FieldElement52 secp256k1::fast::FieldElement52::inverse_safegcd ( ) const
noexcept

◆ is_zero()

bool secp256k1::fast::FieldElement52::is_zero ( ) const
noexcept

◆ mul_assign()

void secp256k1::fast::FieldElement52::mul_assign ( const FieldElement52 rhs)
noexcept

Referenced by operator*=().

◆ mul_int_assign()

void secp256k1::fast::FieldElement52::mul_int_assign ( std::uint32_t  a)
noexcept

◆ negate()

FieldElement52 secp256k1::fast::FieldElement52::negate ( unsigned  magnitude) const
noexcept

◆ negate_assign()

void secp256k1::fast::FieldElement52::negate_assign ( unsigned  magnitude)
noexcept

◆ normalize()

void secp256k1::fast::FieldElement52::normalize ( )
noexcept

◆ normalize_weak()

void secp256k1::fast::FieldElement52::normalize_weak ( )
noexcept

◆ normalizes_to_zero()

bool secp256k1::fast::FieldElement52::normalizes_to_zero ( ) const
noexcept

◆ normalizes_to_zero_var()

bool secp256k1::fast::FieldElement52::normalizes_to_zero_var ( ) const
noexcept

◆ one()

static FieldElement52 secp256k1::fast::FieldElement52::one ( )
staticnoexcept

◆ operator*()

FieldElement52 secp256k1::fast::FieldElement52::operator* ( const FieldElement52 rhs) const
noexcept

◆ operator*=()

FieldElement52 & secp256k1::fast::FieldElement52::operator*= ( const FieldElement52 rhs)
inlinenoexcept

Definition at line 126 of file field_52.hpp.

References mul_assign().

◆ operator+()

FieldElement52 secp256k1::fast::FieldElement52::operator+ ( const FieldElement52 rhs) const
noexcept

◆ operator==()

bool secp256k1::fast::FieldElement52::operator== ( const FieldElement52 rhs) const
noexcept

◆ sqrt()

FieldElement52 secp256k1::fast::FieldElement52::sqrt ( ) const
noexcept

◆ square()

FieldElement52 secp256k1::fast::FieldElement52::square ( ) const
noexcept

◆ square_inplace()

void secp256k1::fast::FieldElement52::square_inplace ( )
noexcept

◆ store_b32_prenorm()

void secp256k1::fast::FieldElement52::store_b32_prenorm ( std::uint8_t *  out) const
noexcept

◆ to_bytes_into()

void secp256k1::fast::FieldElement52::to_bytes_into ( std::uint8_t *  out) const
noexcept

◆ to_fe()

FieldElement secp256k1::fast::FieldElement52::to_fe ( ) const
noexcept

◆ zero()

static FieldElement52 secp256k1::fast::FieldElement52::zero ( )
staticnoexcept

Member Data Documentation

◆ n

std::uint64_t secp256k1::fast::FieldElement52::n[5]

Definition at line 56 of file field_52.hpp.

Referenced by secp256k1::fast::debug::is_on_curve().


The documentation for this struct was generated from the following file: