Open-Transactions  0.93.0-ge03d287
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OTPassword.cpp File Reference
#include "stdafx.hpp"
#include "crypto/OTPassword.hpp"
#include "crypto/OTCrypto.hpp"
#include "OTLog.hpp"
#include <sys/types.h>
#include <sys/mman.h>
#include <limits.h>
#include <unistd.h>
Include dependency graph for OTPassword.cpp:

Go to the source code of this file.

Namespaces

 opentxs
 

Macros

#define PAGESIZE   sysconf(_SC_PAGESIZE)
 
#define mlock(a, b)
 
#define munlock(a, b)
 

Functions

void * opentxs::ot_secure_memset (void *v, uint8_t c, uint32_t n)
 
bool opentxs::ot_lockPage (void *addr, size_t len)
 
bool opentxs::ot_unlockPage (void *addr, size_t len)
 

Macro Definition Documentation

#define mlock (   a,
 
)
Value:
mlock(((void*)(((size_t)(a)) & (~((PAGESIZE)-1)))), \
(((((size_t)(a)) + (b)-1) | ((PAGESIZE)-1)) + 1) - \
(((size_t)(a)) & (~((PAGESIZE)-1))))
#define PAGESIZE
Definition: OTPassword.cpp:151
#define mlock(a, b)
Definition: OTPassword.cpp:156

Definition at line 156 of file OTPassword.cpp.

#define munlock (   a,
 
)
Value:
munlock(((void*)(((size_t)(a)) & (~((PAGESIZE)-1)))), \
(((((size_t)(a)) + (b)-1) | ((PAGESIZE)-1)) + 1) - \
(((size_t)(a)) & (~((PAGESIZE)-1))))
#define PAGESIZE
Definition: OTPassword.cpp:151
#define munlock(a, b)
Definition: OTPassword.cpp:160

Definition at line 160 of file OTPassword.cpp.

#define PAGESIZE   sysconf(_SC_PAGESIZE)

Definition at line 151 of file OTPassword.cpp.