aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/seed/seed.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/seed/seed.h')
-rw-r--r--src/block/seed/seed.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/block/seed/seed.h b/src/block/seed/seed.h
index 0c80199ad..48fefc9b0 100644
--- a/src/block/seed/seed.h
+++ b/src/block/seed/seed.h
@@ -18,16 +18,16 @@ namespace Botan {
class BOTAN_DLL SEED : 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() { K.clear(); }
+ void clear() { zeroise(K); }
std::string name() const { return "SEED"; }
BlockCipher* clone() const { return new SEED; }
- SEED() : BlockCipher(16, 16) {}
+ SEED() : BlockCipher(16, 16), K(32) {}
private:
- void key_schedule(const byte[], u32bit);
+ void key_schedule(const byte[], size_t);
class G_FUNC
{
@@ -37,7 +37,7 @@ class BOTAN_DLL SEED : public BlockCipher
static const u32bit S0[256], S1[256], S2[256], S3[256];
};
- SecureVector<u32bit, 32> K;
+ SecureVector<u32bit> K;
};
}