hash

package
v0.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package hash wraps RTE hash libraries.

Please refer to DPDK Programmer's Guide for reference and caveats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CrcSetAlg

func CrcSetAlg(alg uint8)

CrcSetAlg allow or disallow use of SSE4.2 instrinsics for CRC32 hash calculation. Specify OR of declared Crc32* flags.

func CrcUpdate

func CrcUpdate(data []byte, acc uint32) uint32

CrcUpdate calculate CRC32 hash on user-supplied byte array.

func NewCrcHash

func NewCrcHash(seed uint32, complement bool) hash.Hash32

NewCrcHash creates new hash.Hash32 implemented on top of CrcUpdate. If complement is true then accumulator argument is complemented to 1 along with the output. This gives identical output as native Go crc32's implementation.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL