UCommon
Data Structures | Namespaces | Macros | Typedefs | Functions
secure.h File Reference

This library holds basic cryptographic functions and secure socket support for use with GNU uCommon C++. More...

#include <ucommon/platform.h>
#include <ucommon/ucommon.h>
Include dependency graph for secure.h:

Go to the source code of this file.

Data Structures

class  ucommon::Cipher
 A generic data ciphering class. More...
 
class  ucommon::Cipher::Key
 Cipher key formed by hash algorithm. More...
 
class  ucommon::Digest
 A cryptographic digest class. More...
 
class  ucommon::HMAC
 A cryptographic message authentication code class. More...
 
class  ucommon::Random
 Cryptographically relevant random numbers. More...
 
class  ucommon::secure
 Common secure socket support. More...
 
class  ucommon::sstream
 Secure socket using std::iostream. More...
 

Namespaces

 ucommon
 Common namespace for all ucommon objects.
 

Macros

#define MAX_CIPHER_KEYSIZE   512
 
#define MAX_DIGEST_HASHSIZE   512
 

Typedefs

typedef Cipher ucommon::cipher_t
 Convenience type for generic ciphers.
 
typedef Digest ucommon::digest_t
 Convenience type for generic digests.
 
typedef HMAC ucommon::hmac_t
 Convenience type for generic digests.
 
typedef secure::string ucommon::keystring_t
 
typedef Cipher::Key ucommon::skey_t
 Convenience type for generic cipher key.
 

Functions

template<typename T >
void ucommon::clearmem (T &var)
 
void ucommon::zerofill (void *addr, size_t size)
 

Detailed Description

This library holds basic cryptographic functions and secure socket support for use with GNU uCommon C++.

This library might be used in conjunction with openssl, gnutls, etc. If no secure socket library is available, then a stub library may be used with very basic cryptographic support.

Definition in file secure.h.