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/sym_algo | |
parent | c604f94ec71cb520580c6fcf9257560bb7c053c5 (diff) |
Rename SymmetricAlgorithm::key to key_schedule to avoid many name
conflicts/collisions
Diffstat (limited to 'src/sym_algo')
-rw-r--r-- | src/sym_algo/sym_algo.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sym_algo/sym_algo.h b/src/sym_algo/sym_algo.h index dbefbe4ca..d71163ead 100644 --- a/src/sym_algo/sym_algo.h +++ b/src/sym_algo/sym_algo.h @@ -44,19 +44,19 @@ class BOTAN_DLL SymmetricAlgorithm * Set the symmetric key of this object. * @param key the SymmetricKey to be set. */ - void set_key(const SymmetricKey& skey) throw(Invalid_Key_Length) - { set_key(skey.begin(), skey.length()); } + void set_key(const SymmetricKey& key) throw(Invalid_Key_Length) + { set_key(key.begin(), key.length()); } /** * Set the symmetric key of this object. * @param key the to be set as a byte array. * @param the length of the byte array. */ - void set_key(const byte skey[], u32bit length) throw(Invalid_Key_Length) + void set_key(const byte key[], u32bit length) throw(Invalid_Key_Length) { if(!valid_keylength(length)) throw Invalid_Key_Length(name(), length); - key(skey, length); + key_schedule(key, length); } /** @@ -85,7 +85,7 @@ class BOTAN_DLL SymmetricAlgorithm virtual ~SymmetricAlgorithm() {} private: - virtual void key(const byte[], u32bit) = 0; + virtual void key_schedule(const byte[], u32bit) = 0; }; /** |