2022-10-03 17:25:44 -07:00

19 lines
337 B
Go

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
}