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

why not support bytes that be a multiple of 16 in length? #21

Open
ehds opened this issue Jul 29, 2018 · 3 comments
Open

why not support bytes that be a multiple of 16 in length? #21

ehds opened this issue Jul 29, 2018 · 3 comments

Comments

@ehds
Copy link

ehds commented Jul 29, 2018

why not implement the support the bytes that be a multiple of 16 in length?

@ricmoo
Copy link
Owner

ricmoo commented Jul 29, 2018

He @ehds ,

What do you mean? It does support bytes that are a multiple of 16 bytes in length.

@ehds
Copy link
Author

ehds commented Jul 31, 2018

When I use AESModeOfOperationCBC class I got ValueError: plaintext block must be 16 bytes.
image
image

python version: Python 3.7.0
pyaes version : v1.6.0

@welemon
Copy link

welemon commented Aug 27, 2018

@ehds you should use pyaes.Encrypter(pyaes.AESModeOfOperationCBC(key, iv=iv))
see the https://github.com/ricmoo/pyaes#blockfeeder example

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

No branches or pull requests

3 participants