Closed esmeevandenberg closed 2 years ago
Well, usually the IV is sent with encrypted data in OpenSSL and key is built-in the code or fetched on init (key escrow mechanism).
M.
- 2021 v 16:47, esmeevandenberg @.***>:
Hi,
I am using the simple code on my Arduino. Since I want to communicate between my Arduino and Raspberry with AES Encryption, I need to set the IV and Key manually. Can someone help me how I can achieve this?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Sorry, I think I did not formulate my question properly. I was especially wondering how to change the Simple code, in order to set the IV manually? At the moment, the code itself generates the IV right? But I want to sent the IV from my Raspberry Pi to my Arduino and use this for encryption. But I can not figure out how to do this
Just drop the:
aesLib.gen_iv(aes_iv);
line and use the one stored in aes_iv... other examples show how to reuse static initialization vector after it's been overwritten by decoding function like:
memcpy(enc_iv_to, aes_iv, sizeof(aes_iv));
On 12. 5. 2021, at 20:20:25, esmeevandenberg @.***> wrote:
Sorry, I think I did not formulate my question properly. I was especially wondering how to change the Simple code, in order to set the IV manually? At the moment, the code itself generates the IV right? But I want to sent the IV from my Raspberry Pi to my Arduino and use this for encryption. But I can not figure out how to do this
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/suculent/thinx-aes-lib/issues/51#issuecomment-839995075, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABWFRZ45O2TWE5ZFSUUAGTTNLBGTANCNFSM44VW42VQ.
Hi,
I am using the simple code on my Arduino. Since I want to communicate between my Arduino and Raspberry with AES Encryption, I need to set the IV and Key manually. Can someone help me how I can achieve this?