expand(pseudoRandomKey:info:into:)
Expands cryptographically strong key material into a derived symmetric key.
Declaration
static func expand(pseudoRandomKey prk: RawSpan, info: RawSpan?, into output: inout OutputRawSpan)Parameters
- prk:
A pseudorandom, cryptographically strong key generated from the
extract(inputKeyMaterial:salt:)function. - info:
The shared information to use for key derivation.
Discussion
Generate cryptographically strong key material to use with this function by calling extract(inputKeyMaterial:salt:).