iPXE
Data Fields
ecdsa_context Struct Reference

ECDSA context. More...

Data Fields

struct ecdsa_key key
 Key. More...
 
unsigned int size
 Big integer size. More...
 
struct digest_algorithmdigest
 Digest algorithm. More...
 
size_t zlen
 Digest length. More...
 
void * dynamic
 Dynamically allocated storage. More...
 
bigint_element_tmodulus0
 Element 0 of modulus N (i.e. More...
 
bigint_element_tfermat0
 Element 0 of constant N-2 (for Fermat's little theorem) More...
 
bigint_element_tsquare0
 Element 0 of Montgomery constant R^2 mod N. More...
 
bigint_element_tone0
 Element 0 of constant 1 (in Montgomery form) More...
 
bigint_element_tz0
 Element 0 of digest value "z". More...
 
bigint_element_tk0
 Element 0 of random key "k". More...
 
bigint_element_tr0
 Element 0 of signature value "r". More...
 
bigint_element_ts0
 Element 0 of signature value "s". More...
 
bigint_element_ttemp0
 Element 0 of temporary value. More...
 
bigint_element_tproduct0
 Element 0 of product buffer. More...
 
void * point1
 Curve point 1. More...
 
void * point2
 Curve point 2. More...
 
void * scalar
 Scalar value. More...
 
struct hmac_drbg_statedrbg
 HMAC_DRBG state for random value generation. More...
 

Detailed Description

ECDSA context.

Definition at line 91 of file ecdsa.c.

Field Documentation

◆ key

struct ecdsa_key ecdsa_context::key

Key.

Definition at line 93 of file ecdsa.c.

◆ size

unsigned int ecdsa_context::size

Big integer size.

Definition at line 95 of file ecdsa.c.

◆ digest

struct digest_algorithm* ecdsa_context::digest

Digest algorithm.

Definition at line 97 of file ecdsa.c.

Referenced by ecdsa_sign().

◆ zlen

size_t ecdsa_context::zlen

Digest length.

Definition at line 99 of file ecdsa.c.

◆ dynamic

void* ecdsa_context::dynamic

Dynamically allocated storage.

Definition at line 102 of file ecdsa.c.

◆ modulus0

bigint_element_t* ecdsa_context::modulus0

Element 0 of modulus N (i.e.

curve group order

Definition at line 104 of file ecdsa.c.

◆ fermat0

bigint_element_t* ecdsa_context::fermat0

Element 0 of constant N-2 (for Fermat's little theorem)

Definition at line 106 of file ecdsa.c.

◆ square0

bigint_element_t* ecdsa_context::square0

Element 0 of Montgomery constant R^2 mod N.

Definition at line 108 of file ecdsa.c.

◆ one0

bigint_element_t* ecdsa_context::one0

Element 0 of constant 1 (in Montgomery form)

Definition at line 110 of file ecdsa.c.

◆ z0

bigint_element_t* ecdsa_context::z0

Element 0 of digest value "z".

Definition at line 112 of file ecdsa.c.

◆ k0

bigint_element_t* ecdsa_context::k0

Element 0 of random key "k".

Definition at line 114 of file ecdsa.c.

◆ r0

bigint_element_t* ecdsa_context::r0

Element 0 of signature value "r".

Definition at line 116 of file ecdsa.c.

◆ s0

bigint_element_t* ecdsa_context::s0

Element 0 of signature value "s".

Definition at line 118 of file ecdsa.c.

◆ temp0

bigint_element_t* ecdsa_context::temp0

Element 0 of temporary value.

Definition at line 120 of file ecdsa.c.

◆ product0

bigint_element_t* ecdsa_context::product0

Element 0 of product buffer.

Definition at line 122 of file ecdsa.c.

◆ point1

void* ecdsa_context::point1

Curve point 1.

Definition at line 124 of file ecdsa.c.

◆ point2

void* ecdsa_context::point2

Curve point 2.

Definition at line 126 of file ecdsa.c.

◆ scalar

void* ecdsa_context::scalar

Scalar value.

Definition at line 128 of file ecdsa.c.

◆ drbg

struct hmac_drbg_state* ecdsa_context::drbg

HMAC_DRBG state for random value generation.

Definition at line 130 of file ecdsa.c.


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