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

Implement 32- and 64-byte block #6

Open
qnfm opened this issue Sep 25, 2023 · 1 comment
Open

Implement 32- and 64-byte block #6

qnfm opened this issue Sep 25, 2023 · 1 comment

Comments

@qnfm
Copy link

qnfm commented Sep 25, 2023

16-byte width is common as is aes block size, but the newer chacha20's state size as well as the sha3-512 output length is 64 byte. So, is there any plan for 32-/64-byte version block() ?

@lukechampine
Copy link
Owner

I recommend using fastxor.Bytes for that. The only reason I added fastxor.Block is that, in my benchmarks, 16 bytes was right on the threshold where the overhead of calling into SIMD asm outweighed the benefits. (Granted, that may not be true on your machine -- if you want to be sure, you'll have to benchmark it yourself.)

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