Enum desfire::app_crypto

Enum Documentation

enum class desfire::app_crypto : std::uint8_t

Cryptographic settings used to encrypt app data. This cannot be changed, an app must be created on one of those. This is a subset of desfire::cipher_type, since DES and 2K3DES are aggregated in the same mode.

See also

tag::create_app

Warning

It’s (at least) 2023, you should really only be using aes_128. However, since the default app keys are always DES, we support this whole circus.

Values:

enumerator legacy_des_2k3des

Classical DES and 2K3DES (2TDEA). Insecure, do not use in new applications.

enumerator iso_3k3des

Triple DES, (3DES). Insecure, do not use in new applications.

enumerator aes_128

AES128 encryption. This is what you should be using.