add P1ExternalAuthenticateCMAC constant

This commit is contained in:
Andrea Franz 2018-10-02 17:42:19 +02:00
parent fd2a1eda27
commit d5b7793219
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D
1 changed files with 2 additions and 1 deletions

View File

@ -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