X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgogost%2Fgost3410%2Fukm.go;h=4b04d1cf605bac72a91240f7b5862c7cd728caff;hb=ba18f430469e7aa33807ec53167250035fa890e8;hp=4eda4fcab92bb229d0d92ae3c8e7207acc225d64;hpb=a32e80313a4374abe764a12d85cb87043232ca4e;p=gogost.git diff --git a/src/cypherpunks.ru/gogost/gost3410/ukm.go b/src/cypherpunks.ru/gogost/gost3410/ukm.go index 4eda4fc..4b04d1c 100644 --- a/src/cypherpunks.ru/gogost/gost3410/ukm.go +++ b/src/cypherpunks.ru/gogost/gost3410/ukm.go @@ -22,7 +22,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) }