You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 5, 2021. It is now read-only.
I would like to be able to call GenerateNonce on a StreamEncryptor:
func GenerateNonce(c cipher.AEAD) []byte
I believe what is missing is a method to access field a of the StreamEncryptor after having called NewStreamEncryptor():
type StreamEncryptor struct {
// cipher.AEAD instance underlying this STREAM
a cipher.AEAD
// Nonce encoder instance which computes per-message nonces
n *nonceEncoder32
}