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

always 0

Definition at line 58 of file rsa.h.

size(N) in chars

Definition at line 59 of file rsa.h.

Referenced by d2i_RSA_PUBKEY(), main(), rsa_decryption(), and rsa_encryption().

private exponent

Definition at line 64 of file rsa.h.

Referenced by generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), main(), and rsa_decryption().

1st prime factor

Definition at line 65 of file rsa.h.

Referenced by generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), main(), and rsa_decryption().

2nd prime factor

Definition at line 66 of file rsa.h.

Referenced by generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), main(), and rsa_decryption().

D % (P - 1)

Definition at line 67 of file rsa.h.

Referenced by generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), main(), and rsa_decryption().

D % (Q - 1)

Definition at line 68 of file rsa.h.

Referenced by generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), main(), and rsa_decryption().

1 / (Q % P)

Definition at line 69 of file rsa.h.

Referenced by generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), main(), and rsa_decryption().

cached R^2 mod N

Definition at line 71 of file rsa.h.

cached R^2 mod P

Definition at line 72 of file rsa.h.

cached R^2 mod Q

Definition at line 73 of file rsa.h.

1.5 or OAEP/PSS

Definition at line 75 of file rsa.h.

hash identifier

Definition at line 76 of file rsa.h.

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

RNG function

RNG parameter

Definition at line 78 of file rsa.h.


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

Generated on Wed Apr 29 16:47:24 2009 for Mobile-C by  doxygen 1.5.6