aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/noekeon/noekeon.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/noekeon/noekeon.h')
-rw-r--r--src/block/noekeon/noekeon.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/block/noekeon/noekeon.h b/src/block/noekeon/noekeon.h
index 2e524f8b8..593afa634 100644
--- a/src/block/noekeon/noekeon.h
+++ b/src/block/noekeon/noekeon.h
@@ -18,14 +18,14 @@ namespace Botan {
class BOTAN_DLL Noekeon : public BlockCipher
{
public:
- void encrypt_n(const byte in[], byte out[], u32bit blocks) const;
- void decrypt_n(const byte in[], byte out[], u32bit blocks) const;
+ void encrypt_n(const byte in[], byte out[], size_t blocks) const;
+ void decrypt_n(const byte in[], byte out[], size_t blocks) const;
void clear();
std::string name() const { return "Noekeon"; }
BlockCipher* clone() const { return new Noekeon; }
- Noekeon() : BlockCipher(16, 16) {}
+ Noekeon() : BlockCipher(16, 16), EK(4), DK(4) {}
protected:
/**
* The Noekeon round constants
@@ -35,16 +35,16 @@ class BOTAN_DLL Noekeon : public BlockCipher
/**
* @return const reference to encryption subkeys
*/
- const SecureVector<u32bit, 4>& get_EK() const { return EK; }
+ const SecureVector<u32bit>& get_EK() const { return EK; }
/**
* @return const reference to decryption subkeys
*/
- const SecureVector<u32bit, 4>& get_DK() const { return DK; }
+ const SecureVector<u32bit>& get_DK() const { return DK; }
private:
- void key_schedule(const byte[], u32bit);
- SecureVector<u32bit, 4> EK, DK;
+ void key_schedule(const byte[], size_t);
+ SecureVector<u32bit> EK, DK;
};
}