kupyna

package
v1.0.2031 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize256 = 64

The blocksize of kupyna256 in bytes.

View Source
const BlockSize384 = 128

The blocksize of kupyna384 in bytes.

View Source
const BlockSize512 = 128

The blocksize of kupyna512 in bytes.

View Source
const Size256 = 32

The size of an kupyna256 checksum in bytes.

View Source
const Size384 = 48

The size of an kupyna384 checksum in bytes.

View Source
const Size512 = 64

The size of an kupyna512 checksum in bytes.

Variables

View Source
var T0 = [256]uint64{}/* 256 elements not displayed */
View Source
var T1 = [256]uint64{}/* 256 elements not displayed */
View Source
var T2 = [256]uint64{}/* 256 elements not displayed */
View Source
var T3 = [256]uint64{}/* 256 elements not displayed */
View Source
var T4 = [256]uint64{}/* 256 elements not displayed */
View Source
var T5 = [256]uint64{}/* 256 elements not displayed */
View Source
var T6 = [256]uint64{}/* 256 elements not displayed */
View Source
var T7 = [256]uint64{}/* 256 elements not displayed */

Functions

func GETU64

func GETU64(ptr []byte) uint64

func New256

func New256() hash.Hash

New256 returns a new hash.Hash computing the Kupyna256 checksum

func New384

func New384() hash.Hash

New384 returns a new hash.Hash computing the Kupyna384 checksum

func New512

func New512() hash.Hash

New512 returns a new hash.Hash computing the Kupyna512 checksum

func NewKmac added in v1.0.2016

func NewKmac(key []byte) (hash.Hash, error)

NewKmac returns a new hash.Hash computing the Kmac checksum

func NewKmac256

func NewKmac256(key []byte) (hash.Hash, error)

NewKmac256 returns a new hash.Hash computing the Kmac256 checksum

func NewKmac384

func NewKmac384(key []byte) (hash.Hash, error)

NewKmac384 returns a new hash.Hash computing the Kmac384 checksum

func NewKmac512

func NewKmac512(key []byte) (hash.Hash, error)

NewKmac512 returns a new hash.Hash computing the Kmac512 checksum

func PUTU64

func PUTU64(ptr []byte, a uint64)

func Sum256 added in v1.0.2017

func Sum256(data []byte) (sum [Size256]byte)

Sum256 returns the Kupyna-256 checksum of the data.

func Sum384 added in v1.0.2017

func Sum384(data []byte) (sum [Size384]byte)

Sum384 returns the Kupyna-384 checksum of the data.

func Sum512 added in v1.0.2017

func Sum512(data []byte) (sum [Size512]byte)

Sum512 returns the Kupyna-512 checksum of the data.

Types

type KeySizeError

type KeySizeError int

func (KeySizeError) Error

func (k KeySizeError) Error() string

Jump to

Keyboard shortcuts

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