]> Cypherpunks.ru repositories - gohpenc.git/blobdiff - main.go
Raised copyright years
[gohpenc.git] / main.go
diff --git a/main.go b/main.go
index a05432858e5dfece95fd30e9a1bec8ea7a9b9b62..43eb680f8f1e29193d12bc36a81adc60fa097fc2 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-2022 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)