kdf

package
Version: v0.0.0-...-926964d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2016 License: MIT, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

package kdf contains implementations of various key derivation functions

Index

Constants

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

Variables

This section is empty.

Functions

func DeriveConcatKDF

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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