crc64.c File Reference

#include "config.h"
#include <isc/assertions.h>
#include <isc/crc64.h>
#include <isc/string.h>
#include <isc/types.h>
#include <isc/util.h>

Go to the source code of this file.

Functions

void isc_crc64_init (isc_uint64_t *crc)
void isc_crc64_update (isc_uint64_t *crc, const void *data, size_t len)
 Initialize a new CRC.
void isc_crc64_final (isc_uint64_t *crc)
 Add data to the CRC.

Variables

static const isc_uint64_t crc64_table [256]
 ECMA-182 CRC64 polynomial.


Function Documentation

void isc_crc64_init ( isc_uint64_t crc  ) 

Definition at line 118 of file crc64.c.

References REQUIRE.

Referenced by ATF_TC_BODY(), dns_rbt_deserialize_tree(), and dns_rbt_serialize_tree().

void isc_crc64_update ( isc_uint64_t crc,
const void *  data,
size_t  len 
)

Initialize a new CRC.

Requires: * 'crc' is not NULL.

Definition at line 125 of file crc64.c.

References crc64_table, and REQUIRE.

Referenced by ATF_TC_BODY(), fix_data(), rbt_datafixer(), rbt_datawriter(), serialize_node(), treefix(), and write_data().

void isc_crc64_final ( isc_uint64_t crc  ) 

Add data to the CRC.

Requires: * 'crc' is not NULL. * 'data' is not NULL.

Definition at line 140 of file crc64.c.

References REQUIRE.

Referenced by ATF_TC_BODY(), dns_rbt_deserialize_tree(), and dns_rbt_serialize_tree().


Variable Documentation

const isc_uint64_t crc64_table[256] [static]

ECMA-182 CRC64 polynomial.

<

Definition at line 28 of file crc64.c.

Referenced by isc_crc64_update().


Generated on Tue Apr 28 17:41:14 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha