How to handle padding with STM32 Cryptographic Library
I am writing an application in C# that AES-encrypts some data that is then decrypted inside an STM32 using STM32 Cryptographic Library. My C#-class (
https://msdn.microsoft.com/en-us/library/system.security.cryptography.rijndael(v=vs.110).aspx
) can encrypt using different types of padding (ANSIX923, ISO10126, PKCS7 and with zeros). I have not found a way to specify the padding for the function in theSTM32 Cryptographic Library.
Right now, my decryption fails because of padding-issues.
I use AES 128-bit, CBC-mode.
What padding is used in STM32 Cryptographic Library?
How to I change the padding mode?
Thanks
