]> Cypherpunks.ru repositories - gogost.git/commitdiff
Remove unnecessary condition
authorSergey Matveev <stargrave@stargrave.org>
Thu, 25 Jul 2019 07:48:26 +0000 (10:48 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 25 Jul 2019 07:48:26 +0000 (10:48 +0300)
src/cypherpunks.ru/gogost/mgm/mode.go

index f8db79604954fdc2d8ac1d66542d0af32ebab6ff..2781cbba2d3554e9593c8caebfa04509f34a7ac1 100644 (file)
@@ -64,7 +64,7 @@ func NewMGM(cipher cipher.Block, tagSize int) (cipher.AEAD, error) {
        if !(blockSize == 8 || blockSize == 16) {
                return nil, errors.New("MGM supports only 64/128 blocksizes")
        }
-       if tagSize < 4 || tagSize > 16 || tagSize > blockSize {
+       if tagSize < 4 || tagSize > blockSize {
                return nil, errors.New("invalid tag size")
        }
        mgm := MGM{