/* crc64.c - crc64 function */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2008,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+");
static void
init_crc64_table (void)
{
{
int i;
for (i = 1; i <= len; i++)
{
if (ref & 1)
ref >>= 1;
}
return result;
}
int i, j;
for(i = 0; i < 256; i++)
{
for (j = 0; j < 8; j++)
{
}
}
}
static void
{
if (! crc64_table[1])
init_crc64_table ();
*(grub_uint64_t *) context = 0;
}
static void
{
unsigned i;
for (i = 0; i < size; i++)
{
data++;
}
}
static grub_uint8_t *
{
return context;
}
static void
{
}
{
"CRC64", 0, 0, 0, 8,
sizeof (grub_uint64_t),
.blocksize = 64
};
{
}
{
}