aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/base/key_spec.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-01-12 23:38:30 -0500
committerJack Lloyd <[email protected]>2016-01-12 23:38:30 -0500
commitb681659b470e504a9a670cdeff8916765ab89c68 (patch)
treecf60adfd76d43ded03a7ca2156dec7afca5c95f3 /src/lib/base/key_spec.h
parent2cfd515aa493324c794071c3e70e61d5be2dfce7 (diff)
parent643c57b7593f8106d9142e20fcb8dcf7e8160f94 (diff)
Merge GH #407 Add m_ prefix to more member variables
Diffstat (limited to 'src/lib/base/key_spec.h')
-rw-r--r--src/lib/base/key_spec.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/base/key_spec.h b/src/lib/base/key_spec.h
index 78b6b8a23..f9cdcc78d 100644
--- a/src/lib/base/key_spec.h
+++ b/src/lib/base/key_spec.h
@@ -23,9 +23,9 @@ class BOTAN_DLL Key_Length_Specification
* @param keylen the supported key length
*/
Key_Length_Specification(size_t keylen) :
- min_keylen(keylen),
- max_keylen(keylen),
- keylen_mod(1)
+ m_min_keylen(keylen),
+ m_max_keylen(keylen),
+ m_keylen_mod(1)
{
}
@@ -38,9 +38,9 @@ class BOTAN_DLL Key_Length_Specification
Key_Length_Specification(size_t min_k,
size_t max_k,
size_t k_mod = 1) :
- min_keylen(min_k),
- max_keylen(max_k ? max_k : min_k),
- keylen_mod(k_mod)
+ m_min_keylen(min_k),
+ m_max_keylen(max_k ? max_k : min_k),
+ m_keylen_mod(k_mod)
{
}
@@ -50,9 +50,9 @@ class BOTAN_DLL Key_Length_Specification
*/
bool valid_keylength(size_t length) const
{
- return ((length >= min_keylen) &&
- (length <= max_keylen) &&
- (length % keylen_mod == 0));
+ return ((length >= m_min_keylen) &&
+ (length <= m_max_keylen) &&
+ (length % m_keylen_mod == 0));
}
/**
@@ -60,7 +60,7 @@ class BOTAN_DLL Key_Length_Specification
*/
size_t minimum_keylength() const
{
- return min_keylen;
+ return m_min_keylen;
}
/**
@@ -68,7 +68,7 @@ class BOTAN_DLL Key_Length_Specification
*/
size_t maximum_keylength() const
{
- return max_keylen;
+ return m_max_keylen;
}
/**
@@ -76,18 +76,18 @@ class BOTAN_DLL Key_Length_Specification
*/
size_t keylength_multiple() const
{
- return keylen_mod;
+ return m_keylen_mod;
}
Key_Length_Specification multiple(size_t n) const
{
- return Key_Length_Specification(n * min_keylen,
- n * max_keylen,
- n * keylen_mod);
+ return Key_Length_Specification(n * m_min_keylen,
+ n * m_max_keylen,
+ n * m_keylen_mod);
}
private:
- size_t min_keylen, max_keylen, keylen_mod;
+ size_t m_min_keylen, m_max_keylen, m_keylen_mod;
};
}