Package org.jbls.util

Examples of org.jbls.util.ByteFromIntArray


      // subLength can't be more than 0x40
      if (subLength > 0x40)
        subLength = 0x40;

      // Copy this part of the hashdata into the int array
      ByteFromIntArray bfia = new ByteFromIntArray(true);
      for (int j = 0; j < subLength; j++) {
        bfia.insertByte(hashBuffer, j + (4 * 5), hashData[j + i]);
      }

      // If we don't reach the end of the buffer, pad it
      if (subLength < 0x40) {
        for (int j = subLength; j < 0x40; j++)
          bfia.insertByte(hashBuffer, j + (4 * 5), (byte) 0);
      }

      doHash(hashBuffer);
    }

View Full Code Here


    temp_vars[0] = WardenSHA1.reverseEndian(bitlen[1]);
    temp_vars[1] = WardenSHA1.reverseEndian(bitlen[0]);

    len = ((-9 - (bitlen[0] >>> 3)) & 0x3F) + 1;

    vars = (new ByteFromIntArray(true)).getByteArray(temp_vars);
    MysteryBuffer = new char[len];

    MysteryBuffer[0] = (char) 0x80;
    for (int x = 1; x < len; x++)
      MysteryBuffer[x] = (char) 0;
View Full Code Here

    bitlen[0] += b;
    bitlen[1] += c;

    len += a;
    x = -a;
    ByteFromIntArray bfia = new ByteFromIntArray(true);

    if (len >= 0x40) {
      if (a > 0) {
        while (a < 0x40) {
          bfia.insertByte(state, a + 0x14, (byte) data[a + x]);
          a++;
        }
        transform(state);
        len -= 0x40;
        x += 0x40;
        a = 0;
      }
      if (len >= 0x40) {
        b = len;
        for (int i = 0; i < b / 0x40; i++) {
          for (int y = 0; y < 0x40; y++)
            bfia.insertByte(state, y + 0x14, (byte) data[x + y]);
          transform(state);
          len -= 0x40;
          x += 0x40;
        }
      }
    }
    while (a < len) {
      bfia.insertByte(state, 20 + a, (byte) data[a + x]);
      a++;
    }
    return;
  }
View Full Code Here

TOP

Related Classes of org.jbls.util.ByteFromIntArray

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.