From 083f699c30d584ac59453139e4f2e03d1fde0545 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 31 Oct 2014 11:31:27 +0000 Subject: Fix various warnings from VC++ 2014 and add missing include --- src/lib/modes/aead/ocb/ocb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/modes/aead/ocb') diff --git a/src/lib/modes/aead/ocb/ocb.cpp b/src/lib/modes/aead/ocb/ocb.cpp index 2e337ba66..5909e0c12 100644 --- a/src/lib/modes/aead/ocb/ocb.cpp +++ b/src/lib/modes/aead/ocb/ocb.cpp @@ -296,9 +296,9 @@ void OCB_Encryption::finish(secure_vector& buffer, size_t offset) m_offset ^= m_L->star(); // Offset_* - secure_vector buf(BS); - m_cipher->encrypt(m_offset, buf); - xor_buf(&remainder[0], &buf[0], remainder_bytes); + secure_vector zeros(BS); + m_cipher->encrypt(m_offset, zeros); + xor_buf(&remainder[0], &zeros[0], remainder_bytes); } } -- cgit v1.2.3