In: Computer Science
Hybrid encryption combines the convenience of a public-key cryptosystem with the efficiency of a symmetric-key cryptosystem and it is used in both TLS and SSL. Say we have the secured RSA and AES available, show how to use hybrid encryption to encrypt a message m= m1m2m3m4m5 with 640 bits without a pre-shared secret between Jane and Karl. Show and explain every step involved.
Solution:
The steps are as follows:
Step 1: For exchanging the key between Jane and Karl, first use the RSA.
Step 2: For symmetric key encryption, use AES.
The AES is a kind of block cipher. And having the common block size of 128 bits.
The data/message m is of 640 bits. Therefore, the number of blocks are as follows:
Number of blocks = 640 / 128
= 5 blocks
Now, on the computed blocks, it performs the AES encryption technique to transfer the data between Jane and Karl.