diff options
author | lloyd <[email protected]> | 2009-08-27 23:59:58 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-08-27 23:59:58 +0000 |
commit | 839af376946cffbabcafc84d8baf4a95bbaa42bf (patch) | |
tree | 8c0121757e4a0f2da1926d38e192639e71302729 /src/modes/xts | |
parent | 83736f3f47b62c6848bde912753218acab2a1742 (diff) |
In XTS, reset the buffer positions at the end of a message.
Diffstat (limited to 'src/modes/xts')
-rw-r--r-- | src/modes/xts/xts.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modes/xts/xts.cpp b/src/modes/xts/xts.cpp index 8819c85dc..3e93f7c06 100644 --- a/src/modes/xts/xts.cpp +++ b/src/modes/xts/xts.cpp @@ -188,6 +188,8 @@ void XTS_Encryption::end_msg() send(buffer, position); } + + position = 0; } /* @@ -339,6 +341,8 @@ void XTS_Decryption::end_msg() send(buffer, position); } + + position = 0; } } |