yubico

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package yubico is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAndImportKeyToYubikey

func GenerateAndImportKeyToYubikey() (*ecdsa.PublicKey, error)

Types

type MockpivYubikey

type MockpivYubikey struct {
	// contains filtered or unexported fields
}

MockpivYubikey is a mock of pivYubikey interface.

func NewMockpivYubikey

func NewMockpivYubikey(ctrl *gomock.Controller) *MockpivYubikey

NewMockpivYubikey creates a new mock instance.

func (*MockpivYubikey) Close

func (m *MockpivYubikey) Close() error

Close mocks base method.

func (*MockpivYubikey) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockpivYubikey) GenerateKey

func (m *MockpivYubikey) GenerateKey(key [24]byte, slot piv.Slot, keyTemplate piv.Key) (crypto.PublicKey, error)

GenerateKey mocks base method.

func (*MockpivYubikey) PrivateKey

func (m *MockpivYubikey) PrivateKey(slot piv.Slot, pub crypto.PublicKey, auth piv.KeyAuth) (crypto.PrivateKey, error)

PrivateKey mocks base method.

type MockpivYubikeyMockRecorder

type MockpivYubikeyMockRecorder struct {
	// contains filtered or unexported fields
}

MockpivYubikeyMockRecorder is the mock recorder for MockpivYubikey.

func (*MockpivYubikeyMockRecorder) Close

func (mr *MockpivYubikeyMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockpivYubikeyMockRecorder) GenerateKey

func (mr *MockpivYubikeyMockRecorder) GenerateKey(key, slot, keyTemplate interface{}) *gomock.Call

GenerateKey indicates an expected call of GenerateKey.

func (*MockpivYubikeyMockRecorder) PrivateKey

func (mr *MockpivYubikeyMockRecorder) PrivateKey(slot, pub, auth interface{}) *gomock.Call

PrivateKey indicates an expected call of PrivateKey.

type Yubikey

type Yubikey struct {
	// contains filtered or unexported fields
}

func NewYubikey

func NewYubikey() (*Yubikey, error)

func (*Yubikey) Close

func (s *Yubikey) Close() error

func (*Yubikey) GenerateKey

func (s *Yubikey) GenerateKey() (crypto.PublicKey, error)

func (*Yubikey) SignByYubikey

func (s *Yubikey) SignByYubikey(pub crypto.PublicKey, text []byte, pin int32) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL