25.04.2019, 10:53
Great!
It was the hashing of the key that was the issue, and the fact that it does one round of md5 by default when you don't fill in all the parameters.
Padding was not required because the key is 256bits long (two md5 hashes concatenated), and the output is already coming from AES and as such should be the proper length. It will however come very handy when I start to send commands.
Thanks a lot for your help!
It was the hashing of the key that was the issue, and the fact that it does one round of md5 by default when you don't fill in all the parameters.
Padding was not required because the key is 256bits long (two md5 hashes concatenated), and the output is already coming from AES and as such should be the proper length. It will however come very handy when I start to send commands.
Thanks a lot for your help!