deriveKey

suspend fun KDF.deriveKey(salt: ByteArray, ikm: ByteArray, derivedKeyLength: BitLength): KmmResult<ByteArray>(source)

Derives a key using the specified KDF implementation.

Parameters

salt

the salt to use

ikm

the input key material

derivedKeyLength

the length of the derived key

Any other parameters are set during instantiation of the KDF implementation.