aboutsummaryrefslogtreecommitdiffstats
path: root/src/modes/xts
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-08-27 23:59:58 +0000
committerlloyd <[email protected]>2009-08-27 23:59:58 +0000
commit839af376946cffbabcafc84d8baf4a95bbaa42bf (patch)
tree8c0121757e4a0f2da1926d38e192639e71302729 /src/modes/xts
parent83736f3f47b62c6848bde912753218acab2a1742 (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.cpp4
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;
}
}