iPXE
Data Fields
rsa_context Struct Reference

An RSA context. More...

#include <rsa.h>

Data Fields

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

Detailed Description

An RSA context.

Definition at line 59 of file rsa.h.

Field Documentation

◆ dynamic

void* rsa_context::dynamic

Allocated memory.

Definition at line 61 of file rsa.h.

Referenced by rsa_alloc(), and rsa_free().

◆ modulus0

bigint_element_t* rsa_context::modulus0

Modulus.

Definition at line 63 of file rsa.h.

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

◆ size

unsigned int rsa_context::size

Modulus size.

Definition at line 65 of file rsa.h.

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

◆ max_len

size_t rsa_context::max_len

Modulus length.

Definition at line 67 of file rsa.h.

Referenced by rsa_alloc(), rsa_cipher(), rsa_decrypt(), rsa_encode_digest(), rsa_encrypt(), rsa_max_len(), rsa_sign(), and rsa_verify().

◆ exponent0

bigint_element_t* rsa_context::exponent0

Exponent.

Definition at line 69 of file rsa.h.

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

◆ exponent_size

unsigned int rsa_context::exponent_size

Exponent size.

Definition at line 71 of file rsa.h.

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

◆ input0

bigint_element_t* rsa_context::input0

Input buffer.

Definition at line 73 of file rsa.h.

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

◆ output0

bigint_element_t* rsa_context::output0

Output buffer.

Definition at line 75 of file rsa.h.

Referenced by rsa_alloc(), rsa_cipher(), rsa_encrypt(), rsa_sign(), and rsa_verify().

◆ tmp

void* rsa_context::tmp

Temporary working space for modular exponentiation.

Definition at line 77 of file rsa.h.

Referenced by rsa_alloc(), and rsa_cipher().


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