Open pr2502 opened 1 month ago
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.
encrypt_ad
decrypt_ad
CipherState
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?
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
anddecrypt_ad
functions which the privateCipherState
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?