iPXE
Data Fields
x25519_quad257 Union Reference

An X25519 unsigned 257-bit integer. More...

#include <x25519.h>

Data Fields

x25519_t value
 Big integer value. More...
 
const union x25519_oct258 oct258
 X25519 unsigned 258-bit integer. More...
 

Detailed Description

An X25519 unsigned 257-bit integer.

This is an unsigned integer N in the finite field of integers modulo the prime p=2^255-19.

In this representation, N is encoded as any big integer that is in the same congruence class as N (i.e that has the same value as N modulo p) and that lies within the 257-bit range [0,4p-1].

This type can be used as an input for addition, subtraction, or multiplication.

Multiplication will produce an output of this type.

Definition at line 64 of file x25519.h.

Field Documentation

◆ value

x25519_t x25519_quad257::value

Big integer value.

Definition at line 66 of file x25519.h.

Referenced by x25519_add(), x25519_invert_okx(), x25519_key(), and x25519_multiply_okx().

◆ oct258

const union x25519_oct258 x25519_quad257::oct258

X25519 unsigned 258-bit integer.

Any value in the range [0,4p-1] is automatically also within the range [0,8p-1] and so may be consumed as an unsigned 258-bit integer.

Definition at line 73 of file x25519.h.

Referenced by x25519_add(), x25519_invert_okx(), x25519_step(), and x25519_subtract().


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