5#ifndef CRYPTOPP_IMPORTS
14 if (strcmp(name,
"ValueNames") == 0)
15 return m_pairs1.GetVoidValue(name, valueType, pValue) && m_pairs2.GetVoidValue(name, valueType, pValue);
17 return m_pairs1.GetVoidValue(name, valueType, pValue) || m_pairs2.GetVoidValue(name, valueType, pValue);
26bool AlgorithmParametersBase::GetVoidValue(
const char *name,
const std::type_info &valueType,
void *pValue)
const
28 if (strcmp(name,
"ValueNames") == 0)
32 m_next->GetVoidValue(name, valueType, pValue);
33 (*
reinterpret_cast<std::string *
>(pValue) += m_name) +=
";";
36 else if (strcmp(name, m_name) == 0)
38 AssignValue(name, valueType, pValue);
42 else if (m_next.get())
43 return m_next->GetVoidValue(name, valueType, pValue);
49 : m_defaultThrowIfNotUsed(true)
54 : m_defaultThrowIfNotUsed(x.m_defaultThrowIfNotUsed)
68 return m_next->GetVoidValue(name, valueType, pValue);
Classes for working with NameValuePairs.
Base class for AlgorithmParameters.
An object that implements NameValuePairs.
bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const
Get a named value.
AlgorithmParameters()
Construct a AlgorithmParameters.
bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const
Get a named value.
static CRYPTOPP_DLL void ThrowIfTypeMismatch(const char *name, const std::type_info &stored, const std::type_info &retrieving)
Ensures an expected name and type is present.
Multiple precision integer with arithmetic operations.
Crypto++ library namespace.
#define CRYPTOPP_ASSERT(exp)
Debugging and diagnostic assertion.