Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Increase hash function block size to accommodate SHA3 HMAC and SHAKE-128 #21

Open
andhu19 opened this issue Mar 28, 2022 · 0 comments
Open

Comments

@andhu19
Copy link

andhu19 commented Mar 28, 2022

Hello,
In cf_hmac_init() key k and block blk is allocated with CF_CHASH_MAXBLK (144 bytes). However, for SHA3HMAC and SHAKE-128 use block size up to 168 bytes.
With change of macro CF_CHASH_MAXBLK to 168, we can HMAC for these algorithms.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant