Package tahrir.io.crypto

Examples of tahrir.io.crypto.TrSymKey


            if (message.length <= 256) {
                logger.error("Received a message from "+sender+" when we have no inboundSymKey but it is too short to possibly contain one (length: "+message.length+")");
                return;
            }
      inboundSymKeyEncoded = message.subsegment(0, 256);
      inboundSymKey = new TrSymKey(TrCrypto.decryptRaw(inboundSymKeyEncoded, iface.myPrivateKey));
      logger.debug("decoded inboundSymKey");

      if (isUnilateralInbound()) {
        logger.debug("Unilateral inbound, so we use the inboundSymKey to encrypt outbound messages too, and we know remote has cached it");
        outboundSymKey = inboundSymKey;
View Full Code Here

TOP

Related Classes of tahrir.io.crypto.TrSymKey

Copyright © 2018 www.massapicom. 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.