FIXED: key exchange

Changed all the methods to the correct key exchange to use the generated keys. Also, fixed the key exchange method for retreiving the signed key.