AnsweredAssumed Answered

How to handle padding with STM32 Cryptographic Library

Question asked by Brem_N_hr.Folmer on Dec 7, 2016
Latest reply on Dec 9, 2016 by Clive One

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 (
) 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 the STM32 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?