prepare for rsa key exchange
main: implement rsa key generation
begin implementing rsa key exchange - only some bugs are left to fix