diff options
author | lloyd <[email protected]> | 2008-11-09 15:57:31 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-09 15:57:31 +0000 |
commit | a02b8a6dcebfa285e42a6a7010735dfdf7b47ac0 (patch) | |
tree | 57899ab98328aea62d6d665a38638e112697ff5a /src/block/des | |
parent | c604f94ec71cb520580c6fcf9257560bb7c053c5 (diff) |
Rename SymmetricAlgorithm::key to key_schedule to avoid many name
conflicts/collisions
Diffstat (limited to 'src/block/des')
-rw-r--r-- | src/block/des/des.cpp | 4 | ||||
-rw-r--r-- | src/block/des/des.h | 4 | ||||
-rw-r--r-- | src/block/des/desx.cpp | 2 | ||||
-rw-r--r-- | src/block/des/desx.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/block/des/des.cpp b/src/block/des/des.cpp index 53a1a278e..f6453cff0 100644 --- a/src/block/des/des.cpp +++ b/src/block/des/des.cpp @@ -187,7 +187,7 @@ void DES::dec(const byte in[], byte out[]) const /************************************************* * DES Key Schedule * *************************************************/ -void DES::key(const byte key[], u32bit) +void DES::key_schedule(const byte key[], u32bit) { des_key_schedule(round_key.begin(), key); } @@ -249,7 +249,7 @@ void TripleDES::dec(const byte in[], byte out[]) const /************************************************* * TripleDES Key Schedule * *************************************************/ -void TripleDES::key(const byte key[], u32bit length) +void TripleDES::key_schedule(const byte key[], u32bit length) { des_key_schedule(&round_key[0], key); des_key_schedule(&round_key[32], key + 8); diff --git a/src/block/des/des.h b/src/block/des/des.h index 8cd490b3c..f3a0d56eb 100644 --- a/src/block/des/des.h +++ b/src/block/des/des.h @@ -23,7 +23,7 @@ class BOTAN_DLL DES : public BlockCipher private: void enc(const byte[], byte[]) const; void dec(const byte[], byte[]) const; - void key(const byte[], u32bit); + void key_schedule(const byte[], u32bit); SecureBuffer<u32bit, 32> round_key; }; @@ -41,7 +41,7 @@ class BOTAN_DLL TripleDES : public BlockCipher private: void enc(const byte[], byte[]) const; void dec(const byte[], byte[]) const; - void key(const byte[], u32bit); + void key_schedule(const byte[], u32bit); SecureBuffer<u32bit, 96> round_key; }; diff --git a/src/block/des/desx.cpp b/src/block/des/desx.cpp index fb76ec731..41c3bcd8d 100644 --- a/src/block/des/desx.cpp +++ b/src/block/des/desx.cpp @@ -31,7 +31,7 @@ void DESX::dec(const byte in[], byte out[]) const /************************************************* * DESX Key Schedule * *************************************************/ -void DESX::key(const byte key[], u32bit) +void DESX::key_schedule(const byte key[], u32bit) { K1.copy(key, 8); des.set_key(key + 8, 8); diff --git a/src/block/des/desx.h b/src/block/des/desx.h index c7e407b62..1fa68fcde 100644 --- a/src/block/des/desx.h +++ b/src/block/des/desx.h @@ -23,7 +23,7 @@ class BOTAN_DLL DESX : public BlockCipher private: void enc(const byte[], byte[]) const; void dec(const byte[], byte[]) const; - void key(const byte[], u32bit); + void key_schedule(const byte[], u32bit); SecureBuffer<byte, 8> K1, K2; DES des; }; |