From 643c57b7593f8106d9142e20fcb8dcf7e8160f94 Mon Sep 17 00:00:00 2001 From: René Korthaus <r.korthaus@sirrix.com> Date: Mon, 11 Jan 2016 14:25:13 +0100 Subject: Prefix more member vars with m_ prefix --- src/lib/base/key_spec.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/lib/base/key_spec.h') 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; }; } -- cgit v1.2.3