Sortix cisortix manual
This manual documents Sortix cisortix. You can instead view this document in the latest official manual.
NAME
RSA_get0_key, RSA_set0_key, RSA_get0_factors, RSA_set0_factors, RSA_get0_crt_params, RSA_set0_crt_params, RSA_clear_flags, RSA_test_flags, RSA_set_flags — get and set data in an RSA objectSYNOPSIS
#include <openssl/rsa.h>RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d);
RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);
RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp);
RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
RSA_clear_flags(RSA *r, int flags);
RSA_test_flags(const RSA *r, int flags);
RSA_set_flags(RSA *r, int flags);
DESCRIPTION
An RSA object contains the components for the public and private key. n is the modulus common to both public and private key, e is the public exponent and d is the private exponent. p, q, dmp1, dmq1, and iqmp are the factors for the second representation of a private key (see PKCS#1 section 3 Key Types), where p and q are the first and second factor of n. dmp1, dmq1, and iqmp are the exponents and coefficient for Chinese Remainder Theorem (CRT) calculations.-
RSA_FLAG_CACHE_PRIVATE
and
RSA_FLAG_CACHE_PUBLIC - Precompute information needed for Montgomery multiplication from the private and public key, respectively, and cache it in r for repeated use. These two flags are set by default for the default RSA implementation, RSA_PKCS1_SSLeay(3).
- RSA_FLAG_EXT_PKEY
- The function set with RSA_meth_set_mod_exp(3) is used for private key operations even if p, q, dmp1, dmq1, and iqmp are all NULL. This flag may be useful with RSA implementations that do not use the private key components stored in the standard fields, for example because they store the private key in external hardware. If this flag is unset, the function set with RSA_meth_set_bn_mod_exp(3) is used with n and d instead.
- RSA_FLAG_NO_BLINDING
- Turn off blinding during private key encryption and decryption. This flag is set by RSA_blinding_off(3).
- RSA_FLAG_SIGN_VER
- Enable the use of the functions set with RSA_meth_set_sign(3) and RSA_meth_set_verify(3). If unset, the functions set with RSA_meth_set_priv_enc(3) and RSA_meth_set_pub_dec(3) are used instead, respectively.