KDFs
KDFs copied to clipboard
Initial commit for KBKDF
This implements KBKDF as defined in https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-108r1.pdf
This also implements non-standards behavior like use-l and use-separator. Those are used in TPMs for the KDFa method for example. See comments below for questions about that.
Missing:
- [ ] double pipeline iteration mode (if you have an oracle in mind where to get for reference values, I'd love that)
- [ ] tests with more than sha256 / sha512
Nist has test vectors http://csrc.nist.gov/groups/STM/cavp/index.html