crypto

package
v0.0.0-...-96d1451 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package crypto is a generated GoMock package.

Package crypto is a generated GoMock package.

Package crypto is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAlgebraicSys

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

MockAlgebraicSys is a mock of AlgebraicSys interface.

func NewMockAlgebraicSys

func NewMockAlgebraicSys(ctrl *gomock.Controller) *MockAlgebraicSys

NewMockAlgebraicSys creates a new mock instance.

func (*MockAlgebraicSys) EXPECT

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

func (*MockAlgebraicSys) GetModule

func (m *MockAlgebraicSys) GetModule() *big.Int

GetModule mocks base method.

func (*MockAlgebraicSys) GetRootOfUnity

func (m *MockAlgebraicSys) GetRootOfUnity(arg0 uint64) (crypto.FieldElement, uint64, error)

GetRootOfUnity mocks base method.

func (*MockAlgebraicSys) Marshal

func (m *MockAlgebraicSys) Marshal() []byte

Marshal mocks base method.

func (*MockAlgebraicSys) Name

func (m *MockAlgebraicSys) Name() string

Name mocks base method.

func (*MockAlgebraicSys) NewScalar

func (m *MockAlgebraicSys) NewScalar() crypto.FieldElement

NewScalar mocks base method.

func (*MockAlgebraicSys) PutScalar

func (m *MockAlgebraicSys) PutScalar(arg0 crypto.FieldElement)

PutScalar mocks base method.

func (*MockAlgebraicSys) Unmarshal

func (m *MockAlgebraicSys) Unmarshal(arg0 []byte) ([]byte, error)

Unmarshal mocks base method.

type MockAlgebraicSysMockRecorder

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

MockAlgebraicSysMockRecorder is the mock recorder for MockAlgebraicSys.

func (*MockAlgebraicSysMockRecorder) GetModule

func (mr *MockAlgebraicSysMockRecorder) GetModule() *gomock.Call

GetModule indicates an expected call of GetModule.

func (*MockAlgebraicSysMockRecorder) GetRootOfUnity

func (mr *MockAlgebraicSysMockRecorder) GetRootOfUnity(arg0 interface{}) *gomock.Call

GetRootOfUnity indicates an expected call of GetRootOfUnity.

func (*MockAlgebraicSysMockRecorder) Marshal

func (mr *MockAlgebraicSysMockRecorder) Marshal() *gomock.Call

Marshal indicates an expected call of Marshal.

func (*MockAlgebraicSysMockRecorder) Name

Name indicates an expected call of Name.

func (*MockAlgebraicSysMockRecorder) NewScalar

func (mr *MockAlgebraicSysMockRecorder) NewScalar() *gomock.Call

NewScalar indicates an expected call of NewScalar.

func (*MockAlgebraicSysMockRecorder) PutScalar

func (mr *MockAlgebraicSysMockRecorder) PutScalar(arg0 interface{}) *gomock.Call

PutScalar indicates an expected call of PutScalar.

func (*MockAlgebraicSysMockRecorder) Unmarshal

func (mr *MockAlgebraicSysMockRecorder) Unmarshal(arg0 interface{}) *gomock.Call

Unmarshal indicates an expected call of Unmarshal.

type MockCA

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

MockCA is a mock of CA interface.

func NewMockCA

func NewMockCA(ctrl *gomock.Controller) *MockCA

NewMockCA creates a new mock instance.

func (*MockCA) EXPECT

func (m *MockCA) EXPECT() *MockCAMockRecorder

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

func (*MockCA) GetHostName

func (m *MockCA) GetHostName() string

GetHostName mocks base method.

func (*MockCA) GetKeyIdentifier

func (m *MockCA) GetKeyIdentifier() []byte

GetKeyIdentifier mocks base method.

func (*MockCA) GetPubKeyForPairing

func (m *MockCA) GetPubKeyForPairing() []byte

GetPubKeyForPairing mocks base method.

func (*MockCA) String

func (m *MockCA) String() string

String mocks base method.

type MockCAMockRecorder

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

MockCAMockRecorder is the mock recorder for MockCA.

func (*MockCAMockRecorder) GetHostName

func (mr *MockCAMockRecorder) GetHostName() *gomock.Call

GetHostName indicates an expected call of GetHostName.

func (*MockCAMockRecorder) GetKeyIdentifier

func (mr *MockCAMockRecorder) GetKeyIdentifier() *gomock.Call

GetKeyIdentifier indicates an expected call of GetKeyIdentifier.

func (*MockCAMockRecorder) GetPubKeyForPairing

func (mr *MockCAMockRecorder) GetPubKeyForPairing() *gomock.Call

GetPubKeyForPairing indicates an expected call of GetPubKeyForPairing.

func (*MockCAMockRecorder) String

func (mr *MockCAMockRecorder) String() *gomock.Call

String indicates an expected call of String.

type MockCert

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

MockCert is a mock of Cert interface.

func NewMockCert

func NewMockCert(ctrl *gomock.Controller) *MockCert

NewMockCert creates a new mock instance.

func (*MockCert) EXPECT

func (m *MockCert) EXPECT() *MockCertMockRecorder

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

func (*MockCert) GetAuthorityKeyIdentifier

func (m *MockCert) GetAuthorityKeyIdentifier() []byte

GetAuthorityKeyIdentifier mocks base method.

func (*MockCert) GetCAHostName

func (m *MockCert) GetCAHostName() string

GetCAHostName mocks base method.

func (*MockCert) GetCertType

func (m *MockCert) GetCertType() crypto.CertType

GetCertType mocks base method.

func (*MockCert) GetExtName

func (m *MockCert) GetExtName() map[string]string

GetExtName mocks base method.

func (*MockCert) GetHostName

func (m *MockCert) GetHostName() string

GetHostName mocks base method.

func (*MockCert) GetVerifyKey

func (m *MockCert) GetVerifyKey() crypto.VerifyKey

GetVerifyKey mocks base method.

func (*MockCert) String

func (m *MockCert) String() string

String mocks base method.

func (*MockCert) VerifyCert

func (m *MockCert) VerifyCert(caList []string) error

VerifyCert mocks base method.

type MockCertMockRecorder

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

MockCertMockRecorder is the mock recorder for MockCert.

func (*MockCertMockRecorder) GetAuthorityKeyIdentifier

func (mr *MockCertMockRecorder) GetAuthorityKeyIdentifier() *gomock.Call

GetAuthorityKeyIdentifier indicates an expected call of GetAuthorityKeyIdentifier.

func (*MockCertMockRecorder) GetCAHostName

func (mr *MockCertMockRecorder) GetCAHostName() *gomock.Call

GetCAHostName indicates an expected call of GetCAHostName.

func (*MockCertMockRecorder) GetCertType

func (mr *MockCertMockRecorder) GetCertType() *gomock.Call

GetCertType indicates an expected call of GetCertType.

func (*MockCertMockRecorder) GetExtName

func (mr *MockCertMockRecorder) GetExtName() *gomock.Call

GetExtName indicates an expected call of GetExtName.

func (*MockCertMockRecorder) GetHostName

func (mr *MockCertMockRecorder) GetHostName() *gomock.Call

GetHostName indicates an expected call of GetHostName.

func (*MockCertMockRecorder) GetVerifyKey

func (mr *MockCertMockRecorder) GetVerifyKey() *gomock.Call

GetVerifyKey indicates an expected call of GetVerifyKey.

func (*MockCertMockRecorder) String

func (mr *MockCertMockRecorder) String() *gomock.Call

String indicates an expected call of String.

func (*MockCertMockRecorder) VerifyCert

func (mr *MockCertMockRecorder) VerifyCert(caList interface{}) *gomock.Call

VerifyCert indicates an expected call of VerifyCert.

type MockCryptor

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

MockCryptor is a mock of Cryptor interface.

func NewMockCryptor

func NewMockCryptor(ctrl *gomock.Controller) *MockCryptor

NewMockCryptor creates a new mock instance.

func (*MockCryptor) Decrypt

func (m *MockCryptor) Decrypt(k, cipherText []byte) ([]byte, error)

Decrypt mocks base method.

func (*MockCryptor) EXPECT

func (m *MockCryptor) EXPECT() *MockCryptorMockRecorder

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

func (*MockCryptor) Encrypt

func (m *MockCryptor) Encrypt(k, plaintext []byte, reader io.Reader) ([]byte, error)

Encrypt mocks base method.

type MockCryptorMockRecorder

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

MockCryptorMockRecorder is the mock recorder for MockCryptor.

func (*MockCryptorMockRecorder) Decrypt

func (mr *MockCryptorMockRecorder) Decrypt(k, cipherText interface{}) *gomock.Call

Decrypt indicates an expected call of Decrypt.

func (*MockCryptorMockRecorder) Encrypt

func (mr *MockCryptorMockRecorder) Encrypt(k, plaintext, reader interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

type MockDecKey

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

MockDecKey is a mock of DecKey interface.

func NewMockDecKey

func NewMockDecKey(ctrl *gomock.Controller) *MockDecKey

NewMockDecKey creates a new mock instance.

func (*MockDecKey) Bytes

func (m *MockDecKey) Bytes() []byte

Bytes mocks base method.

func (*MockDecKey) Decrypt

func (m *MockDecKey) Decrypt(cipher []byte) ([]byte, error)

Decrypt mocks base method.

func (*MockDecKey) Destroy

func (m *MockDecKey) Destroy()

Destroy mocks base method.

func (*MockDecKey) EXPECT

func (m *MockDecKey) EXPECT() *MockDecKeyMockRecorder

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

func (*MockDecKey) Encrypt

func (m *MockDecKey) Encrypt(msg []byte, reader io.Reader) ([]byte, error)

Encrypt mocks base method.

func (*MockDecKey) GetKeyInfo

func (m *MockDecKey) GetKeyInfo() int

GetKeyInfo mocks base method.

type MockDecKeyMockRecorder

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

MockDecKeyMockRecorder is the mock recorder for MockDecKey.

func (*MockDecKeyMockRecorder) Bytes

func (mr *MockDecKeyMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockDecKeyMockRecorder) Decrypt

func (mr *MockDecKeyMockRecorder) Decrypt(cipher interface{}) *gomock.Call

Decrypt indicates an expected call of Decrypt.

func (*MockDecKeyMockRecorder) Destroy

func (mr *MockDecKeyMockRecorder) Destroy() *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockDecKeyMockRecorder) Encrypt

func (mr *MockDecKeyMockRecorder) Encrypt(msg, reader interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

func (*MockDecKeyMockRecorder) GetKeyInfo

func (mr *MockDecKeyMockRecorder) GetKeyInfo() *gomock.Call

GetKeyInfo indicates an expected call of GetKeyInfo.

type MockDecryptor

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

MockDecryptor is a mock of Decryptor interface.

func NewMockDecryptor

func NewMockDecryptor(ctrl *gomock.Controller) *MockDecryptor

NewMockDecryptor creates a new mock instance.

func (*MockDecryptor) Decrypt

func (m *MockDecryptor) Decrypt(k, cipherText []byte) ([]byte, error)

Decrypt mocks base method.

func (*MockDecryptor) EXPECT

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

type MockDecryptorMockRecorder

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

MockDecryptorMockRecorder is the mock recorder for MockDecryptor.

func (*MockDecryptorMockRecorder) Decrypt

func (mr *MockDecryptorMockRecorder) Decrypt(k, cipherText interface{}) *gomock.Call

Decrypt indicates an expected call of Decrypt.

type MockEncKey

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

MockEncKey is a mock of EncKey interface.

func NewMockEncKey

func NewMockEncKey(ctrl *gomock.Controller) *MockEncKey

NewMockEncKey creates a new mock instance.

func (*MockEncKey) Bytes

func (m *MockEncKey) Bytes() []byte

Bytes mocks base method.

func (*MockEncKey) EXPECT

func (m *MockEncKey) EXPECT() *MockEncKeyMockRecorder

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

func (*MockEncKey) Encrypt

func (m *MockEncKey) Encrypt(msg []byte, reader io.Reader) ([]byte, error)

Encrypt mocks base method.

func (*MockEncKey) GetKeyInfo

func (m *MockEncKey) GetKeyInfo() int

GetKeyInfo mocks base method.

type MockEncKeyMockRecorder

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

MockEncKeyMockRecorder is the mock recorder for MockEncKey.

func (*MockEncKeyMockRecorder) Bytes

func (mr *MockEncKeyMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockEncKeyMockRecorder) Encrypt

func (mr *MockEncKeyMockRecorder) Encrypt(msg, reader interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

func (*MockEncKeyMockRecorder) GetKeyInfo

func (mr *MockEncKeyMockRecorder) GetKeyInfo() *gomock.Call

GetKeyInfo indicates an expected call of GetKeyInfo.

type MockEncryptor

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

MockEncryptor is a mock of Encryptor interface.

func NewMockEncryptor

func NewMockEncryptor(ctrl *gomock.Controller) *MockEncryptor

NewMockEncryptor creates a new mock instance.

func (*MockEncryptor) EXPECT

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

func (*MockEncryptor) Encrypt

func (m *MockEncryptor) Encrypt(k, plaintext []byte, reader io.Reader) ([]byte, error)

Encrypt mocks base method.

type MockEncryptorMockRecorder

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

MockEncryptorMockRecorder is the mock recorder for MockEncryptor.

func (*MockEncryptorMockRecorder) Encrypt

func (mr *MockEncryptorMockRecorder) Encrypt(k, plaintext, reader interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

type MockFieldElement

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

MockFieldElement is a mock of FieldElement interface.

func NewMockFieldElement

func NewMockFieldElement(ctrl *gomock.Controller) *MockFieldElement

NewMockFieldElement creates a new mock instance.

func (*MockFieldElement) Add

Add mocks base method.

func (*MockFieldElement) Copy

Copy mocks base method.

func (*MockFieldElement) Div

Div mocks base method.

func (*MockFieldElement) Double

Double mocks base method.

func (*MockFieldElement) EXPECT

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

func (*MockFieldElement) Equal

func (m *MockFieldElement) Equal(arg0 crypto.FieldElement) bool

Equal mocks base method.

func (*MockFieldElement) Exp

Exp mocks base method.

func (*MockFieldElement) From

func (m *MockFieldElement) From(rat *big.Int) crypto.FieldElement

From mocks base method.

func (*MockFieldElement) FromRegular

func (m *MockFieldElement) FromRegular(content []byte) crypto.FieldElement

FromRegular mocks base method.

func (*MockFieldElement) GetModule

func (m *MockFieldElement) GetModule(arg0 *big.Int)

GetModule mocks base method.

func (*MockFieldElement) Inv

Inv mocks base method.

func (*MockFieldElement) IsNeg

func (m *MockFieldElement) IsNeg() bool

IsNeg mocks base method.

func (*MockFieldElement) IsOne

func (m *MockFieldElement) IsOne() bool

IsOne mocks base method.

func (*MockFieldElement) IsZero

func (m *MockFieldElement) IsZero() bool

IsZero mocks base method.

func (*MockFieldElement) MarshalJSON

func (m *MockFieldElement) MarshalJSON() ([]byte, error)

MarshalJSON mocks base method.

func (*MockFieldElement) MontBytes

func (m *MockFieldElement) MontBytes(res []byte) []byte

MontBytes mocks base method.

func (*MockFieldElement) Mul

Mul mocks base method.

func (*MockFieldElement) Neg

Neg mocks base method.

func (*MockFieldElement) Regular

func (m *MockFieldElement) Regular(in []byte) []byte

Regular mocks base method.

func (*MockFieldElement) Set

Set mocks base method.

func (*MockFieldElement) SetInt64

func (m *MockFieldElement) SetInt64(arg0 int64) crypto.FieldElement

SetInt64 mocks base method.

func (*MockFieldElement) SetOne

func (m *MockFieldElement) SetOne() crypto.FieldElement

SetOne mocks base method.

func (*MockFieldElement) SetRandom

func (m *MockFieldElement) SetRandom(arg0 io.Reader) crypto.FieldElement

SetRandom mocks base method.

func (*MockFieldElement) SetUint64

func (m *MockFieldElement) SetUint64(arg0 uint64) crypto.FieldElement

SetUint64 mocks base method.

func (*MockFieldElement) SetZero

func (m *MockFieldElement) SetZero() crypto.FieldElement

SetZero mocks base method.

func (*MockFieldElement) Square

Square mocks base method.

func (*MockFieldElement) String

func (m *MockFieldElement) String() string

String mocks base method.

func (*MockFieldElement) Sub

Sub mocks base method.

func (*MockFieldElement) UnmarshalJSON

func (m *MockFieldElement) UnmarshalJSON(arg0 []byte) error

UnmarshalJSON mocks base method.

type MockFieldElementMockRecorder

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

MockFieldElementMockRecorder is the mock recorder for MockFieldElement.

func (*MockFieldElementMockRecorder) Add

func (mr *MockFieldElementMockRecorder) Add(a1, a2 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockFieldElementMockRecorder) Copy

Copy indicates an expected call of Copy.

func (*MockFieldElementMockRecorder) Div

func (mr *MockFieldElementMockRecorder) Div(a1, a2 interface{}) *gomock.Call

Div indicates an expected call of Div.

func (*MockFieldElementMockRecorder) Double

func (mr *MockFieldElementMockRecorder) Double(arg0 interface{}) *gomock.Call

Double indicates an expected call of Double.

func (*MockFieldElementMockRecorder) Equal

func (mr *MockFieldElementMockRecorder) Equal(arg0 interface{}) *gomock.Call

Equal indicates an expected call of Equal.

func (*MockFieldElementMockRecorder) Exp

func (mr *MockFieldElementMockRecorder) Exp(arg0, arg1 interface{}) *gomock.Call

Exp indicates an expected call of Exp.

func (*MockFieldElementMockRecorder) From

func (mr *MockFieldElementMockRecorder) From(rat interface{}) *gomock.Call

From indicates an expected call of From.

func (*MockFieldElementMockRecorder) FromRegular

func (mr *MockFieldElementMockRecorder) FromRegular(content interface{}) *gomock.Call

FromRegular indicates an expected call of FromRegular.

func (*MockFieldElementMockRecorder) GetModule

func (mr *MockFieldElementMockRecorder) GetModule(arg0 interface{}) *gomock.Call

GetModule indicates an expected call of GetModule.

func (*MockFieldElementMockRecorder) Inv

func (mr *MockFieldElementMockRecorder) Inv(arg0 interface{}) *gomock.Call

Inv indicates an expected call of Inv.

func (*MockFieldElementMockRecorder) IsNeg

IsNeg indicates an expected call of IsNeg.

func (*MockFieldElementMockRecorder) IsOne

IsOne indicates an expected call of IsOne.

func (*MockFieldElementMockRecorder) IsZero

IsZero indicates an expected call of IsZero.

func (*MockFieldElementMockRecorder) MarshalJSON

func (mr *MockFieldElementMockRecorder) MarshalJSON() *gomock.Call

MarshalJSON indicates an expected call of MarshalJSON.

func (*MockFieldElementMockRecorder) MontBytes

func (mr *MockFieldElementMockRecorder) MontBytes(res interface{}) *gomock.Call

MontBytes indicates an expected call of MontBytes.

func (*MockFieldElementMockRecorder) Mul

func (mr *MockFieldElementMockRecorder) Mul(a1, a2 interface{}) *gomock.Call

Mul indicates an expected call of Mul.

func (*MockFieldElementMockRecorder) Neg

func (mr *MockFieldElementMockRecorder) Neg(arg0 interface{}) *gomock.Call

Neg indicates an expected call of Neg.

func (*MockFieldElementMockRecorder) Regular

func (mr *MockFieldElementMockRecorder) Regular(in interface{}) *gomock.Call

Regular indicates an expected call of Regular.

func (*MockFieldElementMockRecorder) Set

func (mr *MockFieldElementMockRecorder) Set(arg0 interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockFieldElementMockRecorder) SetInt64

func (mr *MockFieldElementMockRecorder) SetInt64(arg0 interface{}) *gomock.Call

SetInt64 indicates an expected call of SetInt64.

func (*MockFieldElementMockRecorder) SetOne

SetOne indicates an expected call of SetOne.

func (*MockFieldElementMockRecorder) SetRandom

func (mr *MockFieldElementMockRecorder) SetRandom(arg0 interface{}) *gomock.Call

SetRandom indicates an expected call of SetRandom.

func (*MockFieldElementMockRecorder) SetUint64

func (mr *MockFieldElementMockRecorder) SetUint64(arg0 interface{}) *gomock.Call

SetUint64 indicates an expected call of SetUint64.

func (*MockFieldElementMockRecorder) SetZero

func (mr *MockFieldElementMockRecorder) SetZero() *gomock.Call

SetZero indicates an expected call of SetZero.

func (*MockFieldElementMockRecorder) Square

func (mr *MockFieldElementMockRecorder) Square(arg0 interface{}) *gomock.Call

Square indicates an expected call of Square.

func (*MockFieldElementMockRecorder) String

String indicates an expected call of String.

func (*MockFieldElementMockRecorder) Sub

func (mr *MockFieldElementMockRecorder) Sub(a1, a2 interface{}) *gomock.Call

Sub indicates an expected call of Sub.

func (*MockFieldElementMockRecorder) UnmarshalJSON

func (mr *MockFieldElementMockRecorder) UnmarshalJSON(arg0 interface{}) *gomock.Call

UnmarshalJSON indicates an expected call of UnmarshalJSON.

type MockFlagReader

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

MockFlagReader is a mock of FlagReader interface.

func NewMockFlagReader

func NewMockFlagReader(ctrl *gomock.Controller) *MockFlagReader

NewMockFlagReader creates a new mock instance.

func (*MockFlagReader) EXPECT

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

func (*MockFlagReader) GetFlag

func (m *MockFlagReader) GetFlag() int

GetFlag mocks base method.

func (*MockFlagReader) Read

func (m *MockFlagReader) Read(p []byte) (int, error)

Read mocks base method.

type MockFlagReaderMockRecorder

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

MockFlagReaderMockRecorder is the mock recorder for MockFlagReader.

func (*MockFlagReaderMockRecorder) GetFlag

func (mr *MockFlagReaderMockRecorder) GetFlag() *gomock.Call

GetFlag indicates an expected call of GetFlag.

func (*MockFlagReaderMockRecorder) Read

func (mr *MockFlagReaderMockRecorder) Read(p interface{}) *gomock.Call

Read indicates an expected call of Read.

type MockHasher

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

MockHasher is a mock of Hasher interface.

func NewMockHasher

func NewMockHasher(ctrl *gomock.Controller) *MockHasher

NewMockHasher creates a new mock instance.

func (*MockHasher) BatchHash

func (m *MockHasher) BatchHash(msg [][]byte) ([]byte, error)

BatchHash mocks base method.

func (*MockHasher) BlockSize

func (m *MockHasher) BlockSize() int

BlockSize mocks base method.

func (*MockHasher) EXPECT

func (m *MockHasher) EXPECT() *MockHasherMockRecorder

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

func (*MockHasher) Hash

func (m *MockHasher) Hash(msg []byte) ([]byte, error)

Hash mocks base method.

func (*MockHasher) Reset

func (m *MockHasher) Reset()

Reset mocks base method.

func (*MockHasher) Size

func (m *MockHasher) Size() int

Size mocks base method.

func (*MockHasher) Sum

func (m *MockHasher) Sum(b []byte) []byte

Sum mocks base method.

func (*MockHasher) Write

func (m *MockHasher) Write(p []byte) (int, error)

Write mocks base method.

type MockHasherMockRecorder

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

MockHasherMockRecorder is the mock recorder for MockHasher.

func (*MockHasherMockRecorder) BatchHash

func (mr *MockHasherMockRecorder) BatchHash(msg interface{}) *gomock.Call

BatchHash indicates an expected call of BatchHash.

func (*MockHasherMockRecorder) BlockSize

func (mr *MockHasherMockRecorder) BlockSize() *gomock.Call

BlockSize indicates an expected call of BlockSize.

func (*MockHasherMockRecorder) Hash

func (mr *MockHasherMockRecorder) Hash(msg interface{}) *gomock.Call

Hash indicates an expected call of Hash.

func (*MockHasherMockRecorder) Reset

func (mr *MockHasherMockRecorder) Reset() *gomock.Call

Reset indicates an expected call of Reset.

func (*MockHasherMockRecorder) Size

func (mr *MockHasherMockRecorder) Size() *gomock.Call

Size indicates an expected call of Size.

func (*MockHasherMockRecorder) Sum

func (mr *MockHasherMockRecorder) Sum(b interface{}) *gomock.Call

Sum indicates an expected call of Sum.

func (*MockHasherMockRecorder) Write

func (mr *MockHasherMockRecorder) Write(p interface{}) *gomock.Call

Write indicates an expected call of Write.

type MockKey

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

MockKey is a mock of Key interface.

func NewMockKey

func NewMockKey(ctrl *gomock.Controller) *MockKey

NewMockKey creates a new mock instance.

func (*MockKey) Bytes

func (m *MockKey) Bytes() ([]byte, error)

Bytes mocks base method.

func (*MockKey) EXPECT

func (m *MockKey) EXPECT() *MockKeyMockRecorder

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

func (*MockKey) FromBytes

func (m *MockKey) FromBytes(k []byte, opt int) error

FromBytes mocks base method.

type MockKeyMockRecorder

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

MockKeyMockRecorder is the mock recorder for MockKey.

func (*MockKeyMockRecorder) Bytes

func (mr *MockKeyMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockKeyMockRecorder) FromBytes

func (mr *MockKeyMockRecorder) FromBytes(k, opt interface{}) *gomock.Call

FromBytes indicates an expected call of FromBytes.

type MockLevel

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

MockLevel is a mock of Level interface.

func NewMockLevel

func NewMockLevel(ctrl *gomock.Controller) *MockLevel

NewMockLevel creates a new mock instance.

func (*MockLevel) EXPECT

func (m *MockLevel) EXPECT() *MockLevelMockRecorder

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

func (*MockLevel) GetLevel

func (m *MockLevel) GetLevel() ([]int, uint8)

GetLevel mocks base method.

type MockLevelMockRecorder

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

MockLevelMockRecorder is the mock recorder for MockLevel.

func (*MockLevelMockRecorder) GetLevel

func (mr *MockLevelMockRecorder) GetLevel() *gomock.Call

GetLevel indicates an expected call of GetLevel.

type MockMarshaller

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

MockMarshaller is a mock of Marshaller interface.

func NewMockMarshaller

func NewMockMarshaller(ctrl *gomock.Controller) *MockMarshaller

NewMockMarshaller creates a new mock instance.

func (*MockMarshaller) EXPECT

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

func (*MockMarshaller) Marshal

func (m *MockMarshaller) Marshal() []byte

Marshal mocks base method.

func (*MockMarshaller) Unmarshal

func (m *MockMarshaller) Unmarshal(arg0 []byte) ([]byte, error)

Unmarshal mocks base method.

type MockMarshallerMockRecorder

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

MockMarshallerMockRecorder is the mock recorder for MockMarshaller.

func (*MockMarshallerMockRecorder) Marshal

func (mr *MockMarshallerMockRecorder) Marshal() *gomock.Call

Marshal indicates an expected call of Marshal.

func (*MockMarshallerMockRecorder) Unmarshal

func (mr *MockMarshallerMockRecorder) Unmarshal(arg0 interface{}) *gomock.Call

Unmarshal indicates an expected call of Unmarshal.

type MockPairing

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

MockPairing is a mock of Pairing interface.

func NewMockPairing

func NewMockPairing(ctrl *gomock.Controller) *MockPairing

NewMockPairing creates a new mock instance.

func (*MockPairing) BatchScalarMultiplicationG1

func (m *MockPairing) BatchScalarMultiplicationG1(scalars []*big.Int, ret []crypto.Point)

BatchScalarMultiplicationG1 mocks base method.

func (*MockPairing) BatchScalarMultiplicationG2

func (m *MockPairing) BatchScalarMultiplicationG2(scalars []*big.Int, ret []crypto.Point)

BatchScalarMultiplicationG2 mocks base method.

func (*MockPairing) EXPECT

func (m *MockPairing) EXPECT() *MockPairingMockRecorder

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

func (*MockPairing) GetBase

func (m *MockPairing) GetBase(arg0 crypto.Position) crypto.Point

GetBase mocks base method.

func (*MockPairing) GetModule

func (m *MockPairing) GetModule() *big.Int

GetModule mocks base method.

func (*MockPairing) GetRootOfUnity

func (m *MockPairing) GetRootOfUnity(arg0 uint64) (crypto.FieldElement, uint64, error)

GetRootOfUnity mocks base method.

func (*MockPairing) IsOnCurve

func (m *MockPairing) IsOnCurve(arg0 crypto.Point) error

IsOnCurve mocks base method.

func (*MockPairing) Marshal

func (m *MockPairing) Marshal() []byte

Marshal mocks base method.

func (*MockPairing) Name

func (m *MockPairing) Name() string

Name mocks base method.

func (*MockPairing) NewPoint

func (m *MockPairing) NewPoint(arg0 crypto.Position) crypto.Point

NewPoint mocks base method.

func (*MockPairing) NewScalar

func (m *MockPairing) NewScalar() crypto.FieldElement

NewScalar mocks base method.

func (*MockPairing) Pair

func (m *MockPairing) Pair(arg0, arg1 []crypto.Point) crypto.Point

Pair mocks base method.

func (*MockPairing) PairCheck

func (m *MockPairing) PairCheck(P, Q []crypto.Point) bool

PairCheck mocks base method.

func (*MockPairing) PutScalar

func (m *MockPairing) PutScalar(arg0 crypto.FieldElement)

PutScalar mocks base method.

func (*MockPairing) Unmarshal

func (m *MockPairing) Unmarshal(arg0 []byte) ([]byte, error)

Unmarshal mocks base method.

type MockPairingMockRecorder

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

MockPairingMockRecorder is the mock recorder for MockPairing.

func (*MockPairingMockRecorder) BatchScalarMultiplicationG1

func (mr *MockPairingMockRecorder) BatchScalarMultiplicationG1(scalars, ret interface{}) *gomock.Call

BatchScalarMultiplicationG1 indicates an expected call of BatchScalarMultiplicationG1.

func (*MockPairingMockRecorder) BatchScalarMultiplicationG2

func (mr *MockPairingMockRecorder) BatchScalarMultiplicationG2(scalars, ret interface{}) *gomock.Call

BatchScalarMultiplicationG2 indicates an expected call of BatchScalarMultiplicationG2.

func (*MockPairingMockRecorder) GetBase

func (mr *MockPairingMockRecorder) GetBase(arg0 interface{}) *gomock.Call

GetBase indicates an expected call of GetBase.

func (*MockPairingMockRecorder) GetModule

func (mr *MockPairingMockRecorder) GetModule() *gomock.Call

GetModule indicates an expected call of GetModule.

func (*MockPairingMockRecorder) GetRootOfUnity

func (mr *MockPairingMockRecorder) GetRootOfUnity(arg0 interface{}) *gomock.Call

GetRootOfUnity indicates an expected call of GetRootOfUnity.

func (*MockPairingMockRecorder) IsOnCurve

func (mr *MockPairingMockRecorder) IsOnCurve(arg0 interface{}) *gomock.Call

IsOnCurve indicates an expected call of IsOnCurve.

func (*MockPairingMockRecorder) Marshal

func (mr *MockPairingMockRecorder) Marshal() *gomock.Call

Marshal indicates an expected call of Marshal.

func (*MockPairingMockRecorder) Name

func (mr *MockPairingMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockPairingMockRecorder) NewPoint

func (mr *MockPairingMockRecorder) NewPoint(arg0 interface{}) *gomock.Call

NewPoint indicates an expected call of NewPoint.

func (*MockPairingMockRecorder) NewScalar

func (mr *MockPairingMockRecorder) NewScalar() *gomock.Call

NewScalar indicates an expected call of NewScalar.

func (*MockPairingMockRecorder) Pair

func (mr *MockPairingMockRecorder) Pair(arg0, arg1 interface{}) *gomock.Call

Pair indicates an expected call of Pair.

func (*MockPairingMockRecorder) PairCheck

func (mr *MockPairingMockRecorder) PairCheck(P, Q interface{}) *gomock.Call

PairCheck indicates an expected call of PairCheck.

func (*MockPairingMockRecorder) PutScalar

func (mr *MockPairingMockRecorder) PutScalar(arg0 interface{}) *gomock.Call

PutScalar indicates an expected call of PutScalar.

func (*MockPairingMockRecorder) Unmarshal

func (mr *MockPairingMockRecorder) Unmarshal(arg0 interface{}) *gomock.Call

Unmarshal indicates an expected call of Unmarshal.

type MockPluginCryptFunc

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

MockPluginCryptFunc is a mock of PluginCryptFunc interface.

func NewMockPluginCryptFunc

func NewMockPluginCryptFunc(ctrl *gomock.Controller) *MockPluginCryptFunc

NewMockPluginCryptFunc creates a new mock instance.

func (*MockPluginCryptFunc) EXPECT

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

func (*MockPluginCryptFunc) GetLevel

func (m *MockPluginCryptFunc) GetLevel() ([]int, uint8)

GetLevel mocks base method.

func (*MockPluginCryptFunc) GetSecretKey

func (m *MockPluginCryptFunc) GetSecretKey(mode int, pwd, key []byte) (crypto.SecretKey, error)

GetSecretKey mocks base method.

type MockPluginCryptFuncMockRecorder

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

MockPluginCryptFuncMockRecorder is the mock recorder for MockPluginCryptFunc.

func (*MockPluginCryptFuncMockRecorder) GetLevel

GetLevel indicates an expected call of GetLevel.

func (*MockPluginCryptFuncMockRecorder) GetSecretKey

func (mr *MockPluginCryptFuncMockRecorder) GetSecretKey(mode, pwd, key interface{}) *gomock.Call

GetSecretKey indicates an expected call of GetSecretKey.

type MockPluginGenerateSessionKeyFunc

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

MockPluginGenerateSessionKeyFunc is a mock of PluginGenerateSessionKeyFunc interface.

func NewMockPluginGenerateSessionKeyFunc

func NewMockPluginGenerateSessionKeyFunc(ctrl *gomock.Controller) *MockPluginGenerateSessionKeyFunc

NewMockPluginGenerateSessionKeyFunc creates a new mock instance.

func (*MockPluginGenerateSessionKeyFunc) EXPECT

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

func (*MockPluginGenerateSessionKeyFunc) GetLevel

func (m *MockPluginGenerateSessionKeyFunc) GetLevel() ([]int, uint8)

GetLevel mocks base method.

func (*MockPluginGenerateSessionKeyFunc) KeyAgreementFinal

func (m *MockPluginGenerateSessionKeyFunc) KeyAgreementFinal(curve elliptic.Curve, algo string, data1, data2FromPeer []byte) (crypto.SecretKey, error)

KeyAgreementFinal mocks base method.

func (*MockPluginGenerateSessionKeyFunc) KeyAgreementInit

func (m *MockPluginGenerateSessionKeyFunc) KeyAgreementInit(curve elliptic.Curve) ([]byte, []byte, error)

KeyAgreementInit mocks base method.

type MockPluginGenerateSessionKeyFuncMockRecorder

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

MockPluginGenerateSessionKeyFuncMockRecorder is the mock recorder for MockPluginGenerateSessionKeyFunc.

func (*MockPluginGenerateSessionKeyFuncMockRecorder) GetLevel

GetLevel indicates an expected call of GetLevel.

func (*MockPluginGenerateSessionKeyFuncMockRecorder) KeyAgreementFinal

func (mr *MockPluginGenerateSessionKeyFuncMockRecorder) KeyAgreementFinal(curve, algo, data1, data2FromPeer interface{}) *gomock.Call

KeyAgreementFinal indicates an expected call of KeyAgreementFinal.

func (*MockPluginGenerateSessionKeyFuncMockRecorder) KeyAgreementInit

func (mr *MockPluginGenerateSessionKeyFuncMockRecorder) KeyAgreementInit(curve interface{}) *gomock.Call

KeyAgreementInit indicates an expected call of KeyAgreementInit.

type MockPluginHashFunc

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

MockPluginHashFunc is a mock of PluginHashFunc interface.

func NewMockPluginHashFunc

func NewMockPluginHashFunc(ctrl *gomock.Controller) *MockPluginHashFunc

NewMockPluginHashFunc creates a new mock instance.

func (*MockPluginHashFunc) EXPECT

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

func (*MockPluginHashFunc) GetHash

func (m *MockPluginHashFunc) GetHash(mode int) (crypto.Hasher, error)

GetHash mocks base method.

func (*MockPluginHashFunc) GetLevel

func (m *MockPluginHashFunc) GetLevel() ([]int, uint8)

GetLevel mocks base method.

type MockPluginHashFuncMockRecorder

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

MockPluginHashFuncMockRecorder is the mock recorder for MockPluginHashFunc.

func (*MockPluginHashFuncMockRecorder) GetHash

func (mr *MockPluginHashFuncMockRecorder) GetHash(mode interface{}) *gomock.Call

GetHash indicates an expected call of GetHash.

func (*MockPluginHashFuncMockRecorder) GetLevel

func (mr *MockPluginHashFuncMockRecorder) GetLevel() *gomock.Call

GetLevel indicates an expected call of GetLevel.

type MockPluginRandomFunc

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

MockPluginRandomFunc is a mock of PluginRandomFunc interface.

func NewMockPluginRandomFunc

func NewMockPluginRandomFunc(ctrl *gomock.Controller) *MockPluginRandomFunc

NewMockPluginRandomFunc creates a new mock instance.

func (*MockPluginRandomFunc) EXPECT

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

func (*MockPluginRandomFunc) GetLevel

func (m *MockPluginRandomFunc) GetLevel() ([]int, uint8)

GetLevel mocks base method.

func (*MockPluginRandomFunc) Rander

func (m *MockPluginRandomFunc) Rander() (io.Reader, error)

Rander mocks base method.

type MockPluginRandomFuncMockRecorder

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

MockPluginRandomFuncMockRecorder is the mock recorder for MockPluginRandomFunc.

func (*MockPluginRandomFuncMockRecorder) GetLevel

GetLevel indicates an expected call of GetLevel.

func (*MockPluginRandomFuncMockRecorder) Rander

Rander indicates an expected call of Rander.

type MockPluginSignFuncL0

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

MockPluginSignFuncL0 is a mock of PluginSignFuncL0 interface.

func NewMockPluginSignFuncL0

func NewMockPluginSignFuncL0(ctrl *gomock.Controller) *MockPluginSignFuncL0

NewMockPluginSignFuncL0 creates a new mock instance.

func (*MockPluginSignFuncL0) EXPECT

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

func (*MockPluginSignFuncL0) GetLevel

func (m *MockPluginSignFuncL0) GetLevel() ([]int, uint8)

GetLevel mocks base method.

func (*MockPluginSignFuncL0) GetVerifyKey

func (m *MockPluginSignFuncL0) GetVerifyKey(key []byte, mode int) (crypto.VerifyKey, error)

GetVerifyKey mocks base method.

type MockPluginSignFuncL0MockRecorder

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

MockPluginSignFuncL0MockRecorder is the mock recorder for MockPluginSignFuncL0.

func (*MockPluginSignFuncL0MockRecorder) GetLevel

GetLevel indicates an expected call of GetLevel.

func (*MockPluginSignFuncL0MockRecorder) GetVerifyKey

func (mr *MockPluginSignFuncL0MockRecorder) GetVerifyKey(key, mode interface{}) *gomock.Call

GetVerifyKey indicates an expected call of GetVerifyKey.

type MockPluginSignFuncL1

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

MockPluginSignFuncL1 is a mock of PluginSignFuncL1 interface.

func NewMockPluginSignFuncL1

func NewMockPluginSignFuncL1(ctrl *gomock.Controller) *MockPluginSignFuncL1

NewMockPluginSignFuncL1 creates a new mock instance.

func (*MockPluginSignFuncL1) EXPECT

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

func (*MockPluginSignFuncL1) GetLevel

func (m *MockPluginSignFuncL1) GetLevel() ([]int, uint8)

GetLevel mocks base method.

func (*MockPluginSignFuncL1) GetSignKey

func (m *MockPluginSignFuncL1) GetSignKey(keyIndex string) (crypto.SignKey, error)

GetSignKey mocks base method.

func (*MockPluginSignFuncL1) GetVerifyKey

func (m *MockPluginSignFuncL1) GetVerifyKey(key []byte, mode int) (crypto.VerifyKey, error)

GetVerifyKey mocks base method.

type MockPluginSignFuncL1MockRecorder

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

MockPluginSignFuncL1MockRecorder is the mock recorder for MockPluginSignFuncL1.

func (*MockPluginSignFuncL1MockRecorder) GetLevel

GetLevel indicates an expected call of GetLevel.

func (*MockPluginSignFuncL1MockRecorder) GetSignKey

func (mr *MockPluginSignFuncL1MockRecorder) GetSignKey(keyIndex interface{}) *gomock.Call

GetSignKey indicates an expected call of GetSignKey.

func (*MockPluginSignFuncL1MockRecorder) GetVerifyKey

func (mr *MockPluginSignFuncL1MockRecorder) GetVerifyKey(key, mode interface{}) *gomock.Call

GetVerifyKey indicates an expected call of GetVerifyKey.

type MockPluginSignFuncL2

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

MockPluginSignFuncL2 is a mock of PluginSignFuncL2 interface.

func NewMockPluginSignFuncL2

func NewMockPluginSignFuncL2(ctrl *gomock.Controller) *MockPluginSignFuncL2

NewMockPluginSignFuncL2 creates a new mock instance.

func (*MockPluginSignFuncL2) CreateSignKey

func (m *MockPluginSignFuncL2) CreateSignKey() (string, crypto.SignKey, error)

CreateSignKey mocks base method.

func (*MockPluginSignFuncL2) EXPECT

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

func (*MockPluginSignFuncL2) GetLevel

func (m *MockPluginSignFuncL2) GetLevel() ([]int, uint8)

GetLevel mocks base method.

func (*MockPluginSignFuncL2) GetSignKey

func (m *MockPluginSignFuncL2) GetSignKey(keyIndex string) (crypto.SignKey, error)

GetSignKey mocks base method.

func (*MockPluginSignFuncL2) GetVerifyKey

func (m *MockPluginSignFuncL2) GetVerifyKey(key []byte, mode int) (crypto.VerifyKey, error)

GetVerifyKey mocks base method.

func (*MockPluginSignFuncL2) ParseAllCA

func (m *MockPluginSignFuncL2) ParseAllCA(arg0 []string) ([]crypto.CA, error)

ParseAllCA mocks base method.

func (*MockPluginSignFuncL2) ParseCertificate

func (m *MockPluginSignFuncL2) ParseCertificate(arg0 string) (crypto.Cert, error)

ParseCertificate mocks base method.

type MockPluginSignFuncL2MockRecorder

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

MockPluginSignFuncL2MockRecorder is the mock recorder for MockPluginSignFuncL2.

func (*MockPluginSignFuncL2MockRecorder) CreateSignKey

func (mr *MockPluginSignFuncL2MockRecorder) CreateSignKey() *gomock.Call

CreateSignKey indicates an expected call of CreateSignKey.

func (*MockPluginSignFuncL2MockRecorder) GetLevel

GetLevel indicates an expected call of GetLevel.

func (*MockPluginSignFuncL2MockRecorder) GetSignKey

func (mr *MockPluginSignFuncL2MockRecorder) GetSignKey(keyIndex interface{}) *gomock.Call

GetSignKey indicates an expected call of GetSignKey.

func (*MockPluginSignFuncL2MockRecorder) GetVerifyKey

func (mr *MockPluginSignFuncL2MockRecorder) GetVerifyKey(key, mode interface{}) *gomock.Call

GetVerifyKey indicates an expected call of GetVerifyKey.

func (*MockPluginSignFuncL2MockRecorder) ParseAllCA

func (mr *MockPluginSignFuncL2MockRecorder) ParseAllCA(arg0 interface{}) *gomock.Call

ParseAllCA indicates an expected call of ParseAllCA.

func (*MockPluginSignFuncL2MockRecorder) ParseCertificate

func (mr *MockPluginSignFuncL2MockRecorder) ParseCertificate(arg0 interface{}) *gomock.Call

ParseCertificate indicates an expected call of ParseCertificate.

type MockPluginSignFuncL3

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

MockPluginSignFuncL3 is a mock of PluginSignFuncL3 interface.

func NewMockPluginSignFuncL3

func NewMockPluginSignFuncL3(ctrl *gomock.Controller) *MockPluginSignFuncL3

NewMockPluginSignFuncL3 creates a new mock instance.

func (*MockPluginSignFuncL3) CreateSignKey

func (m *MockPluginSignFuncL3) CreateSignKey() (string, crypto.SignKey, error)

CreateSignKey mocks base method.

func (*MockPluginSignFuncL3) EXPECT

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

func (*MockPluginSignFuncL3) GenerateLocalCA

func (m *MockPluginSignFuncL3) GenerateLocalCA(hostName string) (string, crypto.CA, error)

GenerateLocalCA mocks base method.

func (*MockPluginSignFuncL3) GetLevel

func (m *MockPluginSignFuncL3) GetLevel() ([]int, uint8)

GetLevel mocks base method.

func (*MockPluginSignFuncL3) GetSignKey

func (m *MockPluginSignFuncL3) GetSignKey(keyIndex string) (crypto.SignKey, error)

GetSignKey mocks base method.

func (*MockPluginSignFuncL3) GetVerifyKey

func (m *MockPluginSignFuncL3) GetVerifyKey(key []byte, mode int) (crypto.VerifyKey, error)

GetVerifyKey mocks base method.

func (*MockPluginSignFuncL3) Issue

func (m *MockPluginSignFuncL3) Issue(ca crypto.CA, hostname string, ct crypto.CertType, ext map[string]string, vk crypto.VerifyKey) ([]byte, error)

Issue mocks base method.

func (*MockPluginSignFuncL3) ParseAllCA

func (m *MockPluginSignFuncL3) ParseAllCA(arg0 []string) ([]crypto.CA, error)

ParseAllCA mocks base method.

func (*MockPluginSignFuncL3) ParseCertificate

func (m *MockPluginSignFuncL3) ParseCertificate(arg0 string) (crypto.Cert, error)

ParseCertificate mocks base method.

type MockPluginSignFuncL3MockRecorder

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

MockPluginSignFuncL3MockRecorder is the mock recorder for MockPluginSignFuncL3.

func (*MockPluginSignFuncL3MockRecorder) CreateSignKey

func (mr *MockPluginSignFuncL3MockRecorder) CreateSignKey() *gomock.Call

CreateSignKey indicates an expected call of CreateSignKey.

func (*MockPluginSignFuncL3MockRecorder) GenerateLocalCA

func (mr *MockPluginSignFuncL3MockRecorder) GenerateLocalCA(hostName interface{}) *gomock.Call

GenerateLocalCA indicates an expected call of GenerateLocalCA.

func (*MockPluginSignFuncL3MockRecorder) GetLevel

GetLevel indicates an expected call of GetLevel.

func (*MockPluginSignFuncL3MockRecorder) GetSignKey

func (mr *MockPluginSignFuncL3MockRecorder) GetSignKey(keyIndex interface{}) *gomock.Call

GetSignKey indicates an expected call of GetSignKey.

func (*MockPluginSignFuncL3MockRecorder) GetVerifyKey

func (mr *MockPluginSignFuncL3MockRecorder) GetVerifyKey(key, mode interface{}) *gomock.Call

GetVerifyKey indicates an expected call of GetVerifyKey.

func (*MockPluginSignFuncL3MockRecorder) Issue

func (mr *MockPluginSignFuncL3MockRecorder) Issue(ca, hostname, ct, ext, vk interface{}) *gomock.Call

Issue indicates an expected call of Issue.

func (*MockPluginSignFuncL3MockRecorder) ParseAllCA

func (mr *MockPluginSignFuncL3MockRecorder) ParseAllCA(arg0 interface{}) *gomock.Call

ParseAllCA indicates an expected call of ParseAllCA.

func (*MockPluginSignFuncL3MockRecorder) ParseCertificate

func (mr *MockPluginSignFuncL3MockRecorder) ParseCertificate(arg0 interface{}) *gomock.Call

ParseCertificate indicates an expected call of ParseCertificate.

type MockPoint

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

MockPoint is a mock of Point interface.

func NewMockPoint

func NewMockPoint(ctrl *gomock.Controller) *MockPoint

NewMockPoint creates a new mock instance.

func (*MockPoint) Add

func (m *MockPoint) Add(arg0, arg1 crypto.Point) crypto.Point

Add mocks base method.

func (*MockPoint) Double

func (m *MockPoint) Double(arg0 crypto.Point) crypto.Point

Double mocks base method.

func (*MockPoint) EXPECT

func (m *MockPoint) EXPECT() *MockPointMockRecorder

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

func (*MockPoint) GetPairing

func (m *MockPoint) GetPairing() crypto.Pairing

GetPairing mocks base method.

func (*MockPoint) GetPosition

func (m *MockPoint) GetPosition() crypto.Position

GetPosition mocks base method.

func (*MockPoint) IsInfinity

func (m *MockPoint) IsInfinity() bool

IsInfinity mocks base method.

func (*MockPoint) Marshal

func (m *MockPoint) Marshal() []byte

Marshal mocks base method.

func (*MockPoint) Neg

func (m *MockPoint) Neg(arg0 crypto.Point) crypto.Point

Neg mocks base method.

func (*MockPoint) ScalarBaseMult

func (m *MockPoint) ScalarBaseMult(arg0 *big.Int) crypto.Point

ScalarBaseMult mocks base method.

func (*MockPoint) ScalarMult

func (m *MockPoint) ScalarMult(arg0 crypto.Point, arg1 *big.Int) crypto.Point

ScalarMult mocks base method.

func (*MockPoint) Set

func (m *MockPoint) Set(arg0 crypto.Point) crypto.Point

Set mocks base method.

func (*MockPoint) SetInfinity

func (m *MockPoint) SetInfinity()

SetInfinity mocks base method.

func (*MockPoint) Unmarshal

func (m *MockPoint) Unmarshal(arg0 []byte) ([]byte, error)

Unmarshal mocks base method.

type MockPointMockRecorder

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

MockPointMockRecorder is the mock recorder for MockPoint.

func (*MockPointMockRecorder) Add

func (mr *MockPointMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockPointMockRecorder) Double

func (mr *MockPointMockRecorder) Double(arg0 interface{}) *gomock.Call

Double indicates an expected call of Double.

func (*MockPointMockRecorder) GetPairing

func (mr *MockPointMockRecorder) GetPairing() *gomock.Call

GetPairing indicates an expected call of GetPairing.

func (*MockPointMockRecorder) GetPosition

func (mr *MockPointMockRecorder) GetPosition() *gomock.Call

GetPosition indicates an expected call of GetPosition.

func (*MockPointMockRecorder) IsInfinity

func (mr *MockPointMockRecorder) IsInfinity() *gomock.Call

IsInfinity indicates an expected call of IsInfinity.

func (*MockPointMockRecorder) Marshal

func (mr *MockPointMockRecorder) Marshal() *gomock.Call

Marshal indicates an expected call of Marshal.

func (*MockPointMockRecorder) Neg

func (mr *MockPointMockRecorder) Neg(arg0 interface{}) *gomock.Call

Neg indicates an expected call of Neg.

func (*MockPointMockRecorder) ScalarBaseMult

func (mr *MockPointMockRecorder) ScalarBaseMult(arg0 interface{}) *gomock.Call

ScalarBaseMult indicates an expected call of ScalarBaseMult.

func (*MockPointMockRecorder) ScalarMult

func (mr *MockPointMockRecorder) ScalarMult(arg0, arg1 interface{}) *gomock.Call

ScalarMult indicates an expected call of ScalarMult.

func (*MockPointMockRecorder) Set

func (mr *MockPointMockRecorder) Set(arg0 interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockPointMockRecorder) SetInfinity

func (mr *MockPointMockRecorder) SetInfinity() *gomock.Call

SetInfinity indicates an expected call of SetInfinity.

func (*MockPointMockRecorder) Unmarshal

func (mr *MockPointMockRecorder) Unmarshal(arg0 interface{}) *gomock.Call

Unmarshal indicates an expected call of Unmarshal.

type MockPrivateKey

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

MockPrivateKey is a mock of PrivateKey interface.

func NewMockPrivateKey

func NewMockPrivateKey(ctrl *gomock.Controller) *MockPrivateKey

NewMockPrivateKey creates a new mock instance.

func (*MockPrivateKey) Bytes

func (m *MockPrivateKey) Bytes() []byte

Bytes mocks base method.

func (*MockPrivateKey) Decrypt

func (m *MockPrivateKey) Decrypt(cipher []byte) ([]byte, error)

Decrypt mocks base method.

func (*MockPrivateKey) Destroy

func (m *MockPrivateKey) Destroy()

Destroy mocks base method.

func (*MockPrivateKey) EXPECT

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

func (*MockPrivateKey) Encrypt

func (m *MockPrivateKey) Encrypt(msg []byte, reader io.Reader) ([]byte, error)

Encrypt mocks base method.

func (*MockPrivateKey) GetKeyInfo

func (m *MockPrivateKey) GetKeyInfo() int

GetKeyInfo mocks base method.

func (*MockPrivateKey) RichBytes

func (m *MockPrivateKey) RichBytes() []byte

RichBytes mocks base method.

func (*MockPrivateKey) Sign

func (m *MockPrivateKey) Sign(msg []byte, hasher hash.Hash, rand io.Reader) ([]byte, error)

Sign mocks base method.

func (*MockPrivateKey) Verify

func (m *MockPrivateKey) Verify(msg []byte, hasher hash.Hash, sig []byte) bool

Verify mocks base method.

type MockPrivateKeyMockRecorder

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

MockPrivateKeyMockRecorder is the mock recorder for MockPrivateKey.

func (*MockPrivateKeyMockRecorder) Bytes

func (mr *MockPrivateKeyMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockPrivateKeyMockRecorder) Decrypt

func (mr *MockPrivateKeyMockRecorder) Decrypt(cipher interface{}) *gomock.Call

Decrypt indicates an expected call of Decrypt.

func (*MockPrivateKeyMockRecorder) Destroy

func (mr *MockPrivateKeyMockRecorder) Destroy() *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockPrivateKeyMockRecorder) Encrypt

func (mr *MockPrivateKeyMockRecorder) Encrypt(msg, reader interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

func (*MockPrivateKeyMockRecorder) GetKeyInfo

func (mr *MockPrivateKeyMockRecorder) GetKeyInfo() *gomock.Call

GetKeyInfo indicates an expected call of GetKeyInfo.

func (*MockPrivateKeyMockRecorder) RichBytes

func (mr *MockPrivateKeyMockRecorder) RichBytes() *gomock.Call

RichBytes indicates an expected call of RichBytes.

func (*MockPrivateKeyMockRecorder) Sign

func (mr *MockPrivateKeyMockRecorder) Sign(msg, hasher, rand interface{}) *gomock.Call

Sign indicates an expected call of Sign.

func (*MockPrivateKeyMockRecorder) Verify

func (mr *MockPrivateKeyMockRecorder) Verify(msg, hasher, sig interface{}) *gomock.Call

Verify indicates an expected call of Verify.

type MockPublicKey

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

MockPublicKey is a mock of PublicKey interface.

func NewMockPublicKey

func NewMockPublicKey(ctrl *gomock.Controller) *MockPublicKey

NewMockPublicKey creates a new mock instance.

func (*MockPublicKey) Bytes

func (m *MockPublicKey) Bytes() []byte

Bytes mocks base method.

func (*MockPublicKey) EXPECT

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

func (*MockPublicKey) Encrypt

func (m *MockPublicKey) Encrypt(msg []byte, reader io.Reader) ([]byte, error)

Encrypt mocks base method.

func (*MockPublicKey) GetKeyInfo

func (m *MockPublicKey) GetKeyInfo() int

GetKeyInfo mocks base method.

func (*MockPublicKey) RichBytes

func (m *MockPublicKey) RichBytes() []byte

RichBytes mocks base method.

func (*MockPublicKey) Verify

func (m *MockPublicKey) Verify(msg []byte, hasher hash.Hash, sig []byte) bool

Verify mocks base method.

type MockPublicKeyMockRecorder

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

MockPublicKeyMockRecorder is the mock recorder for MockPublicKey.

func (*MockPublicKeyMockRecorder) Bytes

func (mr *MockPublicKeyMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockPublicKeyMockRecorder) Encrypt

func (mr *MockPublicKeyMockRecorder) Encrypt(msg, reader interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

func (*MockPublicKeyMockRecorder) GetKeyInfo

func (mr *MockPublicKeyMockRecorder) GetKeyInfo() *gomock.Call

GetKeyInfo indicates an expected call of GetKeyInfo.

func (*MockPublicKeyMockRecorder) RichBytes

func (mr *MockPublicKeyMockRecorder) RichBytes() *gomock.Call

RichBytes indicates an expected call of RichBytes.

func (*MockPublicKeyMockRecorder) Verify

func (mr *MockPublicKeyMockRecorder) Verify(msg, hasher, sig interface{}) *gomock.Call

Verify indicates an expected call of Verify.

type MockSecretKey

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

MockSecretKey is a mock of SecretKey interface.

func NewMockSecretKey

func NewMockSecretKey(ctrl *gomock.Controller) *MockSecretKey

NewMockSecretKey creates a new mock instance.

func (*MockSecretKey) Decrypt

func (m *MockSecretKey) Decrypt(src []byte) []byte

Decrypt mocks base method.

func (*MockSecretKey) Destroy

func (m *MockSecretKey) Destroy()

Destroy mocks base method.

func (*MockSecretKey) EXPECT

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

func (*MockSecretKey) Encrypt

func (m *MockSecretKey) Encrypt(src []byte, reader io.Reader) []byte

Encrypt mocks base method.

type MockSecretKeyMockRecorder

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

MockSecretKeyMockRecorder is the mock recorder for MockSecretKey.

func (*MockSecretKeyMockRecorder) Decrypt

func (mr *MockSecretKeyMockRecorder) Decrypt(src interface{}) *gomock.Call

Decrypt indicates an expected call of Decrypt.

func (*MockSecretKeyMockRecorder) Destroy

func (mr *MockSecretKeyMockRecorder) Destroy() *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockSecretKeyMockRecorder) Encrypt

func (mr *MockSecretKeyMockRecorder) Encrypt(src, reader interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

type MockSignKey

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

MockSignKey is a mock of SignKey interface.

func NewMockSignKey

func NewMockSignKey(ctrl *gomock.Controller) *MockSignKey

NewMockSignKey creates a new mock instance.

func (*MockSignKey) Bytes

func (m *MockSignKey) Bytes() []byte

Bytes mocks base method.

func (*MockSignKey) Destroy

func (m *MockSignKey) Destroy()

Destroy mocks base method.

func (*MockSignKey) EXPECT

func (m *MockSignKey) EXPECT() *MockSignKeyMockRecorder

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

func (*MockSignKey) GetKeyInfo

func (m *MockSignKey) GetKeyInfo() int

GetKeyInfo mocks base method.

func (*MockSignKey) RichBytes

func (m *MockSignKey) RichBytes() []byte

RichBytes mocks base method.

func (*MockSignKey) Sign

func (m *MockSignKey) Sign(msg []byte, hasher hash.Hash, rand io.Reader) ([]byte, error)

Sign mocks base method.

func (*MockSignKey) Verify

func (m *MockSignKey) Verify(msg []byte, hasher hash.Hash, sig []byte) bool

Verify mocks base method.

type MockSignKeyMockRecorder

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

MockSignKeyMockRecorder is the mock recorder for MockSignKey.

func (*MockSignKeyMockRecorder) Bytes

func (mr *MockSignKeyMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockSignKeyMockRecorder) Destroy

func (mr *MockSignKeyMockRecorder) Destroy() *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockSignKeyMockRecorder) GetKeyInfo

func (mr *MockSignKeyMockRecorder) GetKeyInfo() *gomock.Call

GetKeyInfo indicates an expected call of GetKeyInfo.

func (*MockSignKeyMockRecorder) RichBytes

func (mr *MockSignKeyMockRecorder) RichBytes() *gomock.Call

RichBytes indicates an expected call of RichBytes.

func (*MockSignKeyMockRecorder) Sign

func (mr *MockSignKeyMockRecorder) Sign(msg, hasher, rand interface{}) *gomock.Call

Sign indicates an expected call of Sign.

func (*MockSignKeyMockRecorder) Verify

func (mr *MockSignKeyMockRecorder) Verify(msg, hasher, sig interface{}) *gomock.Call

Verify indicates an expected call of Verify.

type MockSigner

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

MockSigner is a mock of Signer interface.

func NewMockSigner

func NewMockSigner(ctrl *gomock.Controller) *MockSigner

NewMockSigner creates a new mock instance.

func (*MockSigner) Bytes

func (m *MockSigner) Bytes() ([]byte, error)

Bytes mocks base method.

func (*MockSigner) EXPECT

func (m *MockSigner) EXPECT() *MockSignerMockRecorder

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

func (*MockSigner) FromBytes

func (m *MockSigner) FromBytes(k []byte, opt int) error

FromBytes mocks base method.

func (*MockSigner) Sign

func (m *MockSigner) Sign(k, digest []byte, reader io.Reader) ([]byte, error)

Sign mocks base method.

type MockSignerMockRecorder

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

MockSignerMockRecorder is the mock recorder for MockSigner.

func (*MockSignerMockRecorder) Bytes

func (mr *MockSignerMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockSignerMockRecorder) FromBytes

func (mr *MockSignerMockRecorder) FromBytes(k, opt interface{}) *gomock.Call

FromBytes indicates an expected call of FromBytes.

func (*MockSignerMockRecorder) Sign

func (mr *MockSignerMockRecorder) Sign(k, digest, reader interface{}) *gomock.Call

Sign indicates an expected call of Sign.

type MockVerifier

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

MockVerifier is a mock of Verifier interface.

func NewMockVerifier

func NewMockVerifier(ctrl *gomock.Controller) *MockVerifier

NewMockVerifier creates a new mock instance.

func (*MockVerifier) Bytes

func (m *MockVerifier) Bytes() ([]byte, error)

Bytes mocks base method.

func (*MockVerifier) EXPECT

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

func (*MockVerifier) FromBytes

func (m *MockVerifier) FromBytes(k []byte, opt int) error

FromBytes mocks base method.

func (*MockVerifier) Verify

func (m *MockVerifier) Verify(k, signature, digest []byte) (bool, error)

Verify mocks base method.

type MockVerifierMockRecorder

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

MockVerifierMockRecorder is the mock recorder for MockVerifier.

func (*MockVerifierMockRecorder) Bytes

func (mr *MockVerifierMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockVerifierMockRecorder) FromBytes

func (mr *MockVerifierMockRecorder) FromBytes(k, opt interface{}) *gomock.Call

FromBytes indicates an expected call of FromBytes.

func (*MockVerifierMockRecorder) Verify

func (mr *MockVerifierMockRecorder) Verify(k, signature, digest interface{}) *gomock.Call

Verify indicates an expected call of Verify.

type MockVerifyKey

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

MockVerifyKey is a mock of VerifyKey interface.

func NewMockVerifyKey

func NewMockVerifyKey(ctrl *gomock.Controller) *MockVerifyKey

NewMockVerifyKey creates a new mock instance.

func (*MockVerifyKey) Bytes

func (m *MockVerifyKey) Bytes() []byte

Bytes mocks base method.

func (*MockVerifyKey) EXPECT

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

func (*MockVerifyKey) GetKeyInfo

func (m *MockVerifyKey) GetKeyInfo() int

GetKeyInfo mocks base method.

func (*MockVerifyKey) RichBytes

func (m *MockVerifyKey) RichBytes() []byte

RichBytes mocks base method.

func (*MockVerifyKey) Verify

func (m *MockVerifyKey) Verify(msg []byte, hasher hash.Hash, sig []byte) bool

Verify mocks base method.

type MockVerifyKeyMockRecorder

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

MockVerifyKeyMockRecorder is the mock recorder for MockVerifyKey.

func (*MockVerifyKeyMockRecorder) Bytes

func (mr *MockVerifyKeyMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockVerifyKeyMockRecorder) GetKeyInfo

func (mr *MockVerifyKeyMockRecorder) GetKeyInfo() *gomock.Call

GetKeyInfo indicates an expected call of GetKeyInfo.

func (*MockVerifyKeyMockRecorder) RichBytes

func (mr *MockVerifyKeyMockRecorder) RichBytes() *gomock.Call

RichBytes indicates an expected call of RichBytes.

func (*MockVerifyKeyMockRecorder) Verify

func (mr *MockVerifyKeyMockRecorder) Verify(msg, hasher, sig 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