Derive more keys from a key

For many use cases it is desirable to derive multiple keys from one master key. This not only increases security, it also greatly simplifies key management.

graph LR; MK(fa:fa-key Masterkey) --> KDF[fa:fa-cog Key Derivation Function] S(Salt) --> KDF ID(Context + SubKey ID) --> KDF KDF --> SK(fa:fa-key Subkey) SK -.-> AES[fa:fa-cog AES]

TODO

Examples