aid

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package aid provides functions for handling AID as specified in ISO/IEC 7816-5.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AID

type AID []byte

AID is an identifier for a chip card application.

func ParseAID

func ParseAID(b []byte) (*AID, error)

ParseAID parses an application identifier from bytes and returns an AID. A valid application identifier has a length of 5-16 bytes.

func (AID) PIX

func (a AID) PIX() []byte

PIX returns the Proprietary Application Identifier Extension of an AID which consists of all byte following its first five bytes.

func (AID) RID

func (a AID) RID() []byte

RID returns the Registered Identifier of an AID which consists of its first 5 bytes.

Jump to

Keyboard shortcuts

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