diff options
Diffstat (limited to 'src/block/seed')
-rw-r--r-- | src/block/seed/seed.cpp | 8 | ||||
-rw-r--r-- | src/block/seed/seed.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/block/seed/seed.cpp b/src/block/seed/seed.cpp index 015d2d48d..408220013 100644 --- a/src/block/seed/seed.cpp +++ b/src/block/seed/seed.cpp @@ -54,8 +54,8 @@ void SEED::encrypt_n(const byte in[], byte out[], size_t blocks) const store_be(out, B2, B3, B0, B1); - in += block_size(); - out += block_size(); + in += BLOCK_SIZE; + out += BLOCK_SIZE; } } @@ -94,8 +94,8 @@ void SEED::decrypt_n(const byte in[], byte out[], size_t blocks) const store_be(out, B2, B3, B0, B1); - in += block_size(); - out += block_size(); + in += BLOCK_SIZE; + out += BLOCK_SIZE; } } diff --git a/src/block/seed/seed.h b/src/block/seed/seed.h index 48fefc9b0..649e28a68 100644 --- a/src/block/seed/seed.h +++ b/src/block/seed/seed.h @@ -15,7 +15,7 @@ namespace Botan { /** * SEED, a Korean block cipher */ -class BOTAN_DLL SEED : public BlockCipher +class BOTAN_DLL SEED : public BlockCipher_Fixed_Block_Size<16> { public: void encrypt_n(const byte in[], byte out[], size_t blocks) const; @@ -25,7 +25,7 @@ class BOTAN_DLL SEED : public BlockCipher std::string name() const { return "SEED"; } BlockCipher* clone() const { return new SEED; } - SEED() : BlockCipher(16, 16), K(32) {} + SEED() : BlockCipher_Fixed_Block_Size(16), K(32) {} private: void key_schedule(const byte[], size_t); |