diff options
author | Jack Lloyd <[email protected]> | 2016-09-26 20:41:11 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-09-26 20:41:11 -0400 |
commit | 16131507a198c1b0ac608e4313bf02d41ab2f3b5 (patch) | |
tree | 7fc013750400911bdb6ec754afa6885ab8f6b404 /src/lib/modes/ecb/ecb.h | |
parent | 7df9d0dcd968a4c0462b6e95dae4ec847b04199e (diff) | |
parent | 507d926da825fbc1d9d74b4517dbab47702c66b9 (diff) |
Merge GH #516 Cipher_Mode API improvements
Diffstat (limited to 'src/lib/modes/ecb/ecb.h')
-rw-r--r-- | src/lib/modes/ecb/ecb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/modes/ecb/ecb.h b/src/lib/modes/ecb/ecb.h index aebd4c1a5..9ebbf76a4 100644 --- a/src/lib/modes/ecb/ecb.h +++ b/src/lib/modes/ecb/ecb.h @@ -39,7 +39,7 @@ class BOTAN_DLL ECB_Mode : public Cipher_Mode const BlockCipherModePaddingMethod& padding() const { return *m_padding; } private: - secure_vector<byte> start_raw(const byte nonce[], size_t nonce_len) override; + void start_msg(const byte nonce[], size_t nonce_len) override; void key_schedule(const byte key[], size_t length) override; std::unique_ptr<BlockCipher> m_cipher; @@ -55,7 +55,7 @@ class BOTAN_DLL ECB_Encryption final : public ECB_Mode ECB_Encryption(BlockCipher* cipher, BlockCipherModePaddingMethod* padding) : ECB_Mode(cipher, padding) {} - void update(secure_vector<byte>& blocks, size_t offset = 0) override; + size_t process(uint8_t buf[], size_t size) override; void finish(secure_vector<byte>& final_block, size_t offset = 0) override; @@ -73,7 +73,7 @@ class BOTAN_DLL ECB_Decryption final : public ECB_Mode ECB_Decryption(BlockCipher* cipher, BlockCipherModePaddingMethod* padding) : ECB_Mode(cipher, padding) {} - void update(secure_vector<byte>& blocks, size_t offset = 0) override; + size_t process(uint8_t buf[], size_t size) override; void finish(secure_vector<byte>& final_block, size_t offset = 0) override; |