Say I want to encrypt something using RSA / KEM and an authenticated cipher. I encrypt using the following scheme:
- generate random seed
z
usingn - 1
bits - wheren
is the size of the modulusN
- interpret the seed
z
as unsigned number and encrypt using the public keye
:w = RSA(e, z)
- derive a session key and IV using
s = KDF(z, "skey") and iv = KDF(z, "iv")
- encrypt the plaintext message
m
' using(c, t) = AEAD(s, iv, ad, m)
, wheret
is the authentication tag andad
is (additional) authenticated data - output
w | c | t
Would it be advantageous to include the value of w
- the encrypted key seed - in the authenticated data ad
?