*rsa.PrivateKey and *ecdsa.PrivateKey are both Signers, which have a method to get the public key. No need for the type switch. |
||
---|---|---|
.. | ||
tlsutil_test.go | ||
tlsutil.go |
*rsa.PrivateKey and *ecdsa.PrivateKey are both Signers, which have a method to get the public key. No need for the type switch. |
||
---|---|---|
.. | ||
tlsutil_test.go | ||
tlsutil.go |