UCommon
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.

Namespaces

namespace  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

class ucommon::__attribute__ ((visibility("default"))) ExclusiveProtocol
 An exclusive locking protocol interface base.
template<typename T>
class __attribute__((visibility("default"))) sstream void ucommon::clearmem (T &var)
 Secure socket using std::iostream.
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.

Macro Definition Documentation

◆ MAX_CIPHER_KEYSIZE

#define MAX_CIPHER_KEYSIZE   512

Definition at line 53 of file secure.h.

◆ MAX_DIGEST_HASHSIZE

#define MAX_DIGEST_HASHSIZE   512

Definition at line 54 of file secure.h.