12#include "wvencoderstream.h"
36 enum DumpMode { RsaPEM, RsaPubPEM, RsaHex, RsaPubHex };
43 WvRSAKey(
struct rsa_st *_rsa,
bool priv);
52 virtual bool isok()
const;
105 virtual bool _encode(WvBuf &in, WvBuf &out,
bool flush);
WvEncoderStream chains a series of encoders on the input and output ports of the underlying stream to...
bool flush(WvBuf &inbuf, WvBuf &outbuf, bool finish=false)
Flushes the encoder and optionally finishes it.
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
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().
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...
A crypto stream implementing RSA public key encryption.
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
WvString is an implementation of a simple and efficient printable-string class.