diff options
-rw-r--r-- | src/lib/mac/poly1305/poly1305.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/mac/poly1305/poly1305.cpp b/src/lib/mac/poly1305/poly1305.cpp index 32ab64d7e..11ce0fe41 100644 --- a/src/lib/mac/poly1305/poly1305.cpp +++ b/src/lib/mac/poly1305/poly1305.cpp @@ -60,7 +60,7 @@ void Poly1305::final_result(byte out[]) if(m_buf_pos != 0) { m_buf[m_buf_pos] = 1; - clear_mem(&m_buf[m_buf_pos+1], m_buf.size() - m_buf_pos); + clear_mem(&m_buf[m_buf_pos+1], m_buf.size() - m_buf_pos - 1); poly1305_blocks(m_poly, &m_buf[0], 1, true); } |