Documentation ¶
Index ¶
- type Crypto
- func (_m *Crypto) Add(c1 []byte, c2 []byte) ([]byte, error)
- func (_m *Crypto) Decrypt(c []byte) ([]byte, error)
- func (_m *Crypto) Encrypt(m []byte) ([]byte, error)
- func (_m *Crypto) GetMessageRange(fieldOrder *big.Int) *big.Int
- func (_m *Crypto) GetMtaProof(curve elliptic.Curve, beta *big.Int, a *big.Int) ([]byte, error)
- func (_m *Crypto) GetPubKey() homo.Pubkey
- func (_m *Crypto) MulConst(c []byte, scalar *big.Int) ([]byte, error)
- func (_m *Crypto) NewPubKeyFromBytes(_a0 []byte) (homo.Pubkey, error)
- func (_m *Crypto) ToPubKeyBytes() []byte
- func (_m *Crypto) VerifyEnc(_a0 []byte) error
- func (_m *Crypto) VerifyMtaProof(msg []byte, curve elliptic.Curve, alpha *big.Int, k *big.Int) (*ecpointgrouplaw.ECPoint, error)
- type Pubkey
- func (_m *Pubkey) Add(c1 []byte, c2 []byte) ([]byte, error)
- func (_m *Pubkey) Encrypt(m []byte) ([]byte, error)
- func (_m *Pubkey) GetMessageRange(fieldOrder *big.Int) *big.Int
- func (_m *Pubkey) MulConst(c []byte, scalar *big.Int) ([]byte, error)
- func (_m *Pubkey) ToPubKeyBytes() []byte
- func (_m *Pubkey) VerifyEnc(_a0 []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crypto ¶
Crypto is an autogenerated mock type for the Crypto type
func NewCrypto ¶ added in v1.0.4
NewCrypto creates a new instance of Crypto. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Crypto) GetMessageRange ¶
GetMessageRange provides a mock function with given fields: fieldOrder
func (*Crypto) GetMtaProof ¶
GetMtaProof provides a mock function with given fields: curve, beta, a
func (*Crypto) NewPubKeyFromBytes ¶
NewPubKeyFromBytes provides a mock function with given fields: _a0
func (*Crypto) ToPubKeyBytes ¶
ToPubKeyBytes provides a mock function with given fields:
type Pubkey ¶
Pubkey is an autogenerated mock type for the Pubkey type
func NewPubkey ¶ added in v1.0.4
NewPubkey creates a new instance of Pubkey. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Pubkey) GetMessageRange ¶
GetMessageRange provides a mock function with given fields: fieldOrder
func (*Pubkey) ToPubKeyBytes ¶
ToPubKeyBytes provides a mock function with given fields: