From 8adf2b6627095127f26f77af865c056bb510097a Mon Sep 17 00:00:00 2001 From: Andrea Franz Date: Mon, 15 Apr 2019 16:11:25 +0200 Subject: [PATCH] fix p1 constants for derive key command --- commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands.go b/commands.go index 72fd616..60987be 100644 --- a/commands.go +++ b/commands.go @@ -30,8 +30,8 @@ const ( P1GetStatusApplication = 0x00 P1GetStatusKeyPath = 0x01 P1DeriveKeyFromMaster = 0x00 - P1DeriveKeyFromParent = 0x01 - P1DeriveKeyFromCurrent = 0x10 + P1DeriveKeyFromParent = 0x40 + P1DeriveKeyFromCurrent = 0x80 P1ChangePinPIN = 0x00 P1ChangePinPUK = 0x01 P1ChangePinPairingSecret = 0x02