Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Macros | Typedefs | Functions
datatest.cpp File Reference
#include "cryptlib.h"
#include "factory.h"
#include "integer.h"
#include "filters.h"
#include "hex.h"
#include "randpool.h"
#include "files.h"
#include "trunhash.h"
#include "queue.h"
#include "smartptr.h"
#include "validate.h"
#include "hkdf.h"
#include "stdcpp.h"
#include <iostream>
Include dependency graph for datatest.cpp:

Go to the source code of this file.

Classes

class  TestFailure
 
class  TestDataNameValuePairs
 

Macros

#define CRYPTOPP_DEFAULT_NO_DLL
 
#define CRYPTOPP_ENABLE_NAMESPACE_WEAK   1
 

Typedefs

typedef std::map< std::string, std::string > TestData
 

Functions

bool DataExists (const TestData &data, const char *name)
 
const std::string & GetRequiredDatum (const TestData &data, const char *name)
 
void RandomizedTransfer (BufferedTransformation &source, BufferedTransformation &target, bool finish, const std::string &channel=DEFAULT_CHANNEL)
 
void PutDecodedDatumInto (const TestData &data, const char *name, BufferedTransformation &target)
 
std::string GetDecodedDatum (const TestData &data, const char *name)
 
std::string GetOptionalDecodedDatum (const TestData &data, const char *name)
 
void TestKeyPairValidAndConsistent (CryptoMaterial &pub, const CryptoMaterial &priv)
 
void TestSignatureScheme (TestData &v)
 
void TestAsymmetricCipher (TestData &v)
 
void TestSymmetricCipher (TestData &v, const NameValuePairs &overrideParameters)
 
void TestAuthenticatedSymmetricCipher (TestData &v, const NameValuePairs &overrideParameters)
 
void TestDigestOrMAC (TestData &v, bool testDigest)
 
void TestKeyDerivationFunction (TestData &v)
 
bool GetField (std::istream &is, std::string &name, std::string &value)
 
void OutputPair (const NameValuePairs &v, const char *name)
 
void OutputNameValuePairs (const NameValuePairs &v)
 
void TestDataFile (std::string filename, const NameValuePairs &overrideParameters, unsigned int &totalTests, unsigned int &failedTests)
 
bool RunTestDataFile (const char *filename, const NameValuePairs &overrideParameters, bool thorough)
 

Macro Definition Documentation

#define CRYPTOPP_DEFAULT_NO_DLL

Definition at line 3 of file datatest.cpp.

#define CRYPTOPP_ENABLE_NAMESPACE_WEAK   1

Definition at line 4 of file datatest.cpp.

Typedef Documentation

typedef std::map<std::string, std::string> TestData

Definition at line 33 of file datatest.cpp.

Function Documentation

bool DataExists ( const TestData data,
const char *  name 
)

Definition at line 70 of file datatest.cpp.

Here is the caller graph for this function:

std::string GetDecodedDatum ( const TestData data,
const char *  name 
)

Definition at line 146 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool GetField ( std::istream &  is,
std::string &  name,
std::string &  value 
)

Definition at line 647 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string GetOptionalDecodedDatum ( const TestData data,
const char *  name 
)

Definition at line 153 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const std::string& GetRequiredDatum ( const TestData data,
const char *  name 
)

Definition at line 76 of file datatest.cpp.

Here is the caller graph for this function:

void OutputNameValuePairs ( const NameValuePairs v)

Definition at line 733 of file datatest.cpp.

Here is the call graph for this function:

void OutputPair ( const NameValuePairs v,
const char *  name 
)

Definition at line 723 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void PutDecodedDatumInto ( const TestData data,
const char *  name,
BufferedTransformation target 
)

Definition at line 96 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RandomizedTransfer ( BufferedTransformation source,
BufferedTransformation target,
bool  finish,
const std::string &  channel = DEFAULT_CHANNEL 
)

Definition at line 84 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool RunTestDataFile ( const char *  filename,
const NameValuePairs overrideParameters,
bool  thorough 
)

Definition at line 841 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TestAsymmetricCipher ( TestData v)

Definition at line 314 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TestAuthenticatedSymmetricCipher ( TestData v,
const NameValuePairs overrideParameters 
)

Definition at line 487 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TestDataFile ( std::string  filename,
const NameValuePairs overrideParameters,
unsigned int &  totalTests,
unsigned int &  failedTests 
)

Definition at line 754 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TestDigestOrMAC ( TestData v,
bool  testDigest 
)

Definition at line 573 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TestKeyDerivationFunction ( TestData v)

Definition at line 617 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TestKeyPairValidAndConsistent ( CryptoMaterial pub,
const CryptoMaterial priv 
)

Definition at line 211 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TestSignatureScheme ( TestData v)

Definition at line 227 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TestSymmetricCipher ( TestData v,
const NameValuePairs overrideParameters 
)

Definition at line 354 of file datatest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: