Skip to content
PKIjsPKIjsPKIjsv4.0.1

kdf

kdf(hashFunction, Zbuffer, keydatalen, SharedInfo, crypto?): Promise<ArrayBuffer>

ANS X9.63 Key Derivation Function

string

Used hash function

ArrayBuffer

ArrayBuffer containing ECDH shared secret to derive from

number

Length (!!! in BITS !!!) of used kew derivation function

ArrayBuffer

Usually DER encoded “ECC_CMS_SharedInfo” structure

ICryptoEngine = ...

Crypto engine

Promise<ArrayBuffer>