JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
Send GP commands with MAC via pyApduTool or pyResMan
Send GP commands with MAC via pyApduTool or pyResMan
How can I send GP commands with MAC via pyApdutool or pyResMan? THX
Re: Send GP commands with MAC via pyApduTool or pyResMan
pyApdutool or pyResMan might not meet your requirement.
You can use GPShell.
FYI:
https://sourceforge.net/p/globalplatform/wiki/GPShell/
You can use GPShell.
FYI:
https://sourceforge.net/p/globalplatform/wiki/GPShell/
-
- Posts: 30
- Joined: Wed Aug 19, 2015 2:55 am
- Points :213
- Contact:
Re: Send GP commands with MAC via pyApduTool or pyResMan
Just set SecurityLevel value to 1 or 3, then you can send GP command with MAC and encrypt command data as well.
Re: Send GP commands with MAC via pyApduTool or pyResMan
choimillen wrote:Just set SecurityLevel value to 1 or 3, then you can send GP command with MAC and encrypt command data as well.
Thanks for your answer. But what's SecurityLevel value used to do?
-
- Posts: 30
- Joined: Wed Aug 19, 2015 2:55 am
- Points :213
- Contact:
Re: Send GP commands with MAC via pyApduTool or pyResMan
The below is the related description quoted from Chapter SecurityLevel in GlobalPlatform spec.
SCP02 -> Secure Communication -> Security Level
0 indicates there is no message security processing
1 indicates adding a MAC authentication to the message.
3 indicates adding a MAC authentication to the message and encrypt the message.
SCP02 -> Secure Communication -> Security Level
C_MAC after a successful processing of an EXTERNAL AUTHENTICATE command with P1 indicating C-MAC (P1='x1' or 'x3')
C_DECRYPTION after a successful processing of an EXTERNAL AUTHENTICATE command with P1 indicating Command Encryption (P1= 'x3')
0 indicates there is no message security processing
1 indicates adding a MAC authentication to the message.
3 indicates adding a MAC authentication to the message and encrypt the message.
Who is online
Users browsing this forum: No registered users and 23 guests