Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

AES CMAC token generation bug if input data is chunked #51

Open
KonsKr opened this issue Jul 14, 2022 · 1 comment
Open

AES CMAC token generation bug if input data is chunked #51

KonsKr opened this issue Jul 14, 2022 · 1 comment

Comments

@KonsKr
Copy link

KonsKr commented Jul 14, 2022

If the tc_cmac_update() function is called and fills the internal leftover cache completely, the following tc_cmac_final() call will produce a wrong token.

If the tc_cmac_update() is called with a data length which fills up the internal leftover cache completely, the leftover data will be processed instantly and is left empty. This is not the right behavior, because tc_cmac_final() requires that the last block is still in the leftover cache and not processed, because it need special treatment.

See pull request for fix and further information: #52

@KonsKr
Copy link
Author

KonsKr commented Jul 14, 2022

The issue was also addressed in pull request #34

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant