aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/modes/aead/chacha20poly1305
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-26 20:44:29 -0500
committerJack Lloyd <[email protected]>2016-11-26 20:44:29 -0500
commit0760582e79851bedffd19f4c53f06c419f71af40 (patch)
treed895219c602a29f9891aa7a6add88d4b080929dc /src/lib/modes/aead/chacha20poly1305
parentd39ab970c380154a33e5adec6f76e66c182b3d4f (diff)
Correct output_length bug in SIV and ChaCha20Poly1305 also
Diffstat (limited to 'src/lib/modes/aead/chacha20poly1305')
-rw-r--r--src/lib/modes/aead/chacha20poly1305/chacha20poly1305.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/modes/aead/chacha20poly1305/chacha20poly1305.h b/src/lib/modes/aead/chacha20poly1305/chacha20poly1305.h
index f58bd48ac..58328ac5b 100644
--- a/src/lib/modes/aead/chacha20poly1305/chacha20poly1305.h
+++ b/src/lib/modes/aead/chacha20poly1305/chacha20poly1305.h
@@ -83,7 +83,7 @@ class BOTAN_DLL ChaCha20Poly1305_Decryption final : public ChaCha20Poly1305_Mode
public:
size_t output_length(size_t input_length) const override
{
- BOTAN_ASSERT(input_length > tag_size(), "Sufficient input");
+ BOTAN_ASSERT(input_length >= tag_size(), "Sufficient input");
return input_length - tag_size();
}