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

AES CFB Without padding #48

Open
bijanbina opened this issue Oct 18, 2022 · 3 comments
Open

AES CFB Without padding #48

bijanbina opened this issue Oct 18, 2022 · 3 comments
Assignees

Comments

@bijanbina
Copy link

Hi
In AES-CFB is there anyway to encode data without padding in the Qt-AES library?

I used QAESEncryption::ZERO and QAESEncryption::ISO but it still changes the encrypted data length
Thanks

@bijanbina bijanbina changed the title AES CFB AES CFB Without padding Oct 18, 2022
@bricke
Copy link
Owner

bricke commented Oct 24, 2022

Hi, going from memory here but i seem to remember that the data needs to be of an exact length to work with AES-CFB, hence the padding.

@bijanbina
Copy link
Author

@bricke Hi,
CFB, OFB and CTR modes are stream cipher modes, and therefore do not require padding. There is nothing stopping you from forcing padding, but unlike ECB/CBC modes, you don't need it for data that is not a multiple of the block size.

@bricke
Copy link
Owner

bricke commented Oct 26, 2022

Can you send a MR?

@bricke bricke self-assigned this Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants