aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-03-28 20:14:21 +0000
committerlloyd <[email protected]>2013-03-28 20:14:21 +0000
commit72e28626c40de83eb37856e252bea647ed523ec4 (patch)
tree67e7e87ad061a893cdf46896c456ed62c8da72b2 /checks
parenta659cfe131ca4ea8b68c6e5b2082d3b03080800b (diff)
Incorrect as text not usually aligned size
Diffstat (limited to 'checks')
-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);
}