Versions in this module Expand all Collapse all v0 v0.3.0 Dec 5, 2021 Changes in this version + const CardAuthenticator + const CardProducer + const LockManager + func Kdf(masterKey []byte, aid uint32, keyNo byte, data, derivedKey []byte) error + func Pbkdf(masterKey []byte, aid uint32, keyNo byte, data, pw []byte, iterations int, ...) error + type Context struct + func New() Context + func (c Context) AddRole(role int, privateBasePath string) error + func (c Context) AuthenticateCard(tag freefare.DESFireTag, pw []byte) (cardId string, err error) + func (c Context) BootstrapManager(preferredSlot int) (bool, error) + func (c Context) BootstrapProducer() (bool, error) + func (c Context) Close() error + func (c Context) IsManagerBootstrapped() bool + func (c Context) IsProducerBootstrapped() bool + func (c Context) ManagerOwnCard(tag freefare.DESFireTag, slot int, keyFile string, pw []byte) error + func (c Context) PrepareAuthenticator() bool + func (c Context) ProducerCardCreate(tag freefare.DESFireTag, cardName string) error + func (c Context) ProducerCardRecreate(tag freefare.DESFireTag, cardName, oldId string) error + type Error int + func (e Error) Error() string