clsam

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClSam

type ClSam struct {
	smartcard.ICard
}

func ConnectSam

func ConnectSam(r smartcard.IReader) (*ClSam, error)

ConnectSam Create Sam

func NewClSam

func NewClSam(c smartcard.ICard) *ClSam

ClSam Create SAM from Card

func (*ClSam) Apdu

func (s *ClSam) Apdu(data []byte) ([]byte, error)

func (*ClSam) GetKey

func (s *ClSam) GetKey(keyfile []byte) (int, error)

func (*ClSam) GetResponse

func (s *ClSam) GetResponse(lenResponse int) ([]byte, error)

func (*ClSam) OsInfo

func (s *ClSam) OsInfo() ([]byte, error)

func (ClSam) PinVerify

func (s ClSam) PinVerify(data []byte) error

func (*ClSam) PutFile

func (s *ClSam) PutFile(fileId, data []byte) ([]byte, error)

func (*ClSam) ReadBinary

func (s *ClSam) ReadBinary(lenData int) ([]byte, error)

func (*ClSam) ReadBinary00

func (s *ClSam) ReadBinary00(lenData int) ([]byte, error)

func (*ClSam) ResetChannel

func (s *ClSam) ResetChannel(data []byte) error

func (*ClSam) SelectFile

func (s *ClSam) SelectFile(fileId []byte) error

func (*ClSam) SelectFile00

func (s *ClSam) SelectFile00(fileId []byte) error

func (*ClSam) Serial

func (s *ClSam) Serial() ([]byte, error)

func (*ClSam) UID

func (s *ClSam) UID() ([]byte, error)

Jump to

Keyboard shortcuts

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