X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=gost34112012256%2Fesptree.go;h=f1f6c53912614685f32bd0ad1154196001211ebe;hb=HEAD;hp=dceaeb705bef921faf3f40cf9a72dd688881117d;hpb=c07494bbd559b9d00f391e28cfd070e18afe9900;p=gogost.git diff --git a/gost34112012256/esptree.go b/gost34112012256/esptree.go index dceaeb7..da979db 100644 --- a/gost34112012256/esptree.go +++ b/gost34112012256/esptree.go @@ -1,5 +1,5 @@ // GoGOST -- Pure Go GOST cryptographic functions library -// Copyright (C) 2015-2019 Sergey Matveev +// Copyright (C) 2015-2024 Sergey Matveev // // 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 }