expand

fun expand(algorithm: Algorithm, prk: ByteArray, info: ByteArray, length: Int): ByteArray

The "expand" part of HKDF.

Return

output keying material of length octets.

Parameters

algorithm

the KDF algorithm to use e.g. Algorithm.HMAC_SHA256.

prk

a pseudorandom key of at least the length for the hash function for algorithm.

info

context and application specific information (can be zero-length).

length

length of output keying material in octets.