Command: SET-SECURITY

USAGE set-security plain|mac|enc|rmac|crmac|crmacenc
DESCRIPTION Sets the security level of the current secure channel. Note that this setting is only for the client (JCShell) and does not apply for the card.
Desired security levels:
plain
no secure messaging (default)
mac
Command MAC (C-MAC) generation
enc
Command data encryption (C-ENC) and C-MAC generation
rmac
Response MAC (R-MAC) generation
crmac
C-MAC and R-MAC generation
crmacenc
C-MAC, R-MAC and C-ENC
PARAMETER
NameDescriptionRequired
--+-- plain ---+-->
  !            !
  +-- mac -----+
  !            !
  +-- enc -----+
  !            !
  +-- rmac ----+
  !            !
  +-- crmac ---+
  !            !
  +- crmacenc -+
Desired security level. Yes
EXAMPLE
cm>  send 0000000000
 => 00 00 00 00 00                                     .....
 (0 msec)
 <= 90 00                                              ..
Status: No Error

cm>  set-security mac
cm>  send 0000000000
 => 04 00 00 00 08 D9 70 BC 08 30 7B 2E AA             ......p..0{..
 (0 msec)
 <= 90 00                                              ..
Status: No Error

cm>  set-security enc
cm>  send 0000000000
 => 04 00 00 00 08 D9 70 BC 08 30 7B 2E AA             ......p..0{..
 (0 msec)
 <= 90 00                                              ..
Status: No Error

  		
CONDITIONS A secure channel must be established (refer to the auth command)