mirror of
https://github.com/status-im/keycard-go.git
synced 2025-01-22 17:59:35 +00:00
add P1ExternalAuthenticateCMAC constant
This commit is contained in:
parent
fd2a1eda27
commit
d5b7793219
@ -17,6 +17,7 @@ const (
|
||||
InsDelete = uint8(0xE4)
|
||||
InsInstall = uint8(0xE6)
|
||||
|
||||
P1ExternalAuthenticateCMAC = uint8(0x01)
|
||||
P1InstallForLoad = uint8(0x02)
|
||||
P1InstallForInstall = uint8(0x04)
|
||||
P1InstallForMakeSelectable = uint8(0x08)
|
||||
@ -64,7 +65,7 @@ func NewCommandExternalAuthenticate(encKey, cardChallenge, hostChallenge []byte)
|
||||
return apdu.NewCommand(
|
||||
ClaMac,
|
||||
InsExternalAuthenticate,
|
||||
uint8(0x01), // C-MAC
|
||||
P1ExternalAuthenticateCMAC, // C-MAC
|
||||
uint8(0x00),
|
||||
hostCryptogram,
|
||||
), nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user