summaryrefslogtreecommitdiff
path: root/cryptlib.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-11-04 14:21:54 -0500
committerJeffrey Walton <noloader@gmail.com>2018-11-04 14:21:54 -0500
commit40fa6873f9581146d377b4acd379d04fcd0eaa0a (patch)
treeb04c2444d8c20c72612fa9007999fd738f832e17 /cryptlib.h
parentf7c0fab5b2d90b384f9a3002f8e780dd4fe29906 (diff)
downloadcryptopp-git-40fa6873f9581146d377b4acd379d04fcd0eaa0a.tar.gz
Add ability to Seek64 in test framework (GH #732)
Also see https://github.com/randombit/botan/pull/1728
Diffstat (limited to 'cryptlib.h')
-rw-r--r--cryptlib.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/cryptlib.h b/cryptlib.h
index 78bb6d68..e4972bc0 100644
--- a/cryptlib.h
+++ b/cryptlib.h
@@ -393,6 +393,24 @@ public:
CRYPTOPP_DLL int GetIntValueWithDefault(const char *name, int defaultValue) const
{return GetValueWithDefault(name, defaultValue);}
+ /// \brief Get a named value with type word64
+ /// \param name the name of the value to retrieve
+ /// \param value the value retrieved upon success
+ /// \return true if an word64 value was retrieved, false otherwise
+ /// \sa GetValue(), GetValueWithDefault(), GetWord64ValueWithDefault(), GetIntValue(),
+ /// GetIntValueWithDefault(), GetRequiredParameter() and GetRequiredIntParameter()
+ CRYPTOPP_DLL bool GetWord64Value(const char *name, word64 &value) const
+ {return GetValue(name, value);}
+
+ /// \brief Get a named value with type word64, with default
+ /// \param name the name of the value to retrieve
+ /// \param defaultValue the default value if the name does not exist
+ /// \return the value retrieved on success or the default value
+ /// \sa GetValue(), GetValueWithDefault(), GetWord64Value(), GetIntValue(),
+ /// GetIntValueWithDefault(), GetRequiredParameter() and GetRequiredWord64Parameter()
+ CRYPTOPP_DLL word64 GetWord64ValueWithDefault(const char *name, word64 defaultValue) const
+ {return GetValueWithDefault(name, defaultValue);}
+
/// \brief Ensures an expected name and type is present
/// \param name the name of the value
/// \param stored the type that was stored for the name