aboutsummaryrefslogtreecommitdiffstats
path: root/checks/ocb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'checks/ocb.cpp')
-rw-r--r--checks/ocb.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/checks/ocb.cpp b/checks/ocb.cpp
index df9c5089e..abd84df7a 100644
--- a/checks/ocb.cpp
+++ b/checks/ocb.cpp
@@ -26,9 +26,7 @@ std::vector<byte> ocb_encrypt(const SymmetricKey& key,
ocb.start(&nonce[0], nonce.size());
secure_vector<byte> buf(pt, pt+pt_len);
- ocb.update(buf, 0);
- ocb.finish(buf, buf.size());
- //ocb.finish(buf);
+ ocb.finish(buf, 0);
return unlock(buf);
}
@@ -46,9 +44,7 @@ std::vector<byte> ocb_decrypt(const SymmetricKey& key,
ocb.start(&nonce[0], nonce.size());
secure_vector<byte> buf(ct, ct+ct_len);
- ocb.update(buf, 0);
- ocb.finish(buf, buf.size());
- //ocb.finish(buf);
+ ocb.finish(buf, 0);
return unlock(buf);
}