(priv any)
| 38 | ) |
| 39 | |
| 40 | func publicKey(priv any) any { |
| 41 | switch k := priv.(type) { |
| 42 | case *rsa.PrivateKey: |
| 43 | return &k.PublicKey |
| 44 | case *ecdsa.PrivateKey: |
| 45 | return &k.PublicKey |
| 46 | case ed25519.PrivateKey: |
| 47 | return k.Public().(ed25519.PublicKey) |
| 48 | default: |
| 49 | return nil |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func main() { |
| 54 | flag.Parse() |
no outgoing calls
no test coverage detected
searching dependent graphs…