]> Cypherpunks.ru repositories - gogost.git/blobdiff - src/cypherpunks.ru/gogost/gost3410/ukm.go
Forbid any later GNU GPL versions autousage
[gogost.git] / src / cypherpunks.ru / gogost / gost3410 / ukm.go
index 4eda4fcab92bb229d0d92ae3c8e7207acc225d64..975477dd984b7bbaaa1813ad2e590ccd828ec9ce 100644 (file)
@@ -3,8 +3,7 @@
 //
 // 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
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
+// the Free Software Foundation, version 3 of the License.
 //
 // This program is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -22,7 +21,8 @@ import (
 
 func NewUKM(raw []byte) *big.Int {
        t := make([]byte, len(raw))
-       copy(t, raw)
-       reverse(t)
+       for i := 0; i < len(t); i++ {
+               t[i] = raw[len(raw)-i-1]
+       }
        return bytes2big(t)
 }