aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/camellia
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/block/camellia')
-rw-r--r--src/lib/block/camellia/camellia.cpp24
-rw-r--r--src/lib/block/camellia/camellia.h6
2 files changed, 15 insertions, 15 deletions
diff --git a/src/lib/block/camellia/camellia.cpp b/src/lib/block/camellia/camellia.cpp
index e9b10c528..ac5d57d4e 100644
--- a/src/lib/block/camellia/camellia.cpp
+++ b/src/lib/block/camellia/camellia.cpp
@@ -860,62 +860,62 @@ void key_schedule(secure_vector<u64bit>& SK, const byte key[], size_t length)
void Camellia_128::encrypt_n(const byte in[], byte out[], size_t blocks) const
{
- Camellia_F::encrypt(in, out, blocks, SK, 9);
+ Camellia_F::encrypt(in, out, blocks, m_SK, 9);
}
void Camellia_192::encrypt_n(const byte in[], byte out[], size_t blocks) const
{
- Camellia_F::encrypt(in, out, blocks, SK, 12);
+ Camellia_F::encrypt(in, out, blocks, m_SK, 12);
}
void Camellia_256::encrypt_n(const byte in[], byte out[], size_t blocks) const
{
- Camellia_F::encrypt(in, out, blocks, SK, 12);
+ Camellia_F::encrypt(in, out, blocks, m_SK, 12);
}
void Camellia_128::decrypt_n(const byte in[], byte out[], size_t blocks) const
{
- Camellia_F::decrypt(in, out, blocks, SK, 9);
+ Camellia_F::decrypt(in, out, blocks, m_SK, 9);
}
void Camellia_192::decrypt_n(const byte in[], byte out[], size_t blocks) const
{
- Camellia_F::decrypt(in, out, blocks, SK, 12);
+ Camellia_F::decrypt(in, out, blocks, m_SK, 12);
}
void Camellia_256::decrypt_n(const byte in[], byte out[], size_t blocks) const
{
- Camellia_F::decrypt(in, out, blocks, SK, 12);
+ Camellia_F::decrypt(in, out, blocks, m_SK, 12);
}
void Camellia_128::key_schedule(const byte key[], size_t length)
{
- Camellia_F::key_schedule(SK, key, length);
+ Camellia_F::key_schedule(m_SK, key, length);
}
void Camellia_192::key_schedule(const byte key[], size_t length)
{
- Camellia_F::key_schedule(SK, key, length);
+ Camellia_F::key_schedule(m_SK, key, length);
}
void Camellia_256::key_schedule(const byte key[], size_t length)
{
- Camellia_F::key_schedule(SK, key, length);
+ Camellia_F::key_schedule(m_SK, key, length);
}
void Camellia_128::clear()
{
- zap(SK);
+ zap(m_SK);
}
void Camellia_192::clear()
{
- zap(SK);
+ zap(m_SK);
}
void Camellia_256::clear()
{
- zap(SK);
+ zap(m_SK);
}
}
diff --git a/src/lib/block/camellia/camellia.h b/src/lib/block/camellia/camellia.h
index 884cb2bd7..c83741d3c 100644
--- a/src/lib/block/camellia/camellia.h
+++ b/src/lib/block/camellia/camellia.h
@@ -27,7 +27,7 @@ class BOTAN_DLL Camellia_128 : public Block_Cipher_Fixed_Params<16, 16>
private:
void key_schedule(const byte key[], size_t length) override;
- secure_vector<u64bit> SK;
+ secure_vector<u64bit> m_SK;
};
/**
@@ -45,7 +45,7 @@ class BOTAN_DLL Camellia_192 : public Block_Cipher_Fixed_Params<16, 24>
private:
void key_schedule(const byte key[], size_t length) override;
- secure_vector<u64bit> SK;
+ secure_vector<u64bit> m_SK;
};
/**
@@ -63,7 +63,7 @@ class BOTAN_DLL Camellia_256 : public Block_Cipher_Fixed_Params<16, 32>
private:
void key_schedule(const byte key[], size_t length) override;
- secure_vector<u64bit> SK;
+ secure_vector<u64bit> m_SK;
};
}