From: Sergey Matveev Date: Fri, 29 Sep 2017 08:01:16 +0000 (+0300) Subject: Simpler bytes2big X-Git-Tag: 3.0~34 X-Git-Url: http://www.git.cypherpunks.ru/?p=gogost.git;a=commitdiff_plain;h=6bf5e3a050067a3b2a644eb4fb7e7b5933ec68ed Simpler bytes2big --- 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) {