11 #include "wvencoder.h"
12 #include "wvencoderstream.h"
36 enum DumpMode { RsaPEM, RsaPubPEM, RsaHex, RsaPubHex };
43 WvRSAKey(
struct rsa_st *_rsa,
bool priv);
52 virtual bool isok()
const;
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
bool flush(WvBuf &inbuf, WvBuf &outbuf, bool finish=false)
Flushes the encoder and optionally finishes it.
WvEncoderStream chains a series of encoders on the input and output ports of the underlying stream to...
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
An encoder implementing the RSA public key encryption method.
WvRSAEncoder(Mode mode, const WvRSAKey &key)
Creates a new RSA cipher encoder.
A crypto stream implementing RSA public key encryption.
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers...
virtual bool _encode(WvBuf &in, WvBuf &out, bool flush)
Template method implementation of encode().
virtual void decode(const DumpMode mode, WvStringParm encoded)
Load the information from the format requested by mode into the class - this overwrites the certifica...
virtual WvString encode(const DumpMode mode) const
Return the information requested by mode.
virtual bool _reset()
Template method implementation of reset().
An RSA public key or public/private key pair that can be used for encryption.
WvString is an implementation of a simple and efficient printable-string class.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's...
DumpMode
Type for the encode() and decode() methods.