From 72e28626c40de83eb37856e252bea647ed523ec4 Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 28 Mar 2013 20:14:21 +0000 Subject: Incorrect as text not usually aligned size --- checks/ocb.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'checks/ocb.cpp') 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 ocb_encrypt(const SymmetricKey& key, ocb.start(&nonce[0], nonce.size()); secure_vector 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 ocb_decrypt(const SymmetricKey& key, ocb.start(&nonce[0], nonce.size()); secure_vector buf(ct, ct+ct_len); - ocb.update(buf, 0); - ocb.finish(buf, buf.size()); - //ocb.finish(buf); + ocb.finish(buf, 0); return unlock(buf); } -- cgit v1.2.3