You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
337 B

package sha512
import ("math/big")
func newBigInt(s string) *big.Int {
result, success := new(big.Int).SetString(s, 16)
if !success {
panic("invalid bigint")
}
return result
}
func newBigIntBase10(s string) *big.Int {
result, success := new(big.Int).SetString(s, 10)
if !success {
panic("invalid bigint")
}
return result
}