]> Cypherpunks.ru repositories - gogost.git/blobdiff - src/cypherpunks.ru/gogost/gost3410/utils.go
Simpler bytes2big
[gogost.git] / src / cypherpunks.ru / gogost / gost3410 / utils.go
index 22268ff1fe42003ea5e3351b82c20119af4c000b..3052eadff6875e25c720722647e2d98fa8416703 100644 (file)
@@ -21,9 +21,7 @@ import (
 )
 
 func bytes2big(d []byte) *big.Int {
-       n := big.NewInt(0)
-       n.SetBytes(d)
-       return n
+       return big.NewInt(0).SetBytes(d)
 }
 
 func reverse(d []byte) {