Sets a key and the appropriate Authorization Mode bits for a specified Security Level.
If one or more of the SessionKey , MACed , Encrypted or ContinuousIV bits are set, it is not possible to authenticate without the corresponding authentication mode setting.
- Parameters
-
| [in] | params | Struct with the following fields:
- protocol used to execute the command
- ContinuousIV (in) If true , encryption/MACing will use Cipher Block Chaining (CBC). In this case, a continuous initial vector (IV) will be used. If this bit is not set, CBC is not used, i.e. the IV will be reset to all zeros (00 00 ... 00) before every command or response is encrypted/MACed.
- Encrypted (in) Requires that commands running in this security level always have to be encrypted. This flag cannot be set at the same time as the MACed flag.
- MACed (in) Requires that commands running in this security level always have to be MACed. This flag cannot be set at the same time as the Encrypted flag.
- SessionKey (in) Requires a two-phase authentication to be able to enter a security level. This two-phase authentication process needs to be performed using the Sec.AuthPhase1 and Sec.AuthPhase2 commands.
- DeriveKey (in) This value is not used and must be 0. Until firmware v2.14.00, this value referenced the key of the security level, which was used to derive Key. Since firmware v2.20.00, this feature is no longer supported.
- SecLevel (in) The security level for which the key has to be set.
- Key (in) Key/Password for authentication of security level SecLevel.
|