crc

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type X25

type X25 struct {
	// contains filtered or unexported fields
}

X25 implements hash.Hash

func NewX25

func NewX25() *X25

NewX25 function create crc calculator

func (*X25) BlockSize

func (x *X25) BlockSize() int

BlockSize function return crc size in blocks

func (*X25) Reset

func (x *X25) Reset()

Reset function reset current crc

func (*X25) Size

func (x *X25) Size() int

Size function return crc size in bytes

func (*X25) Sum

func (x *X25) Sum(in []byte) []byte

Sum function append crc bytes on byte slice

func (*X25) Sum16

func (x *X25) Sum16() uint16

Sum16 function return accumulated crc

func (*X25) Write

func (x *X25) Write(p []byte)

Write function append byte slice into crc accumulation

func (*X25) WriteByte

func (x *X25) WriteByte(b byte)

WriteByte function append byte into crc accumulation

Jump to

Keyboard shortcuts

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