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 CipherState
s 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.