12#include "wvencoderstream.h"
28 static WvString hexifypub(
struct dsa_st *dsa);
29 static WvString hexifyprv(
struct dsa_st *dsa);
35 WvDSAKey(
struct dsa_st *_dsa,
bool priv);
An DSA public key or public/private key pair that can be used for encryption.
WvDSAKey(WvStringParm keystr, bool priv)
Populate the DSA key with a hexified() key.
WvString public_str() const
Retrieve the public key as a hexified string.
virtual bool isok() const
By default, returns true if geterr() == 0.
WvString private_str() const
Retrieve the private key as a hexified string returns WvString::null if there is only a public key.
WvDSAKey(int bits)
Create a new DSA key of bits strength.
WvString getpem(bool privkey)
Retrieve the public or private key in PEM encoded format.
A class for managing error numbers and strings.
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
WvString is an implementation of a simple and efficient printable-string class.