}
  protected byte[] padBuffer()  {    int length = BLOCK_LENGTH - (int) (count % BLOCK_LENGTH);    if (length == 0)      {        length = BLOCK_LENGTH;      }    byte[] pad = new byte[length];    for (int i = 0; i < length; i++)      {        pad[i] = (byte) length;      }    return pad;  }