P1:
Data:
If P1 is 0x01 or 0x02
If P1 is 0x03 or 0x04 a sequence of 16 to 64 bytes generated according to the BIP39 or SLIP39 specifications is expected. The master key will be generated according to the BIP32 specifications. This is only supported if the hardware supports public key derivation.
This command is used to load or replace the keypair used for signing on the card. Loading a key replaces the previous one completely; since there is no persistent key path on the card, the next command simply carries the path it wants to use.
P1 = 0x04 derives the LEE keytree from the seed alongside the BIP-32 one and puts the card in LEE mode, reported by the SELECT status byte and used by EXPORT LEE. Loading a seed with P1 = 0x03, or loading a plain keypair, clears the LEE keytree and leaves LEE mode. See the LEE specification for what the derived material is used for.
Before 4.0, loading a key also reset the pinless path. That concept no longer exists.