diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-11-04 14:21:54 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-11-04 14:21:54 -0500 |
commit | 40fa6873f9581146d377b4acd379d04fcd0eaa0a (patch) | |
tree | b04c2444d8c20c72612fa9007999fd738f832e17 /cryptlib.h | |
parent | f7c0fab5b2d90b384f9a3002f8e780dd4fe29906 (diff) | |
download | cryptopp-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.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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
|