Re: [cryptopp-users] RSA equivalent of DH key agreement

2019-07-19 Thread γιωργος γιωργος
Hi, thanks for the answer, So, If i understand correctly in KEM the following steps are performed by each party: 1. Generate RSA key pair 2. Pick a random symmetric key that will be used in creating the final key 3. Encrypt key with each other's RSA public key 4. Send the

Re: [cryptopp-users] RSA equivalent of DH key agreement

2019-07-19 Thread Uri Blumenthal
Yes. What RSA provides is KEM - Key Encapsulation Mechanism. You would run *two* of them - one in reach direction - and then run a KDF over concatenation of these two encapsulated symmetric keys. AFAIK, it's the only way. And that's what NIST is doing with their Post-Quantum competition: they

[cryptopp-users] RSA equivalent of DH key agreement

2019-07-19 Thread George K
Hi, Is there a way to produce a shared secret key to be used for symmetric encryption(e.g. AES) by using RSA key pairs? I know that the standard way of doing something like that is to use the recipient's RSA public key to encrypt the randomly generated symmetric key and then send it to the