keycard-go/globalplatform/keyprovider.go

22 lines
288 B
Go
Raw Normal View History

2018-09-27 13:29:07 +00:00
package globalplatform
type KeyProvider struct {
enc []byte
mac []byte
}
func (k *KeyProvider) Enc() []byte {
return k.enc
}
func (k *KeyProvider) Mac() []byte {
return k.mac
}
func NewKeyProvider(enc, mac []byte) *KeyProvider {
return &KeyProvider{
enc: enc,
mac: mac,
}
}