package kdf
import "github.com/dvsekhvalnov/jose2go/kdf"
package kdf contains implementations of various key derivation functions
Index ¶
- Constants
- func DeriveConcatKDF(keydatalen int, sharedSecret, algId, partyUInfo, partyVInfo, suppPubInfo, suppPrivInfo []byte, h hash.Hash) []byte
- func DerivePBKDF2(password, salt []byte, iterationCount, keyBitLength int, h func() hash.Hash) []byte
Constants ¶
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 func() 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
Source Files ¶
- Version
- v1.8.0 (latest)
- Published
- Nov 12, 2024
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 3 weeks ago –
Tools for package owners.