PolarSSL v1.2.10
Data Fields
rsa_context Struct Reference

RSA context structure. More...

#include <rsa.h>

Collaboration diagram for rsa_context:
Collaboration graph
[legend]

Data Fields

int ver
 
size_t len
 
mpi N
 
mpi E
 
mpi D
 
mpi P
 
mpi Q
 
mpi DP
 
mpi DQ
 
mpi QP
 
mpi RN
 
mpi RP
 
mpi RQ
 
int padding
 
int hash_id
 

Detailed Description

RSA context structure.

Definition at line 135 of file rsa.h.

Field Documentation

mpi rsa_context::D

private exponent

Definition at line 143 of file rsa.h.

mpi rsa_context::DP

D % (P - 1)

Definition at line 146 of file rsa.h.

mpi rsa_context::DQ

D % (Q - 1)

Definition at line 147 of file rsa.h.

mpi rsa_context::E

public exponent

Definition at line 141 of file rsa.h.

Referenced by d2i_RSA_PUBKEY().

int rsa_context::hash_id

Hash identifier of md_type_t as specified in the md.h header file for the EME-OAEP and EMSA-PSS encoding

Definition at line 156 of file rsa.h.

size_t rsa_context::len

size(N) in chars

Definition at line 138 of file rsa.h.

Referenced by d2i_RSA_PUBKEY().

mpi rsa_context::N

public modulus

Definition at line 140 of file rsa.h.

Referenced by d2i_RSA_PUBKEY().

mpi rsa_context::P

1st prime factor

Definition at line 144 of file rsa.h.

int rsa_context::padding

RSA_PKCS_V15 for 1.5 padding and RSA_PKCS_v21 for OAEP/PSS

Definition at line 154 of file rsa.h.

mpi rsa_context::Q

2nd prime factor

Definition at line 145 of file rsa.h.

mpi rsa_context::QP

1 / (Q % P)

Definition at line 148 of file rsa.h.

mpi rsa_context::RN

cached R^2 mod N

Definition at line 150 of file rsa.h.

mpi rsa_context::RP

cached R^2 mod P

Definition at line 151 of file rsa.h.

mpi rsa_context::RQ

cached R^2 mod Q

Definition at line 152 of file rsa.h.

int rsa_context::ver

always 0

Definition at line 137 of file rsa.h.


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