-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat: stream cipher trait and chacha encryption #103
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This documentation is so clean, you are crushing it <3
Does this also close #95? |
Will get around to this by Monday |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work!!! I love it!!!
src/encryption/symmetric/README.md
Outdated
|
||
$$ | ||
\begin{align*} | ||
\text{Enc}(s,m)=c=G(s)\oplus m \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have written FAR too much TeX... but another option instead of \text{}
is \operatorname{}
Don't worry about doing that here, but it can help you out some point in your life I bet.
Or hopefully we never see TeX again in a few years...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let nonce = [0, 0x4a000000, 0]; | ||
let counter = Counter::new([1]); | ||
|
||
let plaintext = b"Ladies and Gentlemen of the class of '99: If I could offer you only one tip for the future, sunscreen would be it."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lol didn't know about this
This PR closes issue #97
Closes #97
It changes the following:
TODO: