WvStreams
Public Types | Public Member Functions | Public Attributes
WvRSAKey Class Reference

An RSA public key or public/private key pair that can be used for encryption. More...

#include <wvrsa.h>

List of all members.

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

Detailed Description

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.

See also:
WvRSAEncoder

Definition at line 26 of file wvrsa.h.


Member Enumeration Documentation

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 wvrsa.h.


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