aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-27 03:54:15 +0000
committerlloyd <[email protected]>2009-12-27 03:54:15 +0000
commita20ea163139b544405e3597050ea27346e8ead2a (patch)
treeb0b579ba95c4647306938ae33ae0c6c0e84e29cb
parentaad4ec330263947ae5f7bcd45f95c1fd7f699c42 (diff)
Cleanup
-rw-r--r--src/filters/modes/ecb/ecb.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/filters/modes/ecb/ecb.cpp b/src/filters/modes/ecb/ecb.cpp
index bff6d70f4..3c11669ef 100644
--- a/src/filters/modes/ecb/ecb.cpp
+++ b/src/filters/modes/ecb/ecb.cpp
@@ -9,12 +9,6 @@
namespace Botan {
-namespace {
-
-const u32bit PARALLEL_BLOCKS = BOTAN_PARALLEL_BLOCKS_ECB;
-
-}
-
/*
* ECB_Encryption Constructor
*/
@@ -25,7 +19,7 @@ ECB_Encryption::ECB_Encryption(BlockCipher* ciph,
padder = pad;
plaintext.resize(cipher->BLOCK_SIZE);
- ciphertext.resize(cipher->BLOCK_SIZE * PARALLEL_BLOCKS);
+ ciphertext.resize(cipher->BLOCK_SIZE * BOTAN_PARALLEL_BLOCKS_ECB);
position = 0;
}
@@ -41,7 +35,7 @@ ECB_Encryption::ECB_Encryption(BlockCipher* ciph,
padder = pad;
plaintext.resize(cipher->BLOCK_SIZE);
- ciphertext.resize(cipher->BLOCK_SIZE * PARALLEL_BLOCKS);
+ ciphertext.resize(cipher->BLOCK_SIZE * BOTAN_PARALLEL_BLOCKS_ECB);
position = 0;
@@ -125,7 +119,7 @@ ECB_Decryption::ECB_Decryption(BlockCipher* ciph,
padder = pad;
ciphertext.resize(cipher->BLOCK_SIZE);
- plaintext.resize(cipher->BLOCK_SIZE * PARALLEL_BLOCKS);
+ plaintext.resize(cipher->BLOCK_SIZE * BOTAN_PARALLEL_BLOCKS_ECB);
position = 0;
}
@@ -141,7 +135,7 @@ ECB_Decryption::ECB_Decryption(BlockCipher* ciph,
padder = pad;
ciphertext.resize(cipher->BLOCK_SIZE);
- plaintext.resize(cipher->BLOCK_SIZE * PARALLEL_BLOCKS);
+ plaintext.resize(cipher->BLOCK_SIZE * BOTAN_PARALLEL_BLOCKS_ECB);
position = 0;