aboutsummaryrefslogtreecommitdiffstats
path: root/src/modes/xts
diff options
context:
space:
mode:
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;
}
}