iPXE
Data Fields
elliptic_curve Struct Reference

An elliptic curve. More...

#include <crypto.h>

Data Fields

const char * name
 Curve name. More...
 
size_t pointsize
 Point (and public key) size. More...
 
size_t keysize
 Scalar (and private key) size. More...
 
int(* multiply )(const void *base, const void *scalar, void *result)
 Multiply scalar by curve point. More...
 

Detailed Description

An elliptic curve.

Definition at line 184 of file crypto.h.

Field Documentation

◆ name

const char* elliptic_curve::name

Curve name.

Definition at line 186 of file crypto.h.

Referenced by ecdhe_key(), and tls_send_client_key_exchange_ecdhe().

◆ pointsize

size_t elliptic_curve::pointsize

Point (and public key) size.

Definition at line 188 of file crypto.h.

Referenced by elliptic_okx(), and tls_send_client_key_exchange_ecdhe().

◆ keysize

size_t elliptic_curve::keysize

Scalar (and private key) size.

Definition at line 190 of file crypto.h.

Referenced by elliptic_okx(), and tls_send_client_key_exchange_ecdhe().

◆ multiply

int( * elliptic_curve::multiply) (const void *base, const void *scalar, void *result)

Multiply scalar by curve point.

Parameters
baseBase point (or NULL to use generator)
scalarScalar multiple
resultResult point to fill in
Return values
rcReturn status code

Definition at line 198 of file crypto.h.

Referenced by elliptic_multiply().


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