/* adler32.c - adler32 check. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2011 Free Software Foundation, Inc.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRUB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
GRUB_MOD_LICENSE ("GPLv3+");
/* Based on adler32() from adler32.c of zlib-1.2.5 library. */
static grub_uint32_t
{
unsigned long sum2;
unsigned int n;
adler &= 0xffff;
if (len == 1)
{
}
if (len < 16)
{
while (len--)
{
}
}
{
n = NMAX / 16;
do
{
buf += 16;
}
while (--n);
}
if (len)
{
while (len >= 16)
{
len -= 16;
buf += 16;
}
while (len--)
{
}
}
}
typedef struct
{
}
static void
{
}
static void
{
if (!inbuf)
return;
}
static grub_uint8_t *
{
}
static void
{
}
"ADLER32",0 , 0, 0 , 4,
sizeof (adler32_context),
.blocksize = 64
};
{
}
{
}