aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/stream/salsa20/salsa20.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/stream/salsa20/salsa20.h')
-rw-r--r--src/lib/stream/salsa20/salsa20.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/stream/salsa20/salsa20.h b/src/lib/stream/salsa20/salsa20.h
index 8256ea4db..a128c5a98 100644
--- a/src/lib/stream/salsa20/salsa20.h
+++ b/src/lib/stream/salsa20/salsa20.h
@@ -23,7 +23,7 @@ class BOTAN_DLL Salsa20 final : public StreamCipher
void set_iv(const byte iv[], size_t iv_len) override;
bool valid_iv_length(size_t iv_len) const override
- { return (iv_len == 8 || iv_len == 24); }
+ { return (iv_len == 0 || iv_len == 8 || iv_len == 24); }
Key_Length_Specification key_spec() const override
{