When to use expand or keyed hash function?

Typically, Expand is used to produce a long output, and that output is divided up into smaller keys (e.g. 1024 bits divided into four 256-bit keys). However, it is also possible to use Expand once for each key, while providing a different value each time for the “info” parameter.
For More Information Please Refer:

You May Also Like to Read: