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 |
RSA context structure.
Definition at line 56 of file rsa.h.
private exponent
Definition at line 64 of file rsa.h.
Referenced by generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), main(), rsa_check_privkey(), rsa_decryption(), rsa_free(), rsa_gen_key(), rsa_private(), rsa_self_test(), and x509parse_key().
D % (P - 1)
Definition at line 67 of file rsa.h.
Referenced by generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), main(), rsa_decryption(), rsa_free(), rsa_gen_key(), rsa_private(), rsa_self_test(), and x509parse_key().
D % (Q - 1)
Definition at line 68 of file rsa.h.
Referenced by generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), main(), rsa_decryption(), rsa_free(), rsa_gen_key(), rsa_private(), rsa_self_test(), and x509parse_key().
public exponent
Definition at line 62 of file rsa.h.
Referenced by d2i_RSA_PUBKEY(), debug_print_crt(), generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), main(), rsa_check_privkey(), rsa_check_pubkey(), rsa_decryption(), rsa_encryption(), rsa_free(), rsa_gen_key(), rsa_public(), rsa_self_test(), x509parse_crt(), and x509parse_key().
int(* rsa_context::f_rng)(void *) |
size(N) in chars
Definition at line 59 of file rsa.h.
Referenced by d2i_RSA_PUBKEY(), main(), rsa_decryption(), rsa_encryption(), rsa_gen_key(), rsa_pkcs1_decrypt(), rsa_pkcs1_encrypt(), rsa_pkcs1_sign(), rsa_pkcs1_verify(), rsa_private(), rsa_public(), rsa_self_test(), ssl_parse_certificate_verify(), ssl_parse_client_key_exchange(), ssl_parse_server_key_exchange(), ssl_write_certificate_verify(), ssl_write_client_key_exchange(), ssl_write_server_key_exchange(), x509parse_crt(), and x509parse_key().
public modulus
Definition at line 61 of file rsa.h.
Referenced by d2i_RSA_PUBKEY(), debug_print_crt(), generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), main(), rsa_check_privkey(), rsa_check_pubkey(), rsa_decryption(), rsa_encryption(), rsa_free(), rsa_gen_key(), rsa_private(), rsa_public(), rsa_self_test(), x509parse_cert_info(), x509parse_crt(), and x509parse_key().
1st prime factor
Definition at line 65 of file rsa.h.
Referenced by generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), main(), rsa_check_privkey(), rsa_decryption(), rsa_free(), rsa_gen_key(), rsa_private(), rsa_self_test(), and x509parse_key().
void* rsa_context::p_rng |
1.5 or OAEP/PSS
Definition at line 75 of file rsa.h.
Referenced by rsa_init(), rsa_pkcs1_decrypt(), rsa_pkcs1_encrypt(), rsa_pkcs1_sign(), and rsa_pkcs1_verify().
2nd prime factor
Definition at line 66 of file rsa.h.
Referenced by generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), main(), rsa_check_privkey(), rsa_decryption(), rsa_free(), rsa_gen_key(), rsa_private(), rsa_self_test(), and x509parse_key().
1 / (Q % P)
Definition at line 69 of file rsa.h.
Referenced by generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), main(), rsa_decryption(), rsa_free(), rsa_gen_key(), rsa_private(), rsa_self_test(), and x509parse_key().
cached R^2 mod N
Definition at line 71 of file rsa.h.
Referenced by rsa_free(), rsa_private(), and rsa_public().