Function desfire::kdf_an10922(key<cipher_type::des3_3k> const&, cipher_provider&, mlab::bin_data&)

Function Documentation

key<cipher_type::des3_3k> desfire::kdf_an10922(key<cipher_type::des3_3k> 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.