Closed nathforge closed 5 years ago
Sorry that I didn't notice this issue for so long. I'm hoping to have a few minutes to look into it over the weekend.
how to solve it ?
This should be fixed by 67d0017957ef024e18cbe5522e365771ed1b0e94
This is part of 1.0.0 which is now available on PyPi https://pypi.org/project/oscrypto/
I'm trying to call
oscrypto.symmetric.aes_cbc_no_padding_encrypt
with a 16 byte key, 16 byte IV, and 64 bytes of data.This throws an error:
Here's the abridged source of oscrypto._openssl.symmetric:
As I read it,
aes_cbc_no_padding_encrypt
always passescipher != rc4
andpadding = False
to_encrypt
, resulting in the exception.Happy to help with a fix, just wanted to check I'm not doing anything crazy?