std1.0.0-beta-7 SafeC docs

std :: crypto::rsa

Struct std::RsaPrivateKey

#include <std/crypto/rsa.h> source

struct RsaPrivateKey {
    struct RsaPublicKey pub;
    unsigned char d[RSA_MAX_BYTES];
    unsigned long d_len;
}

Fields

§unsigned char d[RSA_MAX_BYTES]source

private exponent, big-endian, pub.n.bytes long

§unsigned long d_lensource

Methods

§int init_der([]const unsigned char der)source · definition

From a DER RSAPrivateKey (PKCS#1) or a PKCS#8 PrivateKeyInfo holding one. 0 if malformed or unsupported.

§void destroy()source · definition

Wipes the private exponent.