argon

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package argon is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidHash         = errors.New("the encoded hash is not in the correct format")
	ErrIncompatibleVersion = errors.New("incompatible version of argon2")
)

Functions

This section is empty.

Types

type Argon

type Argon interface {
	Hash(password string) (string, error)
	Verify(password string, hash string) (bool, error)
}

func New

func New() Argon

type MockArgon

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

MockArgon is a mock of Argon interface.

func NewMockArgon

func NewMockArgon(ctrl *gomock.Controller) *MockArgon

NewMockArgon creates a new mock instance.

func (*MockArgon) EXPECT

func (m *MockArgon) EXPECT() *MockArgonMockRecorder

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

func (*MockArgon) Hash

func (m *MockArgon) Hash(password string) (string, error)

Hash mocks base method.

func (*MockArgon) Verify

func (m *MockArgon) Verify(password, hash string) (bool, error)

Verify mocks base method.

type MockArgonMockRecorder

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

MockArgonMockRecorder is the mock recorder for MockArgon.

func (*MockArgonMockRecorder) Hash

func (mr *MockArgonMockRecorder) Hash(password interface{}) *gomock.Call

Hash indicates an expected call of Hash.

func (*MockArgonMockRecorder) Verify

func (mr *MockArgonMockRecorder) Verify(password, hash interface{}) *gomock.Call

Verify indicates an expected call of Verify.

Jump to

Keyboard shortcuts

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