diff options
author | lloyd <[email protected]> | 2009-11-17 05:44:33 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-11-17 05:44:33 +0000 |
commit | c12e0e4f45497f8ecb628ba7d753f87aa8db0813 (patch) | |
tree | 5f2d3c4efd7efe0ac99366a84ebd50a062e15503 /src/modes/ecb | |
parent | 435965ac3b199d31b799ebefc012d928bc415621 (diff) | |
parent | 0d27bc0f8763cb6dd6307dbab7713058dee18b2c (diff) |
propagate from branch 'net.randombit.botan' (head cfb19182987fc95b2a8885584a38edb10b4709b3)
to branch 'net.randombit.botan.c++0x' (head 1570877c463fed4b632bc49a5b5ee27c57de2cb5)
Diffstat (limited to 'src/modes/ecb')
-rw-r--r-- | src/modes/ecb/ecb.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modes/ecb/ecb.cpp b/src/modes/ecb/ecb.cpp index 988a8b3f2..bff6d70f4 100644 --- a/src/modes/ecb/ecb.cpp +++ b/src/modes/ecb/ecb.cpp @@ -24,8 +24,8 @@ ECB_Encryption::ECB_Encryption(BlockCipher* ciph, cipher = ciph; padder = pad; - plaintext.create(cipher->BLOCK_SIZE); - ciphertext.create(cipher->BLOCK_SIZE * PARALLEL_BLOCKS); + plaintext.resize(cipher->BLOCK_SIZE); + ciphertext.resize(cipher->BLOCK_SIZE * PARALLEL_BLOCKS); position = 0; } @@ -40,8 +40,8 @@ ECB_Encryption::ECB_Encryption(BlockCipher* ciph, cipher = ciph; padder = pad; - plaintext.create(cipher->BLOCK_SIZE); - ciphertext.create(cipher->BLOCK_SIZE * PARALLEL_BLOCKS); + plaintext.resize(cipher->BLOCK_SIZE); + ciphertext.resize(cipher->BLOCK_SIZE * PARALLEL_BLOCKS); position = 0; @@ -124,8 +124,8 @@ ECB_Decryption::ECB_Decryption(BlockCipher* ciph, cipher = ciph; padder = pad; - ciphertext.create(cipher->BLOCK_SIZE); - plaintext.create(cipher->BLOCK_SIZE * PARALLEL_BLOCKS); + ciphertext.resize(cipher->BLOCK_SIZE); + plaintext.resize(cipher->BLOCK_SIZE * PARALLEL_BLOCKS); position = 0; } @@ -140,8 +140,8 @@ ECB_Decryption::ECB_Decryption(BlockCipher* ciph, cipher = ciph; padder = pad; - ciphertext.create(cipher->BLOCK_SIZE); - plaintext.create(cipher->BLOCK_SIZE * PARALLEL_BLOCKS); + ciphertext.resize(cipher->BLOCK_SIZE); + plaintext.resize(cipher->BLOCK_SIZE * PARALLEL_BLOCKS); position = 0; |