Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export KeyRSA and KeyEd25519 #164

Closed
wants to merge 0 commits into from
Closed

export KeyRSA and KeyEd25519 #164

wants to merge 0 commits into from

Conversation

tomis007
Copy link

I think keyRSA and keyEd25519 are supposed to be Public types but aren't exported because of their lowercase name. Here's a PR to fix it. I had to change it to get piv-go working with my yubikey with RSA2048 keys.

@ericchiang
Copy link
Collaborator

This is intentional. crypto.PrivateKey is supposed to be type cased to crypto.Signer and crypto.Decrypter as those methods are needed. Since that's supported, the implementations aren't exported

https://pkg.go.dev/crypto#PrivateKey

@tomis007
Copy link
Author

Thank you! I did that and it worked, I added a pr for the readme #165 if you think that's useful for others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants