jose2go: github.com/dvsekhvalnov/jose2go/kdf Index | Files

package kdf

import "github.com/dvsekhvalnov/jose2go/kdf"

package kdf contains implementations of various key derivation functions

Index

Package Files

nist_sp800_56a.go pbkdf2.go

Constants

const (
    MaxInt = int(^uint(0) >> 1)
)

func DeriveConcatKDF Uses

func DeriveConcatKDF(keydatalen int, sharedSecret, algId, partyUInfo, partyVInfo, suppPubInfo, suppPrivInfo []byte, h hash.Hash) []byte

DeriveConcatKDF implements NIST SP 800-56A Concatenation Key Derivation Function. Derives key material of keydatalen bits size given Z (sharedSecret), OtherInfo (AlgorithmID | PartyUInfo | PartyVInfo | SuppPubInfo | SuppPrivInfo) and hash function

func DerivePBKDF2 Uses

func DerivePBKDF2(password, salt []byte, iterationCount, keyBitLength int, h hash.Hash) []byte

DerivePBKDF2 implements Password Based Key Derivation Function 2, RFC 2898. Derives key of keyBitLength size, given password, salt, iteration count and hash function

Package kdf imports 5 packages (graph) and is imported by 4 packages. Updated 2016-07-31. Refresh now. Tools for package owners.