/*
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
}
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)