From 6bf5e3a050067a3b2a644eb4fb7e7b5933ec68ed Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 29 Sep 2017 11:01:16 +0300 Subject: [PATCH] Simpler bytes2big --- src/cypherpunks.ru/gogost/gost3410/utils.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cypherpunks.ru/gogost/gost3410/utils.go b/src/cypherpunks.ru/gogost/gost3410/utils.go index 22268ff..3052ead 100644 --- a/src/cypherpunks.ru/gogost/gost3410/utils.go +++ b/src/cypherpunks.ru/gogost/gost3410/utils.go @@ -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) { -- 2.44.0