TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
Loading...
Searching...
No Matches
ciphers::elliptic_curve_key_exchange::Point Struct Reference

Definition of struct Point. More...

Collaboration diagram for ciphers::elliptic_curve_key_exchange::Point:
[legend]

Public Member Functions

bool operator== (const Point &p)
 x and y co-ordinates
 

Public Attributes

uint256_t x
 
uint256_t y
 

Friends

std::ostream & operator<< (std::ostream &op, const Point &p)
 ostream operator for printing Point
 

Detailed Description

Definition of struct Point.

Definition of Point in the curve.

Definition at line 46 of file elliptic_curve_key_exchange.cpp.

Member Function Documentation

◆ operator==()

bool ciphers::elliptic_curve_key_exchange::Point::operator== ( const Point & p)
inline

x and y co-ordinates

operator == for Point

check whether co-ordinates are equal to the given point

Parameters
pgiven point to be checked with this
Returns
true if x and y are both equal with Point p, else false

Definition at line 55 of file elliptic_curve_key_exchange.cpp.

55{ return x == p.x && y == p.y; }
int y
Point respect to x coordinate.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & op,
const Point & p )
friend

ostream operator for printing Point

Parameters
opostream operator
pPoint to be printed on console
Returns
op, the ostream object

Definition at line 63 of file elliptic_curve_key_exchange.cpp.

63 {
64 op << p.x << " " << p.y;
65 return op;
66 }

Member Data Documentation

◆ x

uint256_t ciphers::elliptic_curve_key_exchange::Point::x

Definition at line 47 of file elliptic_curve_key_exchange.cpp.

◆ y

uint256_t ciphers::elliptic_curve_key_exchange::Point::y

Definition at line 47 of file elliptic_curve_key_exchange.cpp.


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