Function desfire::kdf_an10922(any_key const&, cipher_provider&, mlab::bin_data&)
Defined in File kdf.hpp
Function Documentation
-
any_key desfire::kdf_an10922(any_key const &key, cipher_provider &provider, mlab::bin_data &diversify_input)
Specialization of the AN10922 KDF function for specific key types.
These overloads can derive a new key from a given key object, by creating the appropriate cipher.
- Parameters:
key – Key to diversify.
provider – Cipher provider for building the correct crypto implementation.
diversify_input – Diversification input. At most
2 * BlockSize - 1
bytes wil be used. It will be modified by the operation.
- Returns:
A diversified key of the same type, with the same version.