-
Notifications
You must be signed in to change notification settings - Fork 18k
crypto/cipher: move xorBytes function to internal #28465
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
Comments
Please see this #28113, which was already rejected. |
Oops
Intially I want to use it at crypto/rand and math/big
Maybe an SSA optimization like encoding/binary?
Agniva De Sarker <[email protected]>:
… Please see this #28113 <#28113>, which
was already rejected.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#28465 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA2DnuKmgQR1tP_iHEORAwIlfxReuO9Lks5upzBGgaJpZM4X_UcS>
.
|
What did you want to use it for, exactly? If you want to use |
Moving xor into replace target: Line 951 in d1836e6
crypto/rand go/src/crypto/rand/rand_unix.go Line 152 in d1836e6
|
/cc @FiloSottile |
This appears to be an internal implementation detail, not a user-facing change. @FiloSottile should still take a look, but removing the proposal tag. |
Hi everyone I propose that adding new Xor function to internal/bytealg/xor_generic.go
For native implement
Any suggestion? |
Done in #53021 |
Some packages need an efficient xor function bytes, for example:
And about 18 code pieces in golang.org/x/crypto https://github.com/golang/crypto/search?l=Go&q=xor
If this CL( https://go-review.googlesource.com/c/go/+/125316 ) get merged in master we will get a SIMD xorBytes which will be a benefit for all other package that use xor function and reduce redundancy.
The text was updated successfully, but these errors were encountered: