I use JCManager tool load applets on my java-cards. This software has three fields for authentication keys in the top named S_ENC
, S_MAC
and DEK
.
As I know, ENC
stands for Encryption, MAC
stands for Message Authentication Code and DEK
stands for Data Encryption Key.
I want to know when they used (which step in communication? INITIAL UPDATE , EXTERNAL AUTHENTICATION? ... )?
Does all of these three keys, used in every communications or some of them are optional to use?
and where? (Card or Terminal or both?)
And also, I want to know what is KEK
? Is there any KEK
in smart cards?