aboutsummaryrefslogtreecommitdiffstats
path: root/src/aead/ocb/ocb.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-03-27 18:24:31 +0000
committerlloyd <[email protected]>2013-03-27 18:24:31 +0000
commitc45eac0c30b6494a75223b389afcca5d7cb2e48d (patch)
tree3ff10c143d0f51f979c9a0edb00a7f36794088a9 /src/aead/ocb/ocb.cpp
parentd1cd41fe0d2869fbd5adce9e42e47fc5d6a9d2e9 (diff)
Allow tag sizes other than 128 bits in GCM and OCB
Diffstat (limited to 'src/aead/ocb/ocb.cpp')
-rw-r--r--src/aead/ocb/ocb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aead/ocb/ocb.cpp b/src/aead/ocb/ocb.cpp
index 50b33960f..df9d37fa2 100644
--- a/src/aead/ocb/ocb.cpp
+++ b/src/aead/ocb/ocb.cpp
@@ -313,7 +313,7 @@ void OCB_Encryption::finish(secure_vector<byte>& buffer)
mac ^= m_ad_hash;
- buffer += mac;
+ buffer += std::pair(&mac[0], tag_size());
zeroise(m_checksum);
zeroise(m_offset);