GithubHelp home page GithubHelp logo

skythen / gobalplatform Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 4.0 79 KB

Golang package collection of GlobalPlatform Card Specification related data and functions

License: MIT License

Go 100.00%
golang globalplatform javacard secure-element smartcard

gobalplatform's People

Contributors

skythen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gobalplatform's Issues

Private util.NullByte used as part of exported type SystemSpecificParameters

It does not seem to be possible to fully initialize fields LoadFileDataBlockFormatID & ImplicitSelectionParameter as part of SystemSpecificParameters literally as util.NullByte isn't exported. A solution may be to export NullByte or add a creation function for SystemSpecificParameters to map to the NullByte type. Please advise

Minor const declaration glitch

For declarations at multiple locations the iota key word is repeated for constant declarations. While this is not necessary it also has some unexpected side-effect if the subsequent const declaration does not include the type explicitly.

Take the following example from key.go:

const (
	CMac            UsageType = iota
	RMac                      = iota

In this case CMac is of type UsageType while RMac is of type int, see: https://go.dev/play/p/3ENR8tilQDi

Suggested fix: Remove "iota" from subsequent const declarations. Alternatively, reiterate the type as part of all const declarations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.