aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/base/key_spec.h
diff options
context:
space:
mode:
authorRenĂ© Korthaus <[email protected]>2016-01-11 14:25:13 +0100
committerRenĂ© Korthaus <[email protected]>2016-01-11 14:25:13 +0100
commit643c57b7593f8106d9142e20fcb8dcf7e8160f94 (patch)
tree9898499f290b7bb717d621eff14f7b21dfd17468 /src/lib/base/key_spec.h
parent672d29570e55686b90126b5d6f5d337ddf0b8f04 (diff)
Prefix more member vars with m_ prefix
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;
};
}