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

Remove checkCipherData #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Al1c3-1337
Copy link

Remove checkCipherData, as it causes problems with CA_ECDH_AES_CBC_CMAC_192 and CA_ECDH_AES_CBC_CMAC_256. Block size is not always a multiple of key size (ex AES). E.g. using CA_ECDH_AES_CBC_CMAC_192 the encoded key has a length of 192 bits (24 bytes), of which the AES block size (128 bits / 16 bytes) is not a multiple. An incorrect block size is also detected by the underlying classes. Removing this function call made it possible to run conformance tests with CA_ECDH_AES_CBC_CMAC_192 and CA_ECDH_AES_CBC_CMAC_256.

I attached a debugging screenshot of the updateEncryptedIV function showing the exception from the mentioned function.
Version 2.2.7 was used for confirming the bug.

Bildschirmfoto 2024-05-28 um 19 06 02

Remove checkCipherData, as it causes problems with AES192 and AES256. Block length is not always a multiple of key length.
@CLAassistant
Copy link

CLAassistant commented May 28, 2024

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

2 participants