Open-Transactions  0.93.0-ge03d287
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OTCrypto.cpp File Reference
#include "stdafx.hpp"
#include "crypto/OTCrypto.hpp"
#include "OTLog.hpp"
#include "crypto/OTPassword.hpp"
#include "crypto/OTPasswordData.hpp"
#include "util/OTPaths.hpp"
#include "OTPseudonym.hpp"
#include "crypto/OTSignature.hpp"
#include "OTStorage.hpp"
#include "util/stacktrace.h"
#include <bigint/BigIntegerLibrary.hh>
#include <thread>
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/resource.h>
#include <openssl/bio.h>
#include <openssl/buffer.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/rsa.h>
#include <openssl/dsa.h>
#include <openssl/err.h>
#include <openssl/ui.h>
#include <openssl/rand.h>
#include <openssl/crypto.h>
#include <openssl/asn1.h>
#include <openssl/objects.h>
#include <openssl/ssl.h>
#include <openssl/sha.h>
#include <openssl/conf.h>
#include <openssl/x509v3.h>
#include <openssl/engine.h>
#include "crypto/OTAsymmetricKey_OpenSSLPrivdp.hpp"
#include "crypto/OpenSSL_BIO.hpp"
#include <openssl/whrlpool.h>
#include <openssl/opensslconf.h>
#include <openssl/opensslv.h>
Include dependency graph for OTCrypto.cpp:

Go to the source code of this file.

Classes

class  opentxs::OTCrypto_OpenSSL::OTCrypto_OpenSSLdp
 

Namespaces

 opentxs
 

Macros

#define OT_DEFAULT_ITERATION_COUNT   65535
 
#define OT_DEFAULT_SYMMETRIC_SALT_SIZE   8
 
#define OT_DEFAULT_SYMMETRIC_KEY_SIZE   16
 
#define OT_DEFAULT_SYMMETRIC_KEY_SIZE_MAX   64
 
#define OT_DEFAULT_SYMMETRIC_IV_SIZE   16
 
#define OT_DEFAULT_SYMMETRIC_BUFFER_SIZE   4096
 
#define OT_DEFAULT_PUBLIC_KEYSIZE   128
 
#define OT_DEFAULT_PUBLIC_KEYSIZE_MAX   512
 
#define OT_DEFAULT_DIGEST_1_SIZE   32
 
#define OT_DEFAULT_DIGEST_2_SIZE   64
 
#define OT_KEY_ITERATION_COUNT   "iteration_count"
 
#define OT_KEY_SYMMETRIC_SALT_SIZE   "symmetric_salt_size"
 
#define OT_KEY_SYMMETRIC_KEY_SIZE   "symmetric_key_size"
 
#define OT_KEY_SYMMETRIC_KEY_SIZE_MAX   "symmetric_key_size_max"
 
#define OT_KEY_SYMMETRIC_IV_SIZE   "symmetric_iv_size"
 
#define OT_KEY_SYMMETRIC_BUFFER_SIZE   "symmetric_buffer_size"
 
#define OT_KEY_PUBLIC_KEYSIZE   "public_keysize"
 
#define OT_KEY_PUBLIC_KEYSIZE_MAX   "public_keysize_max"
 
#define OT_KEY_DIGEST_1_SIZE   "digest_1_size"
 
#define OT_KEY_DIGEST_2_SIZE   "digest_2_size"
 
#define _PASSWORD_LEN   128
 
#define OPENSSL_THREAD_DEFINES
 

Functions

unsigned int64_t opentxs::ot_openssl_thread_id (void)
 
void opentxs::ot_openssl_locking_callback (int32_t mode, int32_t type, char *file, int32_t line)
 
void opentxs::ot_openssl_locking_callback (int32_t mode, int32_t type, const char *, int32_t)
 
char * opentxs::ot_openssl_base64_encode (const uint8_t *input, int32_t in_len, int32_t bLineBreaks)
 
uint8_t * opentxs::ot_openssl_base64_decode (const char *input, size_t *out_len, int32_t bLineBreaks)
 

Macro Definition Documentation

#define _PASSWORD_LEN   128

Definition at line 485 of file OTCrypto.cpp.

#define OPENSSL_THREAD_DEFINES

Definition at line 925 of file OTCrypto.cpp.

#define OT_DEFAULT_DIGEST_1_SIZE   32

Definition at line 266 of file OTCrypto.cpp.

#define OT_DEFAULT_DIGEST_2_SIZE   64

Definition at line 267 of file OTCrypto.cpp.

#define OT_DEFAULT_ITERATION_COUNT   65535

Definition at line 258 of file OTCrypto.cpp.

#define OT_DEFAULT_PUBLIC_KEYSIZE   128

Definition at line 264 of file OTCrypto.cpp.

#define OT_DEFAULT_PUBLIC_KEYSIZE_MAX   512

Definition at line 265 of file OTCrypto.cpp.

#define OT_DEFAULT_SYMMETRIC_BUFFER_SIZE   4096

Definition at line 263 of file OTCrypto.cpp.

#define OT_DEFAULT_SYMMETRIC_IV_SIZE   16

Definition at line 262 of file OTCrypto.cpp.

#define OT_DEFAULT_SYMMETRIC_KEY_SIZE   16

Definition at line 260 of file OTCrypto.cpp.

#define OT_DEFAULT_SYMMETRIC_KEY_SIZE_MAX   64

Definition at line 261 of file OTCrypto.cpp.

#define OT_DEFAULT_SYMMETRIC_SALT_SIZE   8

Definition at line 259 of file OTCrypto.cpp.

#define OT_KEY_DIGEST_1_SIZE   "digest_1_size"

Definition at line 277 of file OTCrypto.cpp.

#define OT_KEY_DIGEST_2_SIZE   "digest_2_size"

Definition at line 278 of file OTCrypto.cpp.

#define OT_KEY_ITERATION_COUNT   "iteration_count"

Definition at line 269 of file OTCrypto.cpp.

#define OT_KEY_PUBLIC_KEYSIZE   "public_keysize"

Definition at line 275 of file OTCrypto.cpp.

#define OT_KEY_PUBLIC_KEYSIZE_MAX   "public_keysize_max"

Definition at line 276 of file OTCrypto.cpp.

#define OT_KEY_SYMMETRIC_BUFFER_SIZE   "symmetric_buffer_size"

Definition at line 274 of file OTCrypto.cpp.

#define OT_KEY_SYMMETRIC_IV_SIZE   "symmetric_iv_size"

Definition at line 273 of file OTCrypto.cpp.

#define OT_KEY_SYMMETRIC_KEY_SIZE   "symmetric_key_size"

Definition at line 271 of file OTCrypto.cpp.

#define OT_KEY_SYMMETRIC_KEY_SIZE_MAX   "symmetric_key_size_max"

Definition at line 272 of file OTCrypto.cpp.

#define OT_KEY_SYMMETRIC_SALT_SIZE   "symmetric_salt_size"

Definition at line 270 of file OTCrypto.cpp.