x25

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: MIT Imports: 0 Imported by: 5

Documentation

Overview

Package x25 implements the X25 hash.

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 is the hash used to compute Frame checksums.

func New

func New() *X25

New allocates a X25.

func (*X25) BlockSize

func (x *X25) BlockSize() int

BlockSize returns the hash's underlying block size. The Write method must be able to accept any amount of data, but it may operate more efficiently if all writes are a multiple of the block size.

func (*X25) Reset

func (x *X25) Reset()

Reset resets the Hash to its initial state.

func (*X25) Size

func (x *X25) Size() int

Size returns the number of bytes Sum will return.

func (*X25) Sum

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

Sum appends the current hash to b and returns the resulting slice.

func (*X25) Sum16

func (x *X25) Sum16() uint16

Sum16 returns the curren thash.

func (*X25) Write

func (x *X25) Write(p []byte) (int, error)

Write adds more data to the running hash.

Jump to

Keyboard shortcuts

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