]> Cypherpunks.ru repositories - gohpenc.git/blobdiff - main.go
Raise copyright years
[gohpenc.git] / main.go
diff --git a/main.go b/main.go
index a05432858e5dfece95fd30e9a1bec8ea7a9b9b62..1bd48fbcb337aac74e0c2e01b26876c7701a3542 100644 (file)
--- a/main.go
+++ b/main.go
@@ -1,6 +1,6 @@
 /*
 gohpenc -- Go high-performance encryption utility
-Copyright (C) 2017-2020 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2017-2021 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -157,6 +157,9 @@ func main() {
        }
 
        bs = *blockSize * (1 << 10)
+       if bs > 1<<32 {
+               panic("blocksize exceeds 32-bits")
+       }
        stdin := bufio.NewReaderSize(os.Stdin, LenSize+bs+poly1305.TagSize)
 
        workers := make([]*Worker, *threads)