flynn / noise

Go implementation of the Noise Protocol Framework

Home Page:https://noiseprotocol.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expose some cipher.AEAD functions in Cipher

cretz opened this issue · comments

Can you make the Cipher interface (or the CipherFunc iface) at least expose NonceSize and Overhead from cipher.AEAD?

The nonce is always 8 bytes in Noise, I'm not sure what you're looking for?

I have two CipherStates and am making a streaming enc/dec connection, so I guess I really just need the overhead to determine some block sizes...but I suppose it is not important.

Feel free to send a PR if you have a concrete suggestion of what you want, happy to review there.