iPXE
rsa_context Struct Reference

An RSA context. More...

Data Fields

void * dynamic
 Allocated memory.
bigint_element_tmodulus0
 Modulus.
unsigned int size
 Modulus size.
size_t max_len
 Modulus length.
bigint_element_texponent0
 Exponent.
unsigned int exponent_size
 Exponent size.
bigint_element_tinput0
 Input buffer.
bigint_element_toutput0
 Output buffer.
void * tmp
 Temporary working space for modular exponentiation.
uint8_t mask
 Modulus MSB mask.

Detailed Description

An RSA context.

Definition at line 54 of file rsa.c.

Field Documentation

◆ dynamic

void* rsa_context::dynamic

Allocated memory.

Definition at line 56 of file rsa.c.

Referenced by rsa_alloc(), and rsa_free().

◆ modulus0

bigint_element_t* rsa_context::modulus0

Modulus.

Definition at line 58 of file rsa.c.

Referenced by rsa_alloc(), rsa_cipher(), and rsa_init().

◆ size

unsigned int rsa_context::size

Modulus size.

Definition at line 60 of file rsa.c.

Referenced by rsa_alloc(), rsa_cipher(), and rsa_init().

◆ max_len

size_t rsa_context::max_len

◆ exponent0

bigint_element_t* rsa_context::exponent0

Exponent.

Definition at line 64 of file rsa.c.

Referenced by rsa_alloc(), rsa_cipher(), and rsa_init().

◆ exponent_size

unsigned int rsa_context::exponent_size

Exponent size.

Definition at line 66 of file rsa.c.

Referenced by rsa_alloc(), rsa_cipher(), and rsa_init().

◆ input0

bigint_element_t* rsa_context::input0

Input buffer.

Definition at line 68 of file rsa.c.

Referenced by rsa_alloc(), rsa_cipher(), rsa_pkcs1_decrypt(), and rsa_verify().

◆ output0

bigint_element_t* rsa_context::output0

Output buffer.

Definition at line 70 of file rsa.c.

Referenced by rsa_alloc(), rsa_cipher(), rsa_pkcs1_encrypt(), and rsa_verify().

◆ tmp

void* rsa_context::tmp

Temporary working space for modular exponentiation.

Definition at line 72 of file rsa.c.

Referenced by rsa_alloc(), and rsa_cipher().

◆ mask

uint8_t rsa_context::mask

Modulus MSB mask.

Definition at line 74 of file rsa.c.

Referenced by rsa_init(), and rsa_pss_encode().


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