private void exchangeKeys() { try { output.write(modulus.toByteArray()); byte[] buffer = new byte[ciphertextBlockSize]; input.read(buffer); recipModulus = new BigInteger(1, buffer); } catch (IOException ioe) { System.err.println("Error establishing keys"); } }