feitian

package
v0.8.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct {
	*iso.Card
}

func NewCard added in v0.8.0

func NewCard(card iso.PCSCCard) *Card

func (*Card) COSVersion

func (c *Card) COSVersion() (string, error)

func (*Card) SerialNumber

func (c *Card) SerialNumber() (string, error)

func (*Card) Transmit

func (c *Card) Transmit(cmd *iso.CAPDU) ([]byte, error)

Transmit sends an APDU to the card and returns the response. This is a custom version of iso7816.Card.Transmit() as FEITIAN has a broken ISO-7816-4 implementation in their tokens.

Source Files

  • feitian.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL