Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Functions | Variables
cryptlib.cpp File Reference
#include "pch.h"
#include "config.h"
#include "cryptlib.h"
#include "misc.h"
#include "filters.h"
#include "algparam.h"
#include "fips140.h"
#include "argnames.h"
#include "fltrimpl.h"
#include "trdlocal.h"
#include "osrng.h"
#include "secblock.h"
#include "smartptr.h"
Include dependency graph for cryptlib.cpp:

Go to the source code of this file.

Classes

class  NullNameValuePairs
 
class  ClassNullRNG
 Random Number Generator that does not produce random numbers. More...
 
class  PK_DefaultEncryptionFilter
 
class  PK_DefaultDecryptionFilter
 

Functions

 CRYPTOPP_COMPILE_ASSERT (sizeof(byte)==1)
 
 CRYPTOPP_COMPILE_ASSERT (sizeof(word16)==2)
 
 CRYPTOPP_COMPILE_ASSERT (sizeof(word32)==4)
 
 CRYPTOPP_COMPILE_ASSERT (sizeof(word64)==8)
 
static const std::string s2 ("AAD")
 
const simple_ptr< NullNameValuePairss_pNullNameValuePairs (new NullNameValuePairs)
 
BufferedTransformationTheBitBucket ()
 An input discarding BufferedTransformation. More...
 
RandomNumberGeneratorNullRNG ()
 Random Number Generator that does not produce random numbers. More...
 

Variables

const std::string DEFAULT_CHANNEL = s1
 Default channel for BufferedTransformation. More...
 
const std::string AAD_CHANNEL = s2
 Channel for additional authenticated data. More...
 
const NameValuePairsg_nullNameValuePairs = *s_pNullNameValuePairs.m_p
 An empty set of name-value pairs. More...
 

Function Documentation

CRYPTOPP_COMPILE_ASSERT ( sizeof(byte = =1)
CRYPTOPP_COMPILE_ASSERT ( sizeof(word16 = =2)
CRYPTOPP_COMPILE_ASSERT ( sizeof(word32 = =4)
CRYPTOPP_COMPILE_ASSERT ( sizeof(word64 = =8)
RandomNumberGenerator& NullRNG ( )

Random Number Generator that does not produce random numbers.

Returns
reference that can be passed to functions that require a RandomNumberGenerator

NullRNG() returns a reference that can be passed to functions that require a RandomNumberGenerator but don't actually use it. The NullRNG() throws NotImplemented when a generation function is called.

See also
ClassNullRNG, PK_SignatureScheme::IsProbabilistic()

Definition at line 402 of file cryptlib.cpp.

Here is the caller graph for this function:

static const std::string s2 ( "AAD"  )

Here is the caller graph for this function:

const simple_ptr<NullNameValuePairs> s_pNullNameValuePairs ( new  NullNameValuePairs)

Here is the caller graph for this function:

BufferedTransformation& TheBitBucket ( )

An input discarding BufferedTransformation.

Returns
a reference to a BufferedTransformation object that discards all input

Definition at line 79 of file cryptlib.cpp.

Here is the caller graph for this function:

Variable Documentation

const std::string AAD_CHANNEL = s2

Channel for additional authenticated data.

AAD_CHANNEL is equal to "AAD"

Definition at line 60 of file cryptlib.cpp.

const std::string DEFAULT_CHANNEL = s1

Default channel for BufferedTransformation.

DEFAULT_CHANNEL is equal to an empty string

Definition at line 59 of file cryptlib.cpp.

const NameValuePairs& g_nullNameValuePairs = *s_pNullNameValuePairs.m_p

An empty set of name-value pairs.

Definition at line 76 of file cryptlib.cpp.