rsa_context Struct Reference

RSA context structure. More...

#include <rsa.h>


Data Fields

int ver
int 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
int(* f_rng )(void *)
void * p_rng


Detailed Description

RSA context structure.

Definition at line 56 of file rsa.h.


Field Documentation

int rsa_context::ver

always 0

Definition at line 58 of file rsa.h.

int rsa_context::len

size(N) in chars

Definition at line 59 of file rsa.h.

Referenced by d2i_RSA_PUBKEY(), and main().

mpi rsa_context::N

public modulus

Definition at line 61 of file rsa.h.

Referenced by d2i_RSA_PUBKEY(), and main().

mpi rsa_context::E

public exponent

Definition at line 62 of file rsa.h.

Referenced by d2i_RSA_PUBKEY(), and main().

mpi rsa_context::D

private exponent

Definition at line 64 of file rsa.h.

Referenced by main().

mpi rsa_context::P

1st prime factor

Definition at line 65 of file rsa.h.

Referenced by main().

mpi rsa_context::Q

2nd prime factor

Definition at line 66 of file rsa.h.

Referenced by main().

mpi rsa_context::DP

D % (P - 1)

Definition at line 67 of file rsa.h.

Referenced by main().

mpi rsa_context::DQ

D % (Q - 1)

Definition at line 68 of file rsa.h.

Referenced by main().

mpi rsa_context::QP

1 / (Q % P)

Definition at line 69 of file rsa.h.

Referenced by main().

mpi rsa_context::RN

cached R^2 mod N

Definition at line 71 of file rsa.h.

mpi rsa_context::RP

cached R^2 mod P

Definition at line 72 of file rsa.h.

mpi rsa_context::RQ

cached R^2 mod Q

Definition at line 73 of file rsa.h.

int rsa_context::padding

1.5 or OAEP/PSS

Definition at line 75 of file rsa.h.

int rsa_context::hash_id

hash identifier

Definition at line 76 of file rsa.h.

int(* rsa_context::f_rng)(void *)

RNG function

void* rsa_context::p_rng

RNG parameter

Definition at line 78 of file rsa.h.


The documentation for this struct was generated from the following file:
Generated on Fri Jul 11 17:59:50 2008 for Mobile-C by  doxygen 1.5.4