• 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
crypto_test.go 6.64 KB