12#include "wvencoderstream.h"
36 enum DumpMode { RsaPEM, RsaPubPEM, RsaHex, RsaPubHex };
42 WvRSAKey(WvStringParm keystr,
bool priv);
43 WvRSAKey(
struct rsa_st *_rsa,
bool priv);
52 virtual bool isok()
const;
105 virtual bool _encode(WvBuf &in, WvBuf &out,
bool flush);
130 virtual ~WvRSAStream() { }
WvEncoderStream(WvStream *cloned)
Creates an encoder stream.
WvEncoder()
Creates a new WvEncoder.
bool flush(WvBuf &inbuf, WvBuf &outbuf, bool finish=false)
Flushes the encoder and optionally finishes it.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's.
An encoder implementing the RSA public key encryption method.
virtual bool _encode(WvBuf &in, WvBuf &out, bool flush)
Template method implementation of encode().
WvRSAEncoder(Mode mode, const WvRSAKey &key)
Creates a new RSA cipher encoder.
virtual bool _reset()
Template method implementation of reset().
An RSA public key or public/private key pair that can be used for encryption.
virtual WvString encode(const DumpMode mode) const
Return the information requested by mode.
DumpMode
Type for the encode() and decode() methods.
virtual void decode(const DumpMode mode, WvStringParm encoded)
Load the information from the format requested by mode into the class - this overwrites the certifica...
WvStream()
Basic constructor for just a do-nothing WvStream.
WvString is an implementation of a simple and efficient printable-string class.