aboutsummaryrefslogtreecommitdiffstats
path: root/src/modes/aead/ocb
diff options
context:
space:
mode:
Diffstat (limited to 'src/modes/aead/ocb')
-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);
};