check if card is blocked

This commit is contained in:
Andrea Franz 2019-03-06 12:55:57 +01:00
parent 5f7af0f5e1
commit 7354d52c0a
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D
1 changed files with 3 additions and 0 deletions

View File

@ -143,6 +143,9 @@ func (cs *CommandSet) initializeUpdate(hostChallenge []byte) error {
// verify cryptogram and initialize session keys
keys := NewSCP02Keys(identifiers.CardTestKey, identifiers.CardTestKey)
session, err := NewSession(keys, resp, hostChallenge)
if err != nil {
return err
}
cs.c = NewSecureChannel(session, cs.c)
cs.session = session