kdf

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package kdf implements ShangMi(SM) used Key Derivation Function, compliances with GB/T 32918.4-2016 5.4.3.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kdf

func Kdf(newHash func() hash.Hash, z []byte, keyLen int) []byte

Kdf key derivation function, compliance with GB/T 32918.4-2016 5.4.3. ANSI-X9.63-KDF

Types

type KdfInterface added in v0.27.0

type KdfInterface interface {
	Kdf(z []byte, keyLen int) []byte
}

KdfInterface is the interface implemented by some specific Hash implementations.

Jump to

Keyboard shortcuts

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