Examples of decipher()


Examples of freenet.crypt.BlockCipher.decipher()

            } catch (UnsupportedCipherException e) {
              throw new Error("Impossible: no Rijndael(256,128): "+e, e);
            }
            cipher.initialize(masterKey);
            salt = new byte[0x10];
            cipher.decipher(diskSalt, salt);
            if(logDEBUG)
              Logger.debug(this, "Encrypting (new) with "+HexUtil.bytesToHex(salt)+" from "+HexUtil.bytesToHex(diskSalt));
          }

          cipherManager = new CipherManager(salt, diskSalt);
View Full Code Here

Examples of freenet.crypt.PCFBMode.decipher()

    byte[] hash = Arrays.copyOfRange(buf, offset+ivLength, offset+ivLength+digestLength);
    pcfb.blockDecipher(hash, 0, hash.length);

    int dataStart = ivLength + digestLength + offset+2;

    int byte1 = ((pcfb.decipher(buf[dataStart-2])) & 0xff);
    int byte2 = ((pcfb.decipher(buf[dataStart-1])) & 0xff);
    int dataLength = (byte1 << 8) + byte2;
    if(logDEBUG) Logger.debug(this, "Data length: "+dataLength+" (1 = "+byte1+" 2 = "+byte2+ ')');
    if(dataLength > length - (ivLength+hash.length+2)) {
      if(logDEBUG) Logger.debug(this, "Invalid data length "+dataLength+" ("+(length - (ivLength+hash.length+2))+") in tryProcessAuth");
View Full Code Here

Examples of freenet.crypt.PCFBMode.decipher()

    pcfb.blockDecipher(hash, 0, hash.length);

    int dataStart = ivLength + digestLength + offset+2;

    int byte1 = ((pcfb.decipher(buf[dataStart-2])) & 0xff);
    int byte2 = ((pcfb.decipher(buf[dataStart-1])) & 0xff);
    int dataLength = (byte1 << 8) + byte2;
    if(logDEBUG) Logger.debug(this, "Data length: "+dataLength+" (1 = "+byte1+" 2 = "+byte2+ ')');
    if(dataLength > length - (ivLength+hash.length+2)) {
      if(logDEBUG) Logger.debug(this, "Invalid data length "+dataLength+" ("+(length - (ivLength+hash.length+2))+") in tryProcessAuth");
      return false;
View Full Code Here

Examples of freenet.crypt.PCFBMode.decipher()

    byte[] hash = Arrays.copyOfRange(buf, offset+ivLength, offset+ivLength+digestLength);
    pcfb.blockDecipher(hash, 0, hash.length);

    int dataStart = ivLength + digestLength + offset+2;

    int byte1 = ((pcfb.decipher(buf[dataStart-2])) & 0xff);
    int byte2 = ((pcfb.decipher(buf[dataStart-1])) & 0xff);
    int dataLength = (byte1 << 8) + byte2;
    if(logMINOR) Logger.minor(this, "Data length: "+dataLength+" (1 = "+byte1+" 2 = "+byte2+ ')');
    if(dataLength > length - (ivLength+hash.length+2)) {
      if(logMINOR) Logger.minor(this, "Invalid data length "+dataLength+" ("+(length - (ivLength+hash.length+2))+") in tryProcessAuthAnon");
View Full Code Here

Examples of freenet.crypt.PCFBMode.decipher()

    pcfb.blockDecipher(hash, 0, hash.length);

    int dataStart = ivLength + digestLength + offset+2;

    int byte1 = ((pcfb.decipher(buf[dataStart-2])) & 0xff);
    int byte2 = ((pcfb.decipher(buf[dataStart-1])) & 0xff);
    int dataLength = (byte1 << 8) + byte2;
    if(logMINOR) Logger.minor(this, "Data length: "+dataLength+" (1 = "+byte1+" 2 = "+byte2+ ')');
    if(dataLength > length - (ivLength+hash.length+2)) {
      if(logMINOR) Logger.minor(this, "Invalid data length "+dataLength+" ("+(length - (ivLength+hash.length+2))+") in tryProcessAuthAnon");
      return false;
View Full Code Here

Examples of freenet.crypt.PCFBMode.decipher()

    byte[] hash = Arrays.copyOfRange(buf, offset+ivLength, offset+ivLength+digestLength);
    pcfb.blockDecipher(hash, 0, hash.length);

    int dataStart = ivLength + digestLength + offset+2;

    int byte1 = ((pcfb.decipher(buf[dataStart-2])) & 0xff);
    int byte2 = ((pcfb.decipher(buf[dataStart-1])) & 0xff);
    int dataLength = (byte1 << 8) + byte2;
    if(logDEBUG) Logger.minor(this, "Data length: "+dataLength+" (1 = "+byte1+" 2 = "+byte2+ ')');
    if(dataLength > length - (ivLength+hash.length+2)) {
      if(logDEBUG) Logger.debug(this, "Invalid data length "+dataLength+" ("+(length - (ivLength+hash.length+2))+") in tryProcessAuth");
View Full Code Here

Examples of freenet.crypt.PCFBMode.decipher()

    pcfb.blockDecipher(hash, 0, hash.length);

    int dataStart = ivLength + digestLength + offset+2;

    int byte1 = ((pcfb.decipher(buf[dataStart-2])) & 0xff);
    int byte2 = ((pcfb.decipher(buf[dataStart-1])) & 0xff);
    int dataLength = (byte1 << 8) + byte2;
    if(logDEBUG) Logger.minor(this, "Data length: "+dataLength+" (1 = "+byte1+" 2 = "+byte2+ ')');
    if(dataLength > length - (ivLength+hash.length+2)) {
      if(logDEBUG) Logger.debug(this, "Invalid data length "+dataLength+" ("+(length - (ivLength+hash.length+2))+") in tryProcessAuth");
      return 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.