Function desfire::kdf_an10922(crypto&, mlab::bin_data&, std::uint8_t)
Defined in File kdf.hpp
Function Documentation
-
any_key desfire::kdf_an10922(crypto &crypto, mlab::bin_data &diversify_input, std::uint8_t key_version)
Specialization of the AN10922 KDF function which returns a packages any_key object.
This overload can operate on any crypto subclass, even those that do not derive from crypto_des_base, crypto_2k3des_base, crypto_3k3des_base, crypto_aes_base. The cipher is obtained from crypto::cipher_type. New CMAC keys are always derived when running this overload.
- Parameters:
crypto – Cryptographic object on which the CMAC operation will be run.
diversify_input – Diversification input. At most
2 * BlockSize - 1
bytes wil be used. It will be modified by the operation.key_version – Key version to set in the returned object.
- Returns: