• Felix Lange's avatar
    crypto: fix error check in toECDSA (#15632) · 1a32bdf9
    Felix Lange authored
    With this change,
    
        key, err := crypto.HexToECDSA("000000...")
        
    returns nil key and an error instead of a non-nil key with nil X
    and Y inside. Issue found by @guidovranken.
    1a32bdf9
Name
Last commit
Last update
..
bn256 Loading commit data...
ecies Loading commit data...
randentropy Loading commit data...
secp256k1 Loading commit data...
sha3 Loading commit data...
crypto.go Loading commit data...
crypto_test.go Loading commit data...
signature_cgo.go Loading commit data...
signature_nocgo.go Loading commit data...
signature_test.go Loading commit data...