Skip to content

Add support for pre-shared keys #48

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

francescolavra
Copy link

These changes update the WireGuard::begin methods to accept an optionalpresharedKey parameter.
In addition, the code has been updated to support Arduino core version 3,x, incorporating changes by @martinusGH and @pierrejay.

Make the preshared_key struct field use the same encoding as the
public_key field, for ease of use.
Pre-shared keys allow using an additional layer of authentication
to establish more secure WireGuard tunnels.
Update the `WireGuard::begin` methods to accept an optional
`presharedKey` parameter and populate the underlying
`wireguardif_peer` struct with the provided PSK.
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.

1 participant