WvStreams
|
An RSA public key or public/private key pair that can be used for encryption. More...
#include <wvrsa.h>
Public Types | |
enum | DumpMode { RsaPEM , RsaPubPEM , RsaHex , RsaPubHex , RsaPEM , RsaPubPEM , RsaHex , RsaPubHex } |
Type for the encode() and decode() methods. More... | |
enum | DumpMode { RsaPEM , RsaPubPEM , RsaHex , RsaPubHex , RsaPEM , RsaPubPEM , RsaHex , RsaPubHex } |
Type for the encode() and decode() methods. More... | |
Public Member Functions | |
WvRSAKey (const WvRSAKey &k) | |
WvRSAKey (WvStringParm keystr, bool priv) | |
WvRSAKey (struct rsa_st *_rsa, bool priv) | |
WvRSAKey (int bits) | |
Create a new RSA key of bits strength. | |
virtual bool | isok () const |
virtual WvString | encode (const DumpMode mode) const |
Return the information requested by mode. | |
virtual void | encode (const DumpMode mode, WvBuf &buf) const |
virtual void | decode (const DumpMode mode, WvStringParm encoded) |
Load the information from the format requested by mode into the class - this overwrites the certificate. | |
virtual void | decode (const DumpMode mode, WvBuf &encoded) |
WvRSAKey (const WvRSAKey &k) | |
WvRSAKey (WvStringParm keystr, bool priv) | |
WvRSAKey (struct rsa_st *_rsa, bool priv) | |
WvRSAKey (int bits) | |
Create a new RSA key of bits strength. | |
virtual bool | isok () const |
virtual WvString | encode (const DumpMode mode) const |
Return the information requested by mode. | |
virtual void | encode (const DumpMode mode, WvBuf &buf) const |
virtual void | decode (const DumpMode mode, WvStringParm encoded) |
Load the information from the format requested by mode into the class - this overwrites the certificate. | |
virtual void | decode (const DumpMode mode, WvBuf &encoded) |
Public Attributes | |
struct rsa_st * | rsa |
An RSA public key or public/private key pair that can be used for encryption.
Knows how to encode/decode itself into a string of hex digits for easy transport.
Definition at line 26 of file debian/libwvstreams-dev/usr/include/wvstreams/wvrsa.h.
enum WvRSAKey::DumpMode |
Type for the encode() and decode() methods.
RsaPEM = PEM Encoded RSA Private Key RsaPubPEM = PEM Encoded RSA Public Key RsaHex = DER Encoded RSA Private Key in hexified form RsaPubHex = DER Encoded RSA Public Key in hexified form
Definition at line 36 of file debian/libwvstreams-dev/usr/include/wvstreams/wvrsa.h.
enum WvRSAKey::DumpMode |
Type for the encode() and decode() methods.
RsaPEM = PEM Encoded RSA Private Key RsaPubPEM = PEM Encoded RSA Public Key RsaHex = DER Encoded RSA Private Key in hexified form RsaPubHex = DER Encoded RSA Public Key in hexified form
Definition at line 36 of file include/wvrsa.h.
WvRSAKey::WvRSAKey | ( | WvStringParm | keystr, |
bool | priv | ||
) |
WvRSAKey::WvRSAKey | ( | int | bits | ) |
Return the information requested by mode.
Definition at line 86 of file wvrsa.cc.
References encode().
Referenced by encode(), and WvX509Mgr::test().
|
virtual |
|
virtual |
|
virtual |
struct rsa_st * WvRSAKey::rsa |
Definition at line 38 of file debian/libwvstreams-dev/usr/include/wvstreams/wvrsa.h.