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 } |
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) |
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.
enum WvRSAKey::DumpMode |