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

fix: synchronise access to security key hardware #141

Merged
merged 1 commit into from
Nov 4, 2022
Merged

fix: synchronise access to security key hardware #141

merged 1 commit into from
Nov 4, 2022

Conversation

smlx
Copy link
Owner

@smlx smlx commented Nov 4, 2022

Accessing the security key hardware simultaneously in multiple goroutines is not supported by pcscd, so instead enforce serialised hardware access by wrapping it in a mutex.

Hardware access is encapsulated and exported inside the crypto.PrivateKey returned by Yubikey.PrivateKey, so wrap access to that in a mutex too.

Closes: #140

Accessing the security key hardware simultaneously in multiple
goroutines is not supported by pcscd, so instead enforce serialised
hardware access by wrapping it in a mutex.

Hardware access is encapsulated and exported inside the
crypto.PrivateKey returned by Yubikey.PrivateKey, so wrap access to that
in a mutex too.
@smlx smlx added the bug Something isn't working label Nov 4, 2022
@smlx smlx merged commit eb7534d into main Nov 4, 2022
@smlx smlx deleted the setkey branch November 4, 2022 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GPG "General error" when decrypting multiple things simultaneously
1 participant