mirror of
https://github.com/status-im/keycard-go.git
synced 2025-01-20 16:59:09 +00:00
22 lines
288 B
Go
22 lines
288 B
Go
|
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,
|
||
|
}
|
||
|
}
|