Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
RSA_new, RSAPrivateKey_dup, RSAPublicKey_dup, RSA_up_ref, RSA_free — allocate and free RSA objectsSYNOPSIS
#include <openssl/rsa.h>RSA_new(void);
RSAPrivateKey_dup(RSA *rsa);
RSAPublicKey_dup(RSA *rsa);
RSA_up_ref(RSA *rsa);
RSA_free(RSA *rsa);
DESCRIPTION
The RSA functions implement RSA public key encryption and signatures as defined in PKCS #1 v2.0 (RFC 2437).typedef struct { BIGNUM *n; // public modulus BIGNUM *e; // public exponent BIGNUM *d; // private exponent BIGNUM *p; // secret prime factor BIGNUM *q; // secret prime factor BIGNUM *dmp1; // d mod (p-1) BIGNUM *dmq1; // d mod (q-1) BIGNUM *iqmp; // q^-1 mod p // ... } RSA;