kbkdf

package
v1.0.3025 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CounterModeKey

func CounterModeKey(prf PRF, key, label, context []byte, counterSize, length int) []byte

counterSize: 0 <= counterSize <= 8

func FeedbackModeKey

func FeedbackModeKey(prf PRF, key, label, context, iv []byte, counterSize, length int) []byte

counterSize: 0 <= counterSize <= 8

func PipelineModeKey

func PipelineModeKey(prf PRF, key, label, context []byte, counterSize, length int) []byte

counterSize: 0 <= counterSize <= 8

Types

type PRF

type PRF interface {
	Sum(K []byte, src ...[]byte) []byte
}

implements of Pseudo-Random Functions

func NewCMACPRF

func NewCMACPRF(cip func(key []byte) (cipher.Block, error)) PRF

New CMAC-based Pseudo-Random Functions

func NewHMACPRF

func NewHMACPRF(h func() hash.Hash) PRF

New HMAC-based Pseudo-Random Functions

Jump to

Keyboard shortcuts

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