]> Cypherpunks.ru repositories - gogost.git/blobdiff - gost34112012256/esptree.go
Download link for 5.14.1 release
[gogost.git] / gost34112012256 / esptree.go
index dceaeb705bef921faf3f40cf9a72dd688881117d..da979db16bd2159a57fce9eade512d031693e7ac 100644 (file)
@@ -1,5 +1,5 @@
 // GoGOST -- Pure Go GOST cryptographic functions library
-// Copyright (C) 2015-2019 Sergey Matveev <stargrave@stargrave.org>
+// Copyright (C) 2015-2024 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
@@ -32,7 +32,7 @@ func NewESPTree(keyRoot []byte) *ESPTree {
                keyRoot: key,
                key:     make([]byte, Size),
        }
-       t.isPrev[0] += 1 // invalidate cache
+       t.isPrev[0]++ // invalidate cache
        t.DeriveCached([]byte{0x00, 0x00, 0x00, 0x00, 0x00})
        return t
 }