scclib
Stable Cloud Computing C++ Library
Static Public Member Functions | List of all members
scc::crypto::RsaPrivateKeyCert Struct Reference

RSA private key certificate. More...

#include <cert.h>

Static Public Member Functions

static void parse (const BasePtr &, RsaPrivateKey &)
 Parse from a sequence. More...
 
static void parse (const DerDocument &doc, RsaPrivateKey &key)
 
static BasePtr dump (const RsaPrivateKey &)
 Dump to a sequence.
 

Detailed Description

RSA private key certificate.

From https://tools.ietf.org/html/rfc2437#section-11.1.2

RSAPrivateKey ::= SEQUENCE { version Version, – 0, meaning no otherPrimeInfos modulus INTEGER, – n publicExponent INTEGER, – e privateExponent INTEGER, – d prime1 INTEGER, – p prime2 INTEGER, – q exponent1 INTEGER, – d mod (p-1) – ep exponent2 INTEGER, – d mod (q-1) – eq coefficient INTEGER, – (inverse of q) mod p – qinv otherPrimeInfos OtherPrimeInfos OPTIONAL (not for version 0) }

PEM header is BEGIN RSA PRIVATE KEY.

Definition at line 183 of file cert.h.

Member Function Documentation

◆ parse()

void RsaPrivateKeyCert::parse ( const BasePtr &  base,
RsaPrivateKey key 
)
static

Parse from a sequence.

Throws exception on error.

Definition at line 259 of file cert.cc.


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