iPXE
ecdsa_context Struct Reference

ECDSA context. More...

Data Fields

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

Detailed Description

ECDSA context.

Definition at line 92 of file ecdsa.c.

Field Documentation

◆ key

struct ecdsa_key ecdsa_context::key

Key.

Definition at line 94 of file ecdsa.c.

◆ size

unsigned int ecdsa_context::size

Big integer size.

Definition at line 96 of file ecdsa.c.

◆ digest

struct digest_algorithm* ecdsa_context::digest

Digest algorithm.

Definition at line 98 of file ecdsa.c.

Referenced by ecdsa_sign().

◆ zlen

size_t ecdsa_context::zlen

Digest length.

Definition at line 100 of file ecdsa.c.

◆ dynamic

void* ecdsa_context::dynamic

Dynamically allocated storage.

Definition at line 103 of file ecdsa.c.

◆ modulus0

bigint_element_t* ecdsa_context::modulus0

Element 0 of modulus N (i.e.

curve group order

Definition at line 105 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 107 of file ecdsa.c.

◆ square0

bigint_element_t* ecdsa_context::square0

Element 0 of Montgomery constant R^2 mod N.

Definition at line 109 of file ecdsa.c.

◆ one0

bigint_element_t* ecdsa_context::one0

Element 0 of constant 1 (in Montgomery form)

Definition at line 111 of file ecdsa.c.

◆ z0

bigint_element_t* ecdsa_context::z0

Element 0 of digest value "z".

Definition at line 113 of file ecdsa.c.

◆ k0

bigint_element_t* ecdsa_context::k0

Element 0 of random key "k".

Definition at line 115 of file ecdsa.c.

◆ r0

bigint_element_t* ecdsa_context::r0

Element 0 of signature value "r".

Definition at line 117 of file ecdsa.c.

◆ s0

bigint_element_t* ecdsa_context::s0

Element 0 of signature value "s".

Definition at line 119 of file ecdsa.c.

◆ temp0

bigint_element_t* ecdsa_context::temp0

Element 0 of temporary value.

Definition at line 121 of file ecdsa.c.

◆ product0

bigint_element_t* ecdsa_context::product0

Element 0 of product buffer.

Definition at line 123 of file ecdsa.c.

◆ point1

void* ecdsa_context::point1

Curve point 1.

Definition at line 125 of file ecdsa.c.

◆ point2

void* ecdsa_context::point2

Curve point 2.

Definition at line 127 of file ecdsa.c.

◆ scalar

void* ecdsa_context::scalar

Scalar value.

Definition at line 129 of file ecdsa.c.

◆ drbg

struct hmac_drbg_state* ecdsa_context::drbg

HMAC_DRBG state for random value generation.

Definition at line 131 of file ecdsa.c.


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