Documentation ¶
Index ¶
- Constants
- type Dongle
- func (dongle *Dongle) Certificate() *x509.Certificate
- func (dongle *Dongle) Close()
- func (dongle *Dongle) CommonName() string
- func (dongle *Dongle) ContentsCode() string
- func (dongle *Dongle) Decrypt(rand io.Reader, msg []byte, opts crypto.DecrypterOpts) ([]byte, error)
- func (dongle *Dongle) DecryptKey(b []byte) ([]byte, error)
- func (dongle *Dongle) Public() crypto.PublicKey
- func (dongle *Dongle) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error)
- func (dongle *Dongle) Type() KeyType
- type KeyType
- type PinGenerator
Constants ¶
View Source
const (
NumberOfPins
)
View Source
const SerialLength = 16
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dongle ¶
type Dongle struct {
// contains filtered or unexported fields
}
implements keyring.KeySource, crypto.Decrypter, and crypto.Signer
func (*Dongle) Certificate ¶
func (dongle *Dongle) Certificate() *x509.Certificate
func (*Dongle) CommonName ¶
func (*Dongle) ContentsCode ¶
type PinGenerator ¶
type PinGenerator struct {
// contains filtered or unexported fields
}
func NewPinGenerator ¶
func NewPinGenerator(serial []byte) (*PinGenerator, error)
func (*PinGenerator) Generate ¶
func (pg *PinGenerator) Generate() []byte
Click to show internal directories.
Click to hide internal directories.