11 #include "wvencoder.h"
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;
WvRSAEncoder(Mode mode, const WvRSAKey &key)
Creates a new RSA cipher encoder.
WvEncoderStream chains a series of encoders on the input and output ports of the underlying stream to...
virtual WvString encode(const DumpMode mode) const
Return the information requested by mode.
An encoder implementing the RSA public key encryption method.
An RSA public key or public/private key pair that can be used for encryption.
DumpMode
Type for the encode() and decode() methods.
virtual bool _reset()
Template method implementation of reset().
WvString is an implementation of a simple and efficient printable-string class.
virtual bool _encode(WvBuf &in, WvBuf &out, bool flush)
Template method implementation of encode().
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's.
virtual void decode(const DumpMode mode, WvStringParm encoded)
Load the information from the format requested by mode into the class - this overwrites the certifica...
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers.
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
A crypto stream implementing RSA public key encryption.
bool flush(WvBuf &inbuf, WvBuf &outbuf, bool finish=false)
Flushes the encoder and optionally finishes it.