mirror of
https://github.com/status-im/keycard-go.git
synced 2025-01-24 02:39:35 +00:00
check if card is blocked
This commit is contained in:
parent
5f7af0f5e1
commit
7354d52c0a
@ -143,6 +143,9 @@ func (cs *CommandSet) initializeUpdate(hostChallenge []byte) error {
|
|||||||
// verify cryptogram and initialize session keys
|
// verify cryptogram and initialize session keys
|
||||||
keys := NewSCP02Keys(identifiers.CardTestKey, identifiers.CardTestKey)
|
keys := NewSCP02Keys(identifiers.CardTestKey, identifiers.CardTestKey)
|
||||||
session, err := NewSession(keys, resp, hostChallenge)
|
session, err := NewSession(keys, resp, hostChallenge)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
cs.c = NewSecureChannel(session, cs.c)
|
cs.c = NewSecureChannel(session, cs.c)
|
||||||
cs.session = session
|
cs.session = session
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user