Documentation ¶
Index ¶
- Constants
- Variables
- func GETU64(ptr []byte) uint64
- func New256() hash.Hash
- func New384() hash.Hash
- func New512() hash.Hash
- func NewKmac(key []byte) (hash.Hash, error)
- func NewKmac256(key []byte) (hash.Hash, error)
- func NewKmac384(key []byte) (hash.Hash, error)
- func NewKmac512(key []byte) (hash.Hash, error)
- func PUTU64(ptr []byte, a uint64)
- func Sum256(data []byte) (sum [Size256]byte)
- func Sum384(data []byte) (sum [Size384]byte)
- func Sum512(data []byte) (sum [Size512]byte)
- type KeySizeError
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 NewKmac256 ¶
NewKmac256 returns a new hash.Hash computing the Kmac256 checksum
func NewKmac384 ¶
NewKmac384 returns a new hash.Hash computing the Kmac384 checksum
func NewKmac512 ¶
NewKmac512 returns a new hash.Hash computing the Kmac512 checksum
Types ¶
type KeySizeError ¶
type KeySizeError int
func (KeySizeError) Error ¶
func (k KeySizeError) Error() string
Click to show internal directories.
Click to hide internal directories.