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

Add read/write functions accepting additional authentication data to StatelessTransportState #182

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pr2502
Copy link

@pr2502 pr2502 commented Aug 14, 2024

Hi,

I'm implementing a Noise-based protocol which needs to add a plaintext header to each message but have it still authenticated. This required only exposing the encrypt_ad and decrypt_ad functions which the private CipherState type already implements.

This is an interface other Noise libraries like https://pkg.go.dev/github.com/flynn/noise#CipherState.Decrypt or https://docs.rs/noise-protocol/latest/noise_protocol/struct.CipherState.html#method.encrypt_ad already expose so I hope this is an ok addition to snow?

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