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

question: is poly1305 authenticated mid stream? #5

Open
dominictarr opened this issue Apr 23, 2015 · 1 comment
Open

question: is poly1305 authenticated mid stream? #5

dominictarr opened this issue Apr 23, 2015 · 1 comment

Comments

@dominictarr
Copy link

If this is used to encrypt a stream, will I know if authentication fails part way, or do I have to get to the end of the stream to know that?

i.e. If I want realtime authenticated encryption of a long running stream, do I have to encrypt separate messages instead?

@calvinmetcalf
Copy link
Owner

end of the stream, I wrote https://github.com/calvinmetcalf/hmac-stream for this exact use case, or you could use tls with aes-gcm which would do similar things as well

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

No branches or pull requests

2 participants