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
Initial addition of chacha20 stream cipher module under vlib/x/crypto
namespace
#20417
Conversation
@spytheman thanks for reviewing it |
Since most of the functions properly check array bounds already, you may want to try some benchmarks to see if adding the |
@blackshirt to fix |
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
I would try writes some preliminary Benchmark in next PR..btw, its in my plan..thanks for suggestion) |
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
Co-authored-by: JalonSolov <JalonSolov@gmail.com>
…ct underlying mechanism, minor adjustment
Thanks, its done in latest changes |
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.
Excellent work.
Thanks ..with help from great people and awesome vlang communities... |
This pull request add ChaCha20 symetric stream cipher encryption under the new
vlib/x/crypto
namespace. Its acts as places for supplemetary (or experimental) crypto-related library, like Go did.This implementation mostly based on RFC 8439 and trying to get as close as possible to the inspiring Go version of chacha20 library.
For this initial PR, it's support two's mode of nonce size, standard size of IETF RFC 8439, ie 12 bytes, and extended nonce size, ie, 24 bytes, based on XChaCha20
Please give a review, thought or feedback. All are welcome.
Thanks