mocks

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

type Crypto struct {
	mock.Mock
}

Crypto is an autogenerated mock type for the Crypto type

func (*Crypto) Add

func (_m *Crypto) Add(c1 []byte, c2 []byte) ([]byte, error)

Add provides a mock function with given fields: c1, c2

func (*Crypto) Decrypt

func (_m *Crypto) Decrypt(c []byte) ([]byte, error)

Decrypt provides a mock function with given fields: c

func (*Crypto) Encrypt

func (_m *Crypto) Encrypt(m []byte) ([]byte, error)

Encrypt provides a mock function with given fields: m

func (*Crypto) GetMessageRange

func (_m *Crypto) GetMessageRange(fieldOrder *big.Int) *big.Int

GetMessageRange provides a mock function with given fields: fieldOrder

func (*Crypto) GetMtaProof

func (_m *Crypto) GetMtaProof(curve elliptic.Curve, beta *big.Int, a *big.Int) ([]byte, error)

GetMtaProof provides a mock function with given fields: curve, beta, a

func (*Crypto) GetPubKey

func (_m *Crypto) GetPubKey() homo.Pubkey

GetPubKey provides a mock function with given fields:

func (*Crypto) MulConst

func (_m *Crypto) MulConst(c []byte, scalar *big.Int) ([]byte, error)

MulConst provides a mock function with given fields: c, scalar

func (*Crypto) NewPubKeyFromBytes

func (_m *Crypto) NewPubKeyFromBytes(_a0 []byte) (homo.Pubkey, error)

NewPubKeyFromBytes provides a mock function with given fields: _a0

func (*Crypto) ToPubKeyBytes

func (_m *Crypto) ToPubKeyBytes() []byte

ToPubKeyBytes provides a mock function with given fields:

func (*Crypto) VerifyEnc

func (_m *Crypto) VerifyEnc(_a0 []byte) error

VerifyEnc provides a mock function with given fields: _a0

func (*Crypto) VerifyMtaProof

func (_m *Crypto) VerifyMtaProof(msg []byte, curve elliptic.Curve, alpha *big.Int, k *big.Int) (*ecpointgrouplaw.ECPoint, error)

VerifyMtaProof provides a mock function with given fields: msg, curve, alpha, k

type Pubkey

type Pubkey struct {
	mock.Mock
}

Pubkey is an autogenerated mock type for the Pubkey type

func (*Pubkey) Add

func (_m *Pubkey) Add(c1 []byte, c2 []byte) ([]byte, error)

Add provides a mock function with given fields: c1, c2

func (*Pubkey) Encrypt

func (_m *Pubkey) Encrypt(m []byte) ([]byte, error)

Encrypt provides a mock function with given fields: m

func (*Pubkey) GetMessageRange

func (_m *Pubkey) GetMessageRange(fieldOrder *big.Int) *big.Int

GetMessageRange provides a mock function with given fields: fieldOrder

func (*Pubkey) MulConst

func (_m *Pubkey) MulConst(c []byte, scalar *big.Int) ([]byte, error)

MulConst provides a mock function with given fields: c, scalar

func (*Pubkey) ToPubKeyBytes

func (_m *Pubkey) ToPubKeyBytes() []byte

ToPubKeyBytes provides a mock function with given fields:

func (*Pubkey) VerifyEnc

func (_m *Pubkey) VerifyEnc(_a0 []byte) error

VerifyEnc provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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