How to communicate AES initialization Vector to client for hybrid cryptosystem

前端 未结 3 1095
深忆病人
深忆病人 2020-12-31 16:31

I need to implemented security for client-server communication. I have implemented the following hybrid cryptosystem

To encrypt a message addressed to Alice in a hyb

3条回答
  •  一整个雨季
    2020-12-31 17:29

    There is no reason to encrypt the IV - you can send that in the clear. Just make sure you pick a new one each time (the same way you do the AES key).

    That said, it is often convenient to package the AES key and IV together. Encryption of 16 bytes ain't that expensive.

提交回复
热议问题