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

Padded input requirement for CTR AES mode. #59

Closed
Waotest opened this issue Dec 25, 2023 · 3 comments · Fixed by #60
Closed

Padded input requirement for CTR AES mode. #59

Waotest opened this issue Dec 25, 2023 · 3 comments · Fixed by #60
Assignees

Comments

@Waotest
Copy link

Waotest commented Dec 25, 2023

https://github.com/wolfSSL/wolfcrypt-py/blob/1c242652a799190b55cc20964135297357e00b67/wolfcrypt/ciphers.py#L184C13-L184C13

Is this really required ?

@embhorn embhorn self-assigned this Dec 26, 2023
@embhorn
Copy link
Member

embhorn commented Dec 26, 2023

Hi @Waotest

Thanks for contacting wolfSSL. Could you tell us a bit about your project using wolfCrypt Python?

I'm reviewing your question with the team.

Thanks,
@embhorn

@Waotest
Copy link
Author

Waotest commented Dec 26, 2023

im encrypting in python and decrypting in c. i need the file length to stay the same that's why i use ctr mode. but your python wrapper requires the input to be multiple of block size which should not be required for ctr aes.

@embhorn
Copy link
Member

embhorn commented Dec 26, 2023

Hi @Waotest

Please confirm if this resolves the issue with AES CTR sizes:
#60

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 a pull request may close this issue.

2 participants