How to Verify obtained AES output and how to transmit the OUTPUT in UART (STM32H750VB)
- April 30, 2020
- 3 replies
- 5193 views
I have used STM32H750VB as my main controller for a Project and in that i am in need of AES Encryption to be done..With the help from our community friends i am able to integrate the AES part in my main coding..I have used the 192 bit plain text array(Plaintext[16]) with the 192 bit key ( AESKey192[6]) and 128 bit initialization Vector( AESIV_CBC[4] ) and obtained the 192 bit output encrypted array (CiphertextAESCBC192[16]) given in the attached notepad. ..I am a novice so kindly explain or give me the links where i can study about the same. I am having the following doubts
1.Is the size of the encrypted data same as that of input data?
2.When i try to transfer the encrypted array through UART the 32 bit data cannot be transferred properly i am getting some special characters and i have tried splitting the data as 8 bit and now i am getting a result but i don't know whether it is correct or not? (the image is attached as UART Op)
3.When i tried checking the obtained result the link for checking AES encryption and decryption, it uses characters with each character representing 8 bit data. (https://www.devglan.com/online-tools/aes-encryption-decryption) i.e the input and output can be given in HEX format but the Key and IV cannot be given as HEX and for 128 bit AES CBC encryption the key field requires only 16 digits. Kindly suggest me a link where i can cross verify the output or suggest me what data type i can use in the place of KEY and IV...
