aboutsummaryrefslogtreecommitdiffstats
path: root/src/modes/aead/ocb/ocb.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-12-31 18:19:18 +0000
committerlloyd <[email protected]>2013-12-31 18:19:18 +0000
commit24bfc2734b25c0df447413f6cee187745ff90079 (patch)
tree93296fa97468ad0ae927c6b9184b136ca8d5e919 /src/modes/aead/ocb/ocb.h
parent98991e5c9326a480b890ef7ce112ebfb1216f1ae (diff)
Set default offset for all cipher mode update/final signatures.
Diffstat (limited to 'src/modes/aead/ocb/ocb.h')
-rw-r--r--src/modes/aead/ocb/ocb.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modes/aead/ocb/ocb.h b/src/modes/aead/ocb/ocb.h
index b4f24f281..e7d042de3 100644
--- a/src/modes/aead/ocb/ocb.h
+++ b/src/modes/aead/ocb/ocb.h
@@ -87,9 +87,9 @@ class BOTAN_DLL OCB_Encryption : public OCB_Mode
size_t minimum_final_size() const override { return 0; }
- void update(secure_vector<byte>& blocks, size_t offset) override;
+ void update(secure_vector<byte>& blocks, size_t offset = 0) override;
- void finish(secure_vector<byte>& final_block, size_t offset) override;
+ void finish(secure_vector<byte>& final_block, size_t offset = 0) override;
private:
void encrypt(byte input[], size_t blocks);
};
@@ -112,9 +112,9 @@ class BOTAN_DLL OCB_Decryption : public OCB_Mode
size_t minimum_final_size() const override { return tag_size(); }
- void update(secure_vector<byte>& blocks, size_t offset) override;
+ void update(secure_vector<byte>& blocks, size_t offset = 0) override;
- void finish(secure_vector<byte>& final_block, size_t offset) override;
+ void finish(secure_vector<byte>& final_block, size_t offset = 0) override;
private:
void decrypt(byte input[], size_t blocks);
};