Module: kdf¶
- class doubleratchet.kdf.KDF[source]¶
Bases:
ABC
A KDF is defined as a cryptographic function that takes a secret and random KDF key and some input data and returns output data. The output data is indistinguishable from random provided the key isn’t known (i.e. a KDF satisfies the requirements of a cryptographic “PRF”). If the key is not secret and random, the KDF should still provide a secure cryptographic hash of its key and input data.
https://signal.org/docs/specifications/doubleratchet/#kdf-chains