Examples of DHKeyExchange


Examples of erki.talk.DHKeyExchange

                            pwds.remove(getNick());
                            savePwds();
                            sendDeregistered(this);
                        } else if (line.toUpperCase().startsWith("ENCRYPT ")) {
                            String pubKey = line.substring("ENCRYPT ".length());
                            keyExchange = new DHKeyExchange();
                            String publicKey = keyExchange.getPublicKey(pubKey);
                            sendEncrypt(this, publicKey);
                            Logger.info(this, getNick() + " initiated an "
                                    + "encrypted connection.");
                            crypto = new Crypto(keyExchange.getSecretKey());
View Full Code Here

Examples of erki.talk.DHKeyExchange

       
        startEncryptionObserver = new EventObserver<StartEncryptionEvent>() {
           
            @Override
            public void inform(StartEncryptionEvent event) {
                keyExchange = new DHKeyExchange();
                send("ENCRYPT " + connection.keyExchange.getPublicKey());
                Logger.info(Connection.class, "Sent public key to server.");
            }
        };
       
View Full Code Here

Examples of erki.talk.DHKeyExchange

        if (sockOut == null) {
            return false;
        }
       
        if (txt.toUpperCase().trim().equals("ENCRYPT")) {
            keyExchange = new DHKeyExchange();
            txt = "ENCRYPT " + keyExchange.getPublicKey();
        }
       
        boolean endcrypt = false;
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.