Skip to content

Commit

Permalink
fix: Use existing implementation of select instruction
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <[email protected]>
  • Loading branch information
stv0g committed Jun 20, 2024
1 parent c28eacc commit 0901a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion card.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (c *Card) getAll() error {
//
// See: OpenPGP Smart Card Application - Section 7.2.1 SELECT
func (c *Card) Select() error {
_, err := send(c.tx, iso.InsSelect, 0x04, 0x00, iso.AidOpenPGP)
_, err := c.tx.Select(iso.AidOpenPGP)
return err
}

Expand Down

0 comments on commit 0901a50

Please sign in to comment.