Documentation
¶
Overview ¶
Package crypto is a generated GoMock package.
Package crypto is a generated GoMock package.
Package crypto is a generated GoMock package.
Index ¶
- type MockAlgebraicSys
- func (m *MockAlgebraicSys) EXPECT() *MockAlgebraicSysMockRecorder
- func (m *MockAlgebraicSys) GetModule() *big.Int
- func (m *MockAlgebraicSys) GetRootOfUnity(arg0 uint64) (crypto.FieldElement, uint64, error)
- func (m *MockAlgebraicSys) Marshal() []byte
- func (m *MockAlgebraicSys) Name() string
- func (m *MockAlgebraicSys) NewScalar() crypto.FieldElement
- func (m *MockAlgebraicSys) PutScalar(arg0 crypto.FieldElement)
- func (m *MockAlgebraicSys) Unmarshal(arg0 []byte) ([]byte, error)
- type MockAlgebraicSysMockRecorder
- func (mr *MockAlgebraicSysMockRecorder) GetModule() *gomock.Call
- func (mr *MockAlgebraicSysMockRecorder) GetRootOfUnity(arg0 any) *gomock.Call
- func (mr *MockAlgebraicSysMockRecorder) Marshal() *gomock.Call
- func (mr *MockAlgebraicSysMockRecorder) Name() *gomock.Call
- func (mr *MockAlgebraicSysMockRecorder) NewScalar() *gomock.Call
- func (mr *MockAlgebraicSysMockRecorder) PutScalar(arg0 any) *gomock.Call
- func (mr *MockAlgebraicSysMockRecorder) Unmarshal(arg0 any) *gomock.Call
- type MockCA
- type MockCAMockRecorder
- type MockCert
- func (m *MockCert) EXPECT() *MockCertMockRecorder
- func (m *MockCert) GetAuthorityKeyIdentifier() []byte
- func (m *MockCert) GetCAHostName() string
- func (m *MockCert) GetCertType() crypto.CertType
- func (m *MockCert) GetExtName() map[string]string
- func (m *MockCert) GetHostName() string
- func (m *MockCert) GetVerifyKey() crypto.VerifyKey
- func (m *MockCert) String() string
- func (m *MockCert) VerifyCert(caList []string) error
- type MockCertMockRecorder
- func (mr *MockCertMockRecorder) GetAuthorityKeyIdentifier() *gomock.Call
- func (mr *MockCertMockRecorder) GetCAHostName() *gomock.Call
- func (mr *MockCertMockRecorder) GetCertType() *gomock.Call
- func (mr *MockCertMockRecorder) GetExtName() *gomock.Call
- func (mr *MockCertMockRecorder) GetHostName() *gomock.Call
- func (mr *MockCertMockRecorder) GetVerifyKey() *gomock.Call
- func (mr *MockCertMockRecorder) String() *gomock.Call
- func (mr *MockCertMockRecorder) VerifyCert(caList any) *gomock.Call
- type MockCryptor
- type MockCryptorMockRecorder
- type MockDecKey
- type MockDecKeyMockRecorder
- func (mr *MockDecKeyMockRecorder) Bytes() *gomock.Call
- func (mr *MockDecKeyMockRecorder) Decrypt(cipher any) *gomock.Call
- func (mr *MockDecKeyMockRecorder) Destroy() *gomock.Call
- func (mr *MockDecKeyMockRecorder) Encrypt(msg, reader any) *gomock.Call
- func (mr *MockDecKeyMockRecorder) GetKeyInfo() *gomock.Call
- type MockDecryptor
- type MockDecryptorMockRecorder
- type MockEncKey
- type MockEncKeyMockRecorder
- type MockEncryptor
- type MockEncryptorMockRecorder
- type MockFieldElement
- func (m *MockFieldElement) Add(a1, a2 crypto.FieldElement) crypto.FieldElement
- func (m *MockFieldElement) Copy() crypto.FieldElement
- func (m *MockFieldElement) Div(a1, a2 crypto.FieldElement) crypto.FieldElement
- func (m *MockFieldElement) Double(arg0 crypto.FieldElement) crypto.FieldElement
- func (m *MockFieldElement) EXPECT() *MockFieldElementMockRecorder
- func (m *MockFieldElement) Equal(arg0 crypto.FieldElement) bool
- func (m *MockFieldElement) Exp(arg0 crypto.FieldElement, arg1 []byte) crypto.FieldElement
- func (m *MockFieldElement) From(rat *big.Int) crypto.FieldElement
- func (m *MockFieldElement) FromRegular(content []byte) crypto.FieldElement
- func (m *MockFieldElement) GetModule(arg0 *big.Int)
- func (m *MockFieldElement) Inv(arg0 crypto.FieldElement) crypto.FieldElement
- func (m *MockFieldElement) IsNeg() bool
- func (m *MockFieldElement) IsOne() bool
- func (m *MockFieldElement) IsZero() bool
- func (m *MockFieldElement) MarshalJSON() ([]byte, error)
- func (m *MockFieldElement) MontBytes(res []byte) []byte
- func (m *MockFieldElement) Mul(a1, a2 crypto.FieldElement) crypto.FieldElement
- func (m *MockFieldElement) Neg(arg0 crypto.FieldElement) crypto.FieldElement
- func (m *MockFieldElement) Regular(in []byte) []byte
- func (m *MockFieldElement) Set(arg0 crypto.FieldElement) crypto.FieldElement
- func (m *MockFieldElement) SetInt64(arg0 int64) crypto.FieldElement
- func (m *MockFieldElement) SetOne() crypto.FieldElement
- func (m *MockFieldElement) SetRandom(arg0 io.Reader) crypto.FieldElement
- func (m *MockFieldElement) SetUint64(arg0 uint64) crypto.FieldElement
- func (m *MockFieldElement) SetZero() crypto.FieldElement
- func (m *MockFieldElement) Square(arg0 crypto.FieldElement) crypto.FieldElement
- func (m *MockFieldElement) String() string
- func (m *MockFieldElement) Sub(a1, a2 crypto.FieldElement) crypto.FieldElement
- func (m *MockFieldElement) UnmarshalJSON(arg0 []byte) error
- type MockFieldElementMockRecorder
- func (mr *MockFieldElementMockRecorder) Add(a1, a2 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) Copy() *gomock.Call
- func (mr *MockFieldElementMockRecorder) Div(a1, a2 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) Double(arg0 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) Equal(arg0 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) Exp(arg0, arg1 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) From(rat any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) FromRegular(content any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) GetModule(arg0 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) Inv(arg0 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) IsNeg() *gomock.Call
- func (mr *MockFieldElementMockRecorder) IsOne() *gomock.Call
- func (mr *MockFieldElementMockRecorder) IsZero() *gomock.Call
- func (mr *MockFieldElementMockRecorder) MarshalJSON() *gomock.Call
- func (mr *MockFieldElementMockRecorder) MontBytes(res any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) Mul(a1, a2 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) Neg(arg0 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) Regular(in any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) Set(arg0 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) SetInt64(arg0 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) SetOne() *gomock.Call
- func (mr *MockFieldElementMockRecorder) SetRandom(arg0 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) SetUint64(arg0 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) SetZero() *gomock.Call
- func (mr *MockFieldElementMockRecorder) Square(arg0 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) String() *gomock.Call
- func (mr *MockFieldElementMockRecorder) Sub(a1, a2 any) *gomock.Call
- func (mr *MockFieldElementMockRecorder) UnmarshalJSON(arg0 any) *gomock.Call
- type MockFlagReader
- type MockFlagReaderMockRecorder
- type MockHasher
- func (m *MockHasher) BatchHash(msg [][]byte) ([]byte, error)
- func (m *MockHasher) BlockSize() int
- func (m *MockHasher) EXPECT() *MockHasherMockRecorder
- func (m *MockHasher) Hash(msg []byte) ([]byte, error)
- func (m *MockHasher) Reset()
- func (m *MockHasher) Size() int
- func (m *MockHasher) Sum(b []byte) []byte
- func (m *MockHasher) Write(p []byte) (int, error)
- type MockHasherMockRecorder
- func (mr *MockHasherMockRecorder) BatchHash(msg any) *gomock.Call
- func (mr *MockHasherMockRecorder) BlockSize() *gomock.Call
- func (mr *MockHasherMockRecorder) Hash(msg any) *gomock.Call
- func (mr *MockHasherMockRecorder) Reset() *gomock.Call
- func (mr *MockHasherMockRecorder) Size() *gomock.Call
- func (mr *MockHasherMockRecorder) Sum(b any) *gomock.Call
- func (mr *MockHasherMockRecorder) Write(p any) *gomock.Call
- type MockKey
- type MockKeyMockRecorder
- type MockLevel
- type MockLevelMockRecorder
- type MockMarshaller
- type MockMarshallerMockRecorder
- type MockPairing
- func (m *MockPairing) BatchScalarMultiplicationG1(scalars []*big.Int, ret []crypto.Point)
- func (m *MockPairing) BatchScalarMultiplicationG2(scalars []*big.Int, ret []crypto.Point)
- func (m *MockPairing) EXPECT() *MockPairingMockRecorder
- func (m *MockPairing) GetBase(arg0 crypto.Position) crypto.Point
- func (m *MockPairing) GetModule() *big.Int
- func (m *MockPairing) GetRootOfUnity(arg0 uint64) (crypto.FieldElement, uint64, error)
- func (m *MockPairing) IsOnCurve(arg0 crypto.Point) error
- func (m *MockPairing) Marshal() []byte
- func (m *MockPairing) Name() string
- func (m *MockPairing) NewPoint(arg0 crypto.Position) crypto.Point
- func (m *MockPairing) NewScalar() crypto.FieldElement
- func (m *MockPairing) Pair(arg0, arg1 []crypto.Point) crypto.Point
- func (m *MockPairing) PairCheck(P, Q []crypto.Point) bool
- func (m *MockPairing) PutScalar(arg0 crypto.FieldElement)
- func (m *MockPairing) Unmarshal(arg0 []byte) ([]byte, error)
- type MockPairingMockRecorder
- func (mr *MockPairingMockRecorder) BatchScalarMultiplicationG1(scalars, ret any) *gomock.Call
- func (mr *MockPairingMockRecorder) BatchScalarMultiplicationG2(scalars, ret any) *gomock.Call
- func (mr *MockPairingMockRecorder) GetBase(arg0 any) *gomock.Call
- func (mr *MockPairingMockRecorder) GetModule() *gomock.Call
- func (mr *MockPairingMockRecorder) GetRootOfUnity(arg0 any) *gomock.Call
- func (mr *MockPairingMockRecorder) IsOnCurve(arg0 any) *gomock.Call
- func (mr *MockPairingMockRecorder) Marshal() *gomock.Call
- func (mr *MockPairingMockRecorder) Name() *gomock.Call
- func (mr *MockPairingMockRecorder) NewPoint(arg0 any) *gomock.Call
- func (mr *MockPairingMockRecorder) NewScalar() *gomock.Call
- func (mr *MockPairingMockRecorder) Pair(arg0, arg1 any) *gomock.Call
- func (mr *MockPairingMockRecorder) PairCheck(P, Q any) *gomock.Call
- func (mr *MockPairingMockRecorder) PutScalar(arg0 any) *gomock.Call
- func (mr *MockPairingMockRecorder) Unmarshal(arg0 any) *gomock.Call
- type MockPluginCryptFunc
- type MockPluginCryptFuncMockRecorder
- type MockPluginGenerateSessionKeyFunc
- func (m *MockPluginGenerateSessionKeyFunc) EXPECT() *MockPluginGenerateSessionKeyFuncMockRecorder
- func (m *MockPluginGenerateSessionKeyFunc) GetLevel() ([]int, uint8)
- func (m *MockPluginGenerateSessionKeyFunc) KeyAgreementFinal(curve elliptic.Curve, algo string, data1, data2FromPeer []byte) (crypto.SecretKey, error)
- func (m *MockPluginGenerateSessionKeyFunc) KeyAgreementInit(curve elliptic.Curve) ([]byte, []byte, error)
- type MockPluginGenerateSessionKeyFuncMockRecorder
- func (mr *MockPluginGenerateSessionKeyFuncMockRecorder) GetLevel() *gomock.Call
- func (mr *MockPluginGenerateSessionKeyFuncMockRecorder) KeyAgreementFinal(curve, algo, data1, data2FromPeer any) *gomock.Call
- func (mr *MockPluginGenerateSessionKeyFuncMockRecorder) KeyAgreementInit(curve any) *gomock.Call
- type MockPluginHashFunc
- type MockPluginHashFuncMockRecorder
- type MockPluginRandomFunc
- type MockPluginRandomFuncMockRecorder
- type MockPluginSignFuncL0
- type MockPluginSignFuncL0MockRecorder
- type MockPluginSignFuncL1
- func (m *MockPluginSignFuncL1) EXPECT() *MockPluginSignFuncL1MockRecorder
- func (m *MockPluginSignFuncL1) GetLevel() ([]int, uint8)
- func (m *MockPluginSignFuncL1) GetSignKey(keyIndex string) (crypto.SignKey, error)
- func (m *MockPluginSignFuncL1) GetVerifyKey(key []byte, mode int) (crypto.VerifyKey, error)
- type MockPluginSignFuncL1MockRecorder
- type MockPluginSignFuncL2
- func (m *MockPluginSignFuncL2) CreateSignKey() (string, crypto.SignKey, error)
- func (m *MockPluginSignFuncL2) EXPECT() *MockPluginSignFuncL2MockRecorder
- func (m *MockPluginSignFuncL2) GetLevel() ([]int, uint8)
- func (m *MockPluginSignFuncL2) GetSignKey(keyIndex string) (crypto.SignKey, error)
- func (m *MockPluginSignFuncL2) GetVerifyKey(key []byte, mode int) (crypto.VerifyKey, error)
- func (m *MockPluginSignFuncL2) ParseAllCA(arg0 []string) ([]crypto.CA, error)
- func (m *MockPluginSignFuncL2) ParseCertificate(arg0 string) (crypto.Cert, error)
- type MockPluginSignFuncL2MockRecorder
- func (mr *MockPluginSignFuncL2MockRecorder) CreateSignKey() *gomock.Call
- func (mr *MockPluginSignFuncL2MockRecorder) GetLevel() *gomock.Call
- func (mr *MockPluginSignFuncL2MockRecorder) GetSignKey(keyIndex any) *gomock.Call
- func (mr *MockPluginSignFuncL2MockRecorder) GetVerifyKey(key, mode any) *gomock.Call
- func (mr *MockPluginSignFuncL2MockRecorder) ParseAllCA(arg0 any) *gomock.Call
- func (mr *MockPluginSignFuncL2MockRecorder) ParseCertificate(arg0 any) *gomock.Call
- type MockPluginSignFuncL3
- func (m *MockPluginSignFuncL3) CreateSignKey() (string, crypto.SignKey, error)
- func (m *MockPluginSignFuncL3) EXPECT() *MockPluginSignFuncL3MockRecorder
- func (m *MockPluginSignFuncL3) GenerateLocalCA(hostName string) (string, crypto.CA, error)
- func (m *MockPluginSignFuncL3) GetLevel() ([]int, uint8)
- func (m *MockPluginSignFuncL3) GetSignKey(keyIndex string) (crypto.SignKey, error)
- func (m *MockPluginSignFuncL3) GetVerifyKey(key []byte, mode int) (crypto.VerifyKey, error)
- func (m *MockPluginSignFuncL3) Issue(ca crypto.CA, hostname string, ct crypto.CertType, ext map[string]string, ...) ([]byte, error)
- func (m *MockPluginSignFuncL3) ParseAllCA(arg0 []string) ([]crypto.CA, error)
- func (m *MockPluginSignFuncL3) ParseCertificate(arg0 string) (crypto.Cert, error)
- type MockPluginSignFuncL3MockRecorder
- func (mr *MockPluginSignFuncL3MockRecorder) CreateSignKey() *gomock.Call
- func (mr *MockPluginSignFuncL3MockRecorder) GenerateLocalCA(hostName any) *gomock.Call
- func (mr *MockPluginSignFuncL3MockRecorder) GetLevel() *gomock.Call
- func (mr *MockPluginSignFuncL3MockRecorder) GetSignKey(keyIndex any) *gomock.Call
- func (mr *MockPluginSignFuncL3MockRecorder) GetVerifyKey(key, mode any) *gomock.Call
- func (mr *MockPluginSignFuncL3MockRecorder) Issue(ca, hostname, ct, ext, vk any) *gomock.Call
- func (mr *MockPluginSignFuncL3MockRecorder) ParseAllCA(arg0 any) *gomock.Call
- func (mr *MockPluginSignFuncL3MockRecorder) ParseCertificate(arg0 any) *gomock.Call
- type MockPoint
- func (m *MockPoint) Add(arg0, arg1 crypto.Point) crypto.Point
- func (m *MockPoint) Double(arg0 crypto.Point) crypto.Point
- func (m *MockPoint) EXPECT() *MockPointMockRecorder
- func (m *MockPoint) GetPairing() crypto.Pairing
- func (m *MockPoint) GetPosition() crypto.Position
- func (m *MockPoint) IsInfinity() bool
- func (m *MockPoint) Marshal() []byte
- func (m *MockPoint) Neg(arg0 crypto.Point) crypto.Point
- func (m *MockPoint) ScalarBaseMult(arg0 *big.Int) crypto.Point
- func (m *MockPoint) ScalarMult(arg0 crypto.Point, arg1 *big.Int) crypto.Point
- func (m *MockPoint) Set(arg0 crypto.Point) crypto.Point
- func (m *MockPoint) SetInfinity()
- func (m *MockPoint) Unmarshal(arg0 []byte) ([]byte, error)
- type MockPointMockRecorder
- func (mr *MockPointMockRecorder) Add(arg0, arg1 any) *gomock.Call
- func (mr *MockPointMockRecorder) Double(arg0 any) *gomock.Call
- func (mr *MockPointMockRecorder) GetPairing() *gomock.Call
- func (mr *MockPointMockRecorder) GetPosition() *gomock.Call
- func (mr *MockPointMockRecorder) IsInfinity() *gomock.Call
- func (mr *MockPointMockRecorder) Marshal() *gomock.Call
- func (mr *MockPointMockRecorder) Neg(arg0 any) *gomock.Call
- func (mr *MockPointMockRecorder) ScalarBaseMult(arg0 any) *gomock.Call
- func (mr *MockPointMockRecorder) ScalarMult(arg0, arg1 any) *gomock.Call
- func (mr *MockPointMockRecorder) Set(arg0 any) *gomock.Call
- func (mr *MockPointMockRecorder) SetInfinity() *gomock.Call
- func (mr *MockPointMockRecorder) Unmarshal(arg0 any) *gomock.Call
- type MockPrivateKey
- func (m *MockPrivateKey) Bytes() []byte
- func (m *MockPrivateKey) Decrypt(cipher []byte) ([]byte, error)
- func (m *MockPrivateKey) Destroy()
- func (m *MockPrivateKey) EXPECT() *MockPrivateKeyMockRecorder
- func (m *MockPrivateKey) Encrypt(msg []byte, reader io.Reader) ([]byte, error)
- func (m *MockPrivateKey) GetKeyInfo() int
- func (m *MockPrivateKey) RichBytes() []byte
- func (m *MockPrivateKey) Sign(msg []byte, hasher hash.Hash, rand io.Reader) ([]byte, error)
- func (m *MockPrivateKey) Verify(msg []byte, hasher hash.Hash, sig []byte) bool
- type MockPrivateKeyMockRecorder
- func (mr *MockPrivateKeyMockRecorder) Bytes() *gomock.Call
- func (mr *MockPrivateKeyMockRecorder) Decrypt(cipher any) *gomock.Call
- func (mr *MockPrivateKeyMockRecorder) Destroy() *gomock.Call
- func (mr *MockPrivateKeyMockRecorder) Encrypt(msg, reader any) *gomock.Call
- func (mr *MockPrivateKeyMockRecorder) GetKeyInfo() *gomock.Call
- func (mr *MockPrivateKeyMockRecorder) RichBytes() *gomock.Call
- func (mr *MockPrivateKeyMockRecorder) Sign(msg, hasher, rand any) *gomock.Call
- func (mr *MockPrivateKeyMockRecorder) Verify(msg, hasher, sig any) *gomock.Call
- type MockPublicKey
- func (m *MockPublicKey) Bytes() []byte
- func (m *MockPublicKey) EXPECT() *MockPublicKeyMockRecorder
- func (m *MockPublicKey) Encrypt(msg []byte, reader io.Reader) ([]byte, error)
- func (m *MockPublicKey) GetKeyInfo() int
- func (m *MockPublicKey) RichBytes() []byte
- func (m *MockPublicKey) Verify(msg []byte, hasher hash.Hash, sig []byte) bool
- type MockPublicKeyMockRecorder
- func (mr *MockPublicKeyMockRecorder) Bytes() *gomock.Call
- func (mr *MockPublicKeyMockRecorder) Encrypt(msg, reader any) *gomock.Call
- func (mr *MockPublicKeyMockRecorder) GetKeyInfo() *gomock.Call
- func (mr *MockPublicKeyMockRecorder) RichBytes() *gomock.Call
- func (mr *MockPublicKeyMockRecorder) Verify(msg, hasher, sig any) *gomock.Call
- type MockSecretKey
- type MockSecretKeyMockRecorder
- type MockSignKey
- func (m *MockSignKey) Bytes() []byte
- func (m *MockSignKey) Destroy()
- func (m *MockSignKey) EXPECT() *MockSignKeyMockRecorder
- func (m *MockSignKey) GetKeyInfo() int
- func (m *MockSignKey) RichBytes() []byte
- func (m *MockSignKey) Sign(msg []byte, hasher hash.Hash, rand io.Reader) ([]byte, error)
- func (m *MockSignKey) Verify(msg []byte, hasher hash.Hash, sig []byte) bool
- type MockSignKeyMockRecorder
- func (mr *MockSignKeyMockRecorder) Bytes() *gomock.Call
- func (mr *MockSignKeyMockRecorder) Destroy() *gomock.Call
- func (mr *MockSignKeyMockRecorder) GetKeyInfo() *gomock.Call
- func (mr *MockSignKeyMockRecorder) RichBytes() *gomock.Call
- func (mr *MockSignKeyMockRecorder) Sign(msg, hasher, rand any) *gomock.Call
- func (mr *MockSignKeyMockRecorder) Verify(msg, hasher, sig any) *gomock.Call
- type MockSigner
- type MockSignerMockRecorder
- type MockVerifier
- type MockVerifierMockRecorder
- type MockVerifyKey
- type MockVerifyKeyMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAlgebraicSys ¶ added in v0.0.11
type MockAlgebraicSys struct {
// contains filtered or unexported fields
}
MockAlgebraicSys is a mock of AlgebraicSys interface.
func NewMockAlgebraicSys ¶ added in v0.0.11
func NewMockAlgebraicSys(ctrl *gomock.Controller) *MockAlgebraicSys
NewMockAlgebraicSys creates a new mock instance.
func (*MockAlgebraicSys) EXPECT ¶ added in v0.0.11
func (m *MockAlgebraicSys) EXPECT() *MockAlgebraicSysMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAlgebraicSys) GetModule ¶ added in v0.0.11
func (m *MockAlgebraicSys) GetModule() *big.Int
GetModule mocks base method.
func (*MockAlgebraicSys) GetRootOfUnity ¶ added in v0.0.11
func (m *MockAlgebraicSys) GetRootOfUnity(arg0 uint64) (crypto.FieldElement, uint64, error)
GetRootOfUnity mocks base method.
func (*MockAlgebraicSys) Marshal ¶ added in v0.0.11
func (m *MockAlgebraicSys) Marshal() []byte
Marshal mocks base method.
func (*MockAlgebraicSys) Name ¶ added in v0.0.11
func (m *MockAlgebraicSys) Name() string
Name mocks base method.
func (*MockAlgebraicSys) NewScalar ¶ added in v0.0.11
func (m *MockAlgebraicSys) NewScalar() crypto.FieldElement
NewScalar mocks base method.
func (*MockAlgebraicSys) PutScalar ¶ added in v0.0.11
func (m *MockAlgebraicSys) PutScalar(arg0 crypto.FieldElement)
PutScalar mocks base method.
type MockAlgebraicSysMockRecorder ¶ added in v0.0.11
type MockAlgebraicSysMockRecorder struct {
// contains filtered or unexported fields
}
MockAlgebraicSysMockRecorder is the mock recorder for MockAlgebraicSys.
func (*MockAlgebraicSysMockRecorder) GetModule ¶ added in v0.0.11
func (mr *MockAlgebraicSysMockRecorder) GetModule() *gomock.Call
GetModule indicates an expected call of GetModule.
func (*MockAlgebraicSysMockRecorder) GetRootOfUnity ¶ added in v0.0.11
func (mr *MockAlgebraicSysMockRecorder) GetRootOfUnity(arg0 any) *gomock.Call
GetRootOfUnity indicates an expected call of GetRootOfUnity.
func (*MockAlgebraicSysMockRecorder) Marshal ¶ added in v0.0.11
func (mr *MockAlgebraicSysMockRecorder) Marshal() *gomock.Call
Marshal indicates an expected call of Marshal.
func (*MockAlgebraicSysMockRecorder) Name ¶ added in v0.0.11
func (mr *MockAlgebraicSysMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockAlgebraicSysMockRecorder) NewScalar ¶ added in v0.0.11
func (mr *MockAlgebraicSysMockRecorder) NewScalar() *gomock.Call
NewScalar indicates an expected call of NewScalar.
type MockCA ¶ added in v0.0.15
type MockCA struct {
// contains filtered or unexported fields
}
MockCA is a mock of CA interface.
func NewMockCA ¶ added in v0.0.15
func NewMockCA(ctrl *gomock.Controller) *MockCA
NewMockCA creates a new mock instance.
func (*MockCA) EXPECT ¶ added in v0.0.15
func (m *MockCA) EXPECT() *MockCAMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCA) GetHostName ¶ added in v0.0.15
GetHostName mocks base method.
func (*MockCA) GetKeyIdentifier ¶ added in v0.0.15
GetKeyIdentifier mocks base method.
func (*MockCA) GetPubKeyForPairing ¶ added in v0.0.15
GetPubKeyForPairing mocks base method.
type MockCAMockRecorder ¶ added in v0.0.15
type MockCAMockRecorder struct {
// contains filtered or unexported fields
}
MockCAMockRecorder is the mock recorder for MockCA.
func (*MockCAMockRecorder) GetHostName ¶ added in v0.0.15
func (mr *MockCAMockRecorder) GetHostName() *gomock.Call
GetHostName indicates an expected call of GetHostName.
func (*MockCAMockRecorder) GetKeyIdentifier ¶ added in v0.0.15
func (mr *MockCAMockRecorder) GetKeyIdentifier() *gomock.Call
GetKeyIdentifier indicates an expected call of GetKeyIdentifier.
func (*MockCAMockRecorder) GetPubKeyForPairing ¶ added in v0.0.15
func (mr *MockCAMockRecorder) GetPubKeyForPairing() *gomock.Call
GetPubKeyForPairing indicates an expected call of GetPubKeyForPairing.
func (*MockCAMockRecorder) String ¶ added in v0.0.15
func (mr *MockCAMockRecorder) String() *gomock.Call
String indicates an expected call of String.
type MockCert ¶ added in v0.0.15
type MockCert struct {
// contains filtered or unexported fields
}
MockCert is a mock of Cert interface.
func NewMockCert ¶ added in v0.0.15
func NewMockCert(ctrl *gomock.Controller) *MockCert
NewMockCert creates a new mock instance.
func (*MockCert) EXPECT ¶ added in v0.0.15
func (m *MockCert) EXPECT() *MockCertMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCert) GetAuthorityKeyIdentifier ¶ added in v0.0.15
GetAuthorityKeyIdentifier mocks base method.
func (*MockCert) GetCAHostName ¶ added in v0.0.15
GetCAHostName mocks base method.
func (*MockCert) GetCertType ¶ added in v0.0.15
GetCertType mocks base method.
func (*MockCert) GetExtName ¶ added in v0.0.15
GetExtName mocks base method.
func (*MockCert) GetHostName ¶ added in v0.0.15
GetHostName mocks base method.
func (*MockCert) GetVerifyKey ¶ added in v0.0.15
GetVerifyKey mocks base method.
func (*MockCert) VerifyCert ¶ added in v0.0.15
VerifyCert mocks base method.
type MockCertMockRecorder ¶ added in v0.0.15
type MockCertMockRecorder struct {
// contains filtered or unexported fields
}
MockCertMockRecorder is the mock recorder for MockCert.
func (*MockCertMockRecorder) GetAuthorityKeyIdentifier ¶ added in v0.0.15
func (mr *MockCertMockRecorder) GetAuthorityKeyIdentifier() *gomock.Call
GetAuthorityKeyIdentifier indicates an expected call of GetAuthorityKeyIdentifier.
func (*MockCertMockRecorder) GetCAHostName ¶ added in v0.0.15
func (mr *MockCertMockRecorder) GetCAHostName() *gomock.Call
GetCAHostName indicates an expected call of GetCAHostName.
func (*MockCertMockRecorder) GetCertType ¶ added in v0.0.15
func (mr *MockCertMockRecorder) GetCertType() *gomock.Call
GetCertType indicates an expected call of GetCertType.
func (*MockCertMockRecorder) GetExtName ¶ added in v0.0.15
func (mr *MockCertMockRecorder) GetExtName() *gomock.Call
GetExtName indicates an expected call of GetExtName.
func (*MockCertMockRecorder) GetHostName ¶ added in v0.0.15
func (mr *MockCertMockRecorder) GetHostName() *gomock.Call
GetHostName indicates an expected call of GetHostName.
func (*MockCertMockRecorder) GetVerifyKey ¶ added in v0.0.15
func (mr *MockCertMockRecorder) GetVerifyKey() *gomock.Call
GetVerifyKey indicates an expected call of GetVerifyKey.
func (*MockCertMockRecorder) String ¶ added in v0.0.15
func (mr *MockCertMockRecorder) String() *gomock.Call
String indicates an expected call of String.
func (*MockCertMockRecorder) VerifyCert ¶ added in v0.0.15
func (mr *MockCertMockRecorder) VerifyCert(caList any) *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.
type MockCryptorMockRecorder ¶
type MockCryptorMockRecorder struct {
// contains filtered or unexported fields
}
MockCryptorMockRecorder is the mock recorder for MockCryptor.
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) Decrypt ¶
func (m *MockDecKey) Decrypt(cipher []byte) ([]byte, error)
Decrypt mocks base method.
func (*MockDecKey) EXPECT ¶
func (m *MockDecKey) EXPECT() *MockDecKeyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 any) *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 any) *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 ¶
func (m *MockDecryptor) EXPECT() *MockDecryptorMockRecorder
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.
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) EXPECT ¶
func (m *MockEncKey) EXPECT() *MockEncKeyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 any) *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 ¶
func (m *MockEncryptor) EXPECT() *MockEncryptorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockEncryptorMockRecorder ¶
type MockEncryptorMockRecorder struct {
// contains filtered or unexported fields
}
MockEncryptorMockRecorder is the mock recorder for MockEncryptor.
type MockFieldElement ¶ added in v0.0.11
type MockFieldElement struct {
// contains filtered or unexported fields
}
MockFieldElement is a mock of FieldElement interface.
func NewMockFieldElement ¶ added in v0.0.11
func NewMockFieldElement(ctrl *gomock.Controller) *MockFieldElement
NewMockFieldElement creates a new mock instance.
func (*MockFieldElement) Add ¶ added in v0.0.11
func (m *MockFieldElement) Add(a1, a2 crypto.FieldElement) crypto.FieldElement
Add mocks base method.
func (*MockFieldElement) Copy ¶ added in v0.0.11
func (m *MockFieldElement) Copy() crypto.FieldElement
Copy mocks base method.
func (*MockFieldElement) Div ¶ added in v0.0.11
func (m *MockFieldElement) Div(a1, a2 crypto.FieldElement) crypto.FieldElement
Div mocks base method.
func (*MockFieldElement) Double ¶ added in v0.0.11
func (m *MockFieldElement) Double(arg0 crypto.FieldElement) crypto.FieldElement
Double mocks base method.
func (*MockFieldElement) EXPECT ¶ added in v0.0.11
func (m *MockFieldElement) EXPECT() *MockFieldElementMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFieldElement) Equal ¶ added in v0.0.11
func (m *MockFieldElement) Equal(arg0 crypto.FieldElement) bool
Equal mocks base method.
func (*MockFieldElement) Exp ¶ added in v0.0.11
func (m *MockFieldElement) Exp(arg0 crypto.FieldElement, arg1 []byte) crypto.FieldElement
Exp mocks base method.
func (*MockFieldElement) From ¶ added in v0.0.11
func (m *MockFieldElement) From(rat *big.Int) crypto.FieldElement
From mocks base method.
func (*MockFieldElement) FromRegular ¶ added in v0.0.11
func (m *MockFieldElement) FromRegular(content []byte) crypto.FieldElement
FromRegular mocks base method.
func (*MockFieldElement) GetModule ¶ added in v0.0.11
func (m *MockFieldElement) GetModule(arg0 *big.Int)
GetModule mocks base method.
func (*MockFieldElement) Inv ¶ added in v0.0.11
func (m *MockFieldElement) Inv(arg0 crypto.FieldElement) crypto.FieldElement
Inv mocks base method.
func (*MockFieldElement) IsNeg ¶ added in v0.0.11
func (m *MockFieldElement) IsNeg() bool
IsNeg mocks base method.
func (*MockFieldElement) IsOne ¶ added in v0.0.11
func (m *MockFieldElement) IsOne() bool
IsOne mocks base method.
func (*MockFieldElement) IsZero ¶ added in v0.0.11
func (m *MockFieldElement) IsZero() bool
IsZero mocks base method.
func (*MockFieldElement) MarshalJSON ¶ added in v0.0.11
func (m *MockFieldElement) MarshalJSON() ([]byte, error)
MarshalJSON mocks base method.
func (*MockFieldElement) MontBytes ¶ added in v0.0.11
func (m *MockFieldElement) MontBytes(res []byte) []byte
MontBytes mocks base method.
func (*MockFieldElement) Mul ¶ added in v0.0.11
func (m *MockFieldElement) Mul(a1, a2 crypto.FieldElement) crypto.FieldElement
Mul mocks base method.
func (*MockFieldElement) Neg ¶ added in v0.0.11
func (m *MockFieldElement) Neg(arg0 crypto.FieldElement) crypto.FieldElement
Neg mocks base method.
func (*MockFieldElement) Regular ¶ added in v0.0.11
func (m *MockFieldElement) Regular(in []byte) []byte
Regular mocks base method.
func (*MockFieldElement) Set ¶ added in v0.0.11
func (m *MockFieldElement) Set(arg0 crypto.FieldElement) crypto.FieldElement
Set mocks base method.
func (*MockFieldElement) SetInt64 ¶ added in v0.0.11
func (m *MockFieldElement) SetInt64(arg0 int64) crypto.FieldElement
SetInt64 mocks base method.
func (*MockFieldElement) SetOne ¶ added in v0.0.11
func (m *MockFieldElement) SetOne() crypto.FieldElement
SetOne mocks base method.
func (*MockFieldElement) SetRandom ¶ added in v0.0.11
func (m *MockFieldElement) SetRandom(arg0 io.Reader) crypto.FieldElement
SetRandom mocks base method.
func (*MockFieldElement) SetUint64 ¶ added in v0.0.11
func (m *MockFieldElement) SetUint64(arg0 uint64) crypto.FieldElement
SetUint64 mocks base method.
func (*MockFieldElement) SetZero ¶ added in v0.0.11
func (m *MockFieldElement) SetZero() crypto.FieldElement
SetZero mocks base method.
func (*MockFieldElement) Square ¶ added in v0.0.11
func (m *MockFieldElement) Square(arg0 crypto.FieldElement) crypto.FieldElement
Square mocks base method.
func (*MockFieldElement) String ¶ added in v0.0.11
func (m *MockFieldElement) String() string
String mocks base method.
func (*MockFieldElement) Sub ¶ added in v0.0.11
func (m *MockFieldElement) Sub(a1, a2 crypto.FieldElement) crypto.FieldElement
Sub mocks base method.
func (*MockFieldElement) UnmarshalJSON ¶ added in v0.0.11
func (m *MockFieldElement) UnmarshalJSON(arg0 []byte) error
UnmarshalJSON mocks base method.
type MockFieldElementMockRecorder ¶ added in v0.0.11
type MockFieldElementMockRecorder struct {
// contains filtered or unexported fields
}
MockFieldElementMockRecorder is the mock recorder for MockFieldElement.
func (*MockFieldElementMockRecorder) Add ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) Add(a1, a2 any) *gomock.Call
Add indicates an expected call of Add.
func (*MockFieldElementMockRecorder) Copy ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) Copy() *gomock.Call
Copy indicates an expected call of Copy.
func (*MockFieldElementMockRecorder) Div ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) Div(a1, a2 any) *gomock.Call
Div indicates an expected call of Div.
func (*MockFieldElementMockRecorder) Double ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) Double(arg0 any) *gomock.Call
Double indicates an expected call of Double.
func (*MockFieldElementMockRecorder) Equal ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) Equal(arg0 any) *gomock.Call
Equal indicates an expected call of Equal.
func (*MockFieldElementMockRecorder) Exp ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) Exp(arg0, arg1 any) *gomock.Call
Exp indicates an expected call of Exp.
func (*MockFieldElementMockRecorder) From ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) From(rat any) *gomock.Call
From indicates an expected call of From.
func (*MockFieldElementMockRecorder) FromRegular ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) FromRegular(content any) *gomock.Call
FromRegular indicates an expected call of FromRegular.
func (*MockFieldElementMockRecorder) GetModule ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) GetModule(arg0 any) *gomock.Call
GetModule indicates an expected call of GetModule.
func (*MockFieldElementMockRecorder) Inv ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) Inv(arg0 any) *gomock.Call
Inv indicates an expected call of Inv.
func (*MockFieldElementMockRecorder) IsNeg ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) IsNeg() *gomock.Call
IsNeg indicates an expected call of IsNeg.
func (*MockFieldElementMockRecorder) IsOne ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) IsOne() *gomock.Call
IsOne indicates an expected call of IsOne.
func (*MockFieldElementMockRecorder) IsZero ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) IsZero() *gomock.Call
IsZero indicates an expected call of IsZero.
func (*MockFieldElementMockRecorder) MarshalJSON ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) MarshalJSON() *gomock.Call
MarshalJSON indicates an expected call of MarshalJSON.
func (*MockFieldElementMockRecorder) MontBytes ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) MontBytes(res any) *gomock.Call
MontBytes indicates an expected call of MontBytes.
func (*MockFieldElementMockRecorder) Mul ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) Mul(a1, a2 any) *gomock.Call
Mul indicates an expected call of Mul.
func (*MockFieldElementMockRecorder) Neg ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) Neg(arg0 any) *gomock.Call
Neg indicates an expected call of Neg.
func (*MockFieldElementMockRecorder) Regular ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) Regular(in any) *gomock.Call
Regular indicates an expected call of Regular.
func (*MockFieldElementMockRecorder) Set ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) Set(arg0 any) *gomock.Call
Set indicates an expected call of Set.
func (*MockFieldElementMockRecorder) SetInt64 ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) SetInt64(arg0 any) *gomock.Call
SetInt64 indicates an expected call of SetInt64.
func (*MockFieldElementMockRecorder) SetOne ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) SetOne() *gomock.Call
SetOne indicates an expected call of SetOne.
func (*MockFieldElementMockRecorder) SetRandom ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) SetRandom(arg0 any) *gomock.Call
SetRandom indicates an expected call of SetRandom.
func (*MockFieldElementMockRecorder) SetUint64 ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) SetUint64(arg0 any) *gomock.Call
SetUint64 indicates an expected call of SetUint64.
func (*MockFieldElementMockRecorder) SetZero ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) SetZero() *gomock.Call
SetZero indicates an expected call of SetZero.
func (*MockFieldElementMockRecorder) Square ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) Square(arg0 any) *gomock.Call
Square indicates an expected call of Square.
func (*MockFieldElementMockRecorder) String ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) String() *gomock.Call
String indicates an expected call of String.
func (*MockFieldElementMockRecorder) Sub ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) Sub(a1, a2 any) *gomock.Call
Sub indicates an expected call of Sub.
func (*MockFieldElementMockRecorder) UnmarshalJSON ¶ added in v0.0.11
func (mr *MockFieldElementMockRecorder) UnmarshalJSON(arg0 any) *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 ¶
func (m *MockFlagReader) EXPECT() *MockFlagReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
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) EXPECT ¶
func (m *MockHasher) EXPECT() *MockHasherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 any) *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 any) *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.
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) EXPECT ¶
func (m *MockKey) EXPECT() *MockKeyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
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.
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 ¶ added in v0.0.11
type MockMarshaller struct {
// contains filtered or unexported fields
}
MockMarshaller is a mock of Marshaller interface.
func NewMockMarshaller ¶ added in v0.0.11
func NewMockMarshaller(ctrl *gomock.Controller) *MockMarshaller
NewMockMarshaller creates a new mock instance.
func (*MockMarshaller) EXPECT ¶ added in v0.0.11
func (m *MockMarshaller) EXPECT() *MockMarshallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMarshaller) Marshal ¶ added in v0.0.11
func (m *MockMarshaller) Marshal() []byte
Marshal mocks base method.
type MockMarshallerMockRecorder ¶ added in v0.0.11
type MockMarshallerMockRecorder struct {
// contains filtered or unexported fields
}
MockMarshallerMockRecorder is the mock recorder for MockMarshaller.
func (*MockMarshallerMockRecorder) Marshal ¶ added in v0.0.11
func (mr *MockMarshallerMockRecorder) Marshal() *gomock.Call
Marshal indicates an expected call of Marshal.
type MockPairing ¶ added in v0.0.11
type MockPairing struct {
// contains filtered or unexported fields
}
MockPairing is a mock of Pairing interface.
func NewMockPairing ¶ added in v0.0.11
func NewMockPairing(ctrl *gomock.Controller) *MockPairing
NewMockPairing creates a new mock instance.
func (*MockPairing) BatchScalarMultiplicationG1 ¶ added in v0.0.11
func (m *MockPairing) BatchScalarMultiplicationG1(scalars []*big.Int, ret []crypto.Point)
BatchScalarMultiplicationG1 mocks base method.
func (*MockPairing) BatchScalarMultiplicationG2 ¶ added in v0.0.11
func (m *MockPairing) BatchScalarMultiplicationG2(scalars []*big.Int, ret []crypto.Point)
BatchScalarMultiplicationG2 mocks base method.
func (*MockPairing) EXPECT ¶ added in v0.0.11
func (m *MockPairing) EXPECT() *MockPairingMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPairing) GetBase ¶ added in v0.0.11
func (m *MockPairing) GetBase(arg0 crypto.Position) crypto.Point
GetBase mocks base method.
func (*MockPairing) GetModule ¶ added in v0.0.11
func (m *MockPairing) GetModule() *big.Int
GetModule mocks base method.
func (*MockPairing) GetRootOfUnity ¶ added in v0.0.11
func (m *MockPairing) GetRootOfUnity(arg0 uint64) (crypto.FieldElement, uint64, error)
GetRootOfUnity mocks base method.
func (*MockPairing) IsOnCurve ¶ added in v0.0.11
func (m *MockPairing) IsOnCurve(arg0 crypto.Point) error
IsOnCurve mocks base method.
func (*MockPairing) Marshal ¶ added in v0.0.11
func (m *MockPairing) Marshal() []byte
Marshal mocks base method.
func (*MockPairing) Name ¶ added in v0.0.11
func (m *MockPairing) Name() string
Name mocks base method.
func (*MockPairing) NewPoint ¶ added in v0.0.11
func (m *MockPairing) NewPoint(arg0 crypto.Position) crypto.Point
NewPoint mocks base method.
func (*MockPairing) NewScalar ¶ added in v0.0.11
func (m *MockPairing) NewScalar() crypto.FieldElement
NewScalar mocks base method.
func (*MockPairing) Pair ¶ added in v0.0.11
func (m *MockPairing) Pair(arg0, arg1 []crypto.Point) crypto.Point
Pair mocks base method.
func (*MockPairing) PairCheck ¶ added in v0.0.11
func (m *MockPairing) PairCheck(P, Q []crypto.Point) bool
PairCheck mocks base method.
func (*MockPairing) PutScalar ¶ added in v0.0.11
func (m *MockPairing) PutScalar(arg0 crypto.FieldElement)
PutScalar mocks base method.
type MockPairingMockRecorder ¶ added in v0.0.11
type MockPairingMockRecorder struct {
// contains filtered or unexported fields
}
MockPairingMockRecorder is the mock recorder for MockPairing.
func (*MockPairingMockRecorder) BatchScalarMultiplicationG1 ¶ added in v0.0.11
func (mr *MockPairingMockRecorder) BatchScalarMultiplicationG1(scalars, ret any) *gomock.Call
BatchScalarMultiplicationG1 indicates an expected call of BatchScalarMultiplicationG1.
func (*MockPairingMockRecorder) BatchScalarMultiplicationG2 ¶ added in v0.0.11
func (mr *MockPairingMockRecorder) BatchScalarMultiplicationG2(scalars, ret any) *gomock.Call
BatchScalarMultiplicationG2 indicates an expected call of BatchScalarMultiplicationG2.
func (*MockPairingMockRecorder) GetBase ¶ added in v0.0.11
func (mr *MockPairingMockRecorder) GetBase(arg0 any) *gomock.Call
GetBase indicates an expected call of GetBase.
func (*MockPairingMockRecorder) GetModule ¶ added in v0.0.11
func (mr *MockPairingMockRecorder) GetModule() *gomock.Call
GetModule indicates an expected call of GetModule.
func (*MockPairingMockRecorder) GetRootOfUnity ¶ added in v0.0.11
func (mr *MockPairingMockRecorder) GetRootOfUnity(arg0 any) *gomock.Call
GetRootOfUnity indicates an expected call of GetRootOfUnity.
func (*MockPairingMockRecorder) IsOnCurve ¶ added in v0.0.11
func (mr *MockPairingMockRecorder) IsOnCurve(arg0 any) *gomock.Call
IsOnCurve indicates an expected call of IsOnCurve.
func (*MockPairingMockRecorder) Marshal ¶ added in v0.0.11
func (mr *MockPairingMockRecorder) Marshal() *gomock.Call
Marshal indicates an expected call of Marshal.
func (*MockPairingMockRecorder) Name ¶ added in v0.0.11
func (mr *MockPairingMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockPairingMockRecorder) NewPoint ¶ added in v0.0.11
func (mr *MockPairingMockRecorder) NewPoint(arg0 any) *gomock.Call
NewPoint indicates an expected call of NewPoint.
func (*MockPairingMockRecorder) NewScalar ¶ added in v0.0.11
func (mr *MockPairingMockRecorder) NewScalar() *gomock.Call
NewScalar indicates an expected call of NewScalar.
func (*MockPairingMockRecorder) Pair ¶ added in v0.0.11
func (mr *MockPairingMockRecorder) Pair(arg0, arg1 any) *gomock.Call
Pair indicates an expected call of Pair.
func (*MockPairingMockRecorder) PairCheck ¶ added in v0.0.11
func (mr *MockPairingMockRecorder) PairCheck(P, Q any) *gomock.Call
PairCheck indicates an expected call of PairCheck.
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 ¶
func (m *MockPluginCryptFunc) EXPECT() *MockPluginCryptFuncMockRecorder
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 ¶
GetSecretKey mocks base method.
type MockPluginCryptFuncMockRecorder ¶
type MockPluginCryptFuncMockRecorder struct {
// contains filtered or unexported fields
}
MockPluginCryptFuncMockRecorder is the mock recorder for MockPluginCryptFunc.
func (*MockPluginCryptFuncMockRecorder) GetLevel ¶
func (mr *MockPluginCryptFuncMockRecorder) GetLevel() *gomock.Call
GetLevel indicates an expected call of GetLevel.
func (*MockPluginCryptFuncMockRecorder) GetSecretKey ¶
func (mr *MockPluginCryptFuncMockRecorder) GetSecretKey(mode, pwd, key any) *gomock.Call
GetSecretKey indicates an expected call of GetSecretKey.
type MockPluginGenerateSessionKeyFunc ¶ added in v0.0.15
type MockPluginGenerateSessionKeyFunc struct {
// contains filtered or unexported fields
}
MockPluginGenerateSessionKeyFunc is a mock of PluginGenerateSessionKeyFunc interface.
func NewMockPluginGenerateSessionKeyFunc ¶ added in v0.0.15
func NewMockPluginGenerateSessionKeyFunc(ctrl *gomock.Controller) *MockPluginGenerateSessionKeyFunc
NewMockPluginGenerateSessionKeyFunc creates a new mock instance.
func (*MockPluginGenerateSessionKeyFunc) EXPECT ¶ added in v0.0.15
func (m *MockPluginGenerateSessionKeyFunc) EXPECT() *MockPluginGenerateSessionKeyFuncMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPluginGenerateSessionKeyFunc) GetLevel ¶ added in v0.0.16
func (m *MockPluginGenerateSessionKeyFunc) GetLevel() ([]int, uint8)
GetLevel mocks base method.
func (*MockPluginGenerateSessionKeyFunc) KeyAgreementFinal ¶ added in v0.0.15
func (m *MockPluginGenerateSessionKeyFunc) KeyAgreementFinal(curve elliptic.Curve, algo string, data1, data2FromPeer []byte) (crypto.SecretKey, error)
KeyAgreementFinal mocks base method.
func (*MockPluginGenerateSessionKeyFunc) KeyAgreementInit ¶ added in v0.0.15
func (m *MockPluginGenerateSessionKeyFunc) KeyAgreementInit(curve elliptic.Curve) ([]byte, []byte, error)
KeyAgreementInit mocks base method.
type MockPluginGenerateSessionKeyFuncMockRecorder ¶ added in v0.0.15
type MockPluginGenerateSessionKeyFuncMockRecorder struct {
// contains filtered or unexported fields
}
MockPluginGenerateSessionKeyFuncMockRecorder is the mock recorder for MockPluginGenerateSessionKeyFunc.
func (*MockPluginGenerateSessionKeyFuncMockRecorder) GetLevel ¶ added in v0.0.16
func (mr *MockPluginGenerateSessionKeyFuncMockRecorder) GetLevel() *gomock.Call
GetLevel indicates an expected call of GetLevel.
func (*MockPluginGenerateSessionKeyFuncMockRecorder) KeyAgreementFinal ¶ added in v0.0.15
func (mr *MockPluginGenerateSessionKeyFuncMockRecorder) KeyAgreementFinal(curve, algo, data1, data2FromPeer any) *gomock.Call
KeyAgreementFinal indicates an expected call of KeyAgreementFinal.
func (*MockPluginGenerateSessionKeyFuncMockRecorder) KeyAgreementInit ¶ added in v0.0.15
func (mr *MockPluginGenerateSessionKeyFuncMockRecorder) KeyAgreementInit(curve any) *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 ¶
func (m *MockPluginHashFunc) EXPECT() *MockPluginHashFuncMockRecorder
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 any) *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 ¶
func (m *MockPluginRandomFunc) EXPECT() *MockPluginRandomFuncMockRecorder
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.
type MockPluginRandomFuncMockRecorder ¶
type MockPluginRandomFuncMockRecorder struct {
// contains filtered or unexported fields
}
MockPluginRandomFuncMockRecorder is the mock recorder for MockPluginRandomFunc.
func (*MockPluginRandomFuncMockRecorder) GetLevel ¶
func (mr *MockPluginRandomFuncMockRecorder) GetLevel() *gomock.Call
GetLevel indicates an expected call of GetLevel.
func (*MockPluginRandomFuncMockRecorder) Rander ¶
func (mr *MockPluginRandomFuncMockRecorder) Rander() *gomock.Call
Rander indicates an expected call of Rander.
type MockPluginSignFuncL0 ¶ added in v0.0.16
type MockPluginSignFuncL0 struct {
// contains filtered or unexported fields
}
MockPluginSignFuncL0 is a mock of PluginSignFuncL0 interface.
func NewMockPluginSignFuncL0 ¶ added in v0.0.16
func NewMockPluginSignFuncL0(ctrl *gomock.Controller) *MockPluginSignFuncL0
NewMockPluginSignFuncL0 creates a new mock instance.
func (*MockPluginSignFuncL0) EXPECT ¶ added in v0.0.16
func (m *MockPluginSignFuncL0) EXPECT() *MockPluginSignFuncL0MockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPluginSignFuncL0) GetLevel ¶ added in v0.0.16
func (m *MockPluginSignFuncL0) GetLevel() ([]int, uint8)
GetLevel mocks base method.
func (*MockPluginSignFuncL0) GetVerifyKey ¶ added in v0.0.16
GetVerifyKey mocks base method.
type MockPluginSignFuncL0MockRecorder ¶ added in v0.0.16
type MockPluginSignFuncL0MockRecorder struct {
// contains filtered or unexported fields
}
MockPluginSignFuncL0MockRecorder is the mock recorder for MockPluginSignFuncL0.
func (*MockPluginSignFuncL0MockRecorder) GetLevel ¶ added in v0.0.16
func (mr *MockPluginSignFuncL0MockRecorder) GetLevel() *gomock.Call
GetLevel indicates an expected call of GetLevel.
func (*MockPluginSignFuncL0MockRecorder) GetVerifyKey ¶ added in v0.0.16
func (mr *MockPluginSignFuncL0MockRecorder) GetVerifyKey(key, mode any) *gomock.Call
GetVerifyKey indicates an expected call of GetVerifyKey.
type MockPluginSignFuncL1 ¶ added in v0.0.16
type MockPluginSignFuncL1 struct {
// contains filtered or unexported fields
}
MockPluginSignFuncL1 is a mock of PluginSignFuncL1 interface.
func NewMockPluginSignFuncL1 ¶ added in v0.0.16
func NewMockPluginSignFuncL1(ctrl *gomock.Controller) *MockPluginSignFuncL1
NewMockPluginSignFuncL1 creates a new mock instance.
func (*MockPluginSignFuncL1) EXPECT ¶ added in v0.0.16
func (m *MockPluginSignFuncL1) EXPECT() *MockPluginSignFuncL1MockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPluginSignFuncL1) GetLevel ¶ added in v0.0.16
func (m *MockPluginSignFuncL1) GetLevel() ([]int, uint8)
GetLevel mocks base method.
func (*MockPluginSignFuncL1) GetSignKey ¶ added in v0.0.16
func (m *MockPluginSignFuncL1) GetSignKey(keyIndex string) (crypto.SignKey, error)
GetSignKey mocks base method.
func (*MockPluginSignFuncL1) GetVerifyKey ¶ added in v0.0.16
GetVerifyKey mocks base method.
type MockPluginSignFuncL1MockRecorder ¶ added in v0.0.16
type MockPluginSignFuncL1MockRecorder struct {
// contains filtered or unexported fields
}
MockPluginSignFuncL1MockRecorder is the mock recorder for MockPluginSignFuncL1.
func (*MockPluginSignFuncL1MockRecorder) GetLevel ¶ added in v0.0.16
func (mr *MockPluginSignFuncL1MockRecorder) GetLevel() *gomock.Call
GetLevel indicates an expected call of GetLevel.
func (*MockPluginSignFuncL1MockRecorder) GetSignKey ¶ added in v0.0.16
func (mr *MockPluginSignFuncL1MockRecorder) GetSignKey(keyIndex any) *gomock.Call
GetSignKey indicates an expected call of GetSignKey.
func (*MockPluginSignFuncL1MockRecorder) GetVerifyKey ¶ added in v0.0.16
func (mr *MockPluginSignFuncL1MockRecorder) GetVerifyKey(key, mode any) *gomock.Call
GetVerifyKey indicates an expected call of GetVerifyKey.
type MockPluginSignFuncL2 ¶ added in v0.0.16
type MockPluginSignFuncL2 struct {
// contains filtered or unexported fields
}
MockPluginSignFuncL2 is a mock of PluginSignFuncL2 interface.
func NewMockPluginSignFuncL2 ¶ added in v0.0.16
func NewMockPluginSignFuncL2(ctrl *gomock.Controller) *MockPluginSignFuncL2
NewMockPluginSignFuncL2 creates a new mock instance.
func (*MockPluginSignFuncL2) CreateSignKey ¶ added in v0.0.16
func (m *MockPluginSignFuncL2) CreateSignKey() (string, crypto.SignKey, error)
CreateSignKey mocks base method.
func (*MockPluginSignFuncL2) EXPECT ¶ added in v0.0.16
func (m *MockPluginSignFuncL2) EXPECT() *MockPluginSignFuncL2MockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPluginSignFuncL2) GetLevel ¶ added in v0.0.16
func (m *MockPluginSignFuncL2) GetLevel() ([]int, uint8)
GetLevel mocks base method.
func (*MockPluginSignFuncL2) GetSignKey ¶ added in v0.0.16
func (m *MockPluginSignFuncL2) GetSignKey(keyIndex string) (crypto.SignKey, error)
GetSignKey mocks base method.
func (*MockPluginSignFuncL2) GetVerifyKey ¶ added in v0.0.16
GetVerifyKey mocks base method.
func (*MockPluginSignFuncL2) ParseAllCA ¶ added in v0.0.16
func (m *MockPluginSignFuncL2) ParseAllCA(arg0 []string) ([]crypto.CA, error)
ParseAllCA mocks base method.
func (*MockPluginSignFuncL2) ParseCertificate ¶ added in v0.0.16
func (m *MockPluginSignFuncL2) ParseCertificate(arg0 string) (crypto.Cert, error)
ParseCertificate mocks base method.
type MockPluginSignFuncL2MockRecorder ¶ added in v0.0.16
type MockPluginSignFuncL2MockRecorder struct {
// contains filtered or unexported fields
}
MockPluginSignFuncL2MockRecorder is the mock recorder for MockPluginSignFuncL2.
func (*MockPluginSignFuncL2MockRecorder) CreateSignKey ¶ added in v0.0.16
func (mr *MockPluginSignFuncL2MockRecorder) CreateSignKey() *gomock.Call
CreateSignKey indicates an expected call of CreateSignKey.
func (*MockPluginSignFuncL2MockRecorder) GetLevel ¶ added in v0.0.16
func (mr *MockPluginSignFuncL2MockRecorder) GetLevel() *gomock.Call
GetLevel indicates an expected call of GetLevel.
func (*MockPluginSignFuncL2MockRecorder) GetSignKey ¶ added in v0.0.16
func (mr *MockPluginSignFuncL2MockRecorder) GetSignKey(keyIndex any) *gomock.Call
GetSignKey indicates an expected call of GetSignKey.
func (*MockPluginSignFuncL2MockRecorder) GetVerifyKey ¶ added in v0.0.16
func (mr *MockPluginSignFuncL2MockRecorder) GetVerifyKey(key, mode any) *gomock.Call
GetVerifyKey indicates an expected call of GetVerifyKey.
func (*MockPluginSignFuncL2MockRecorder) ParseAllCA ¶ added in v0.0.16
func (mr *MockPluginSignFuncL2MockRecorder) ParseAllCA(arg0 any) *gomock.Call
ParseAllCA indicates an expected call of ParseAllCA.
func (*MockPluginSignFuncL2MockRecorder) ParseCertificate ¶ added in v0.0.16
func (mr *MockPluginSignFuncL2MockRecorder) ParseCertificate(arg0 any) *gomock.Call
ParseCertificate indicates an expected call of ParseCertificate.
type MockPluginSignFuncL3 ¶ added in v0.0.16
type MockPluginSignFuncL3 struct {
// contains filtered or unexported fields
}
MockPluginSignFuncL3 is a mock of PluginSignFuncL3 interface.
func NewMockPluginSignFuncL3 ¶ added in v0.0.16
func NewMockPluginSignFuncL3(ctrl *gomock.Controller) *MockPluginSignFuncL3
NewMockPluginSignFuncL3 creates a new mock instance.
func (*MockPluginSignFuncL3) CreateSignKey ¶ added in v0.0.16
func (m *MockPluginSignFuncL3) CreateSignKey() (string, crypto.SignKey, error)
CreateSignKey mocks base method.
func (*MockPluginSignFuncL3) EXPECT ¶ added in v0.0.16
func (m *MockPluginSignFuncL3) EXPECT() *MockPluginSignFuncL3MockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPluginSignFuncL3) GenerateLocalCA ¶ added in v0.0.16
GenerateLocalCA mocks base method.
func (*MockPluginSignFuncL3) GetLevel ¶ added in v0.0.16
func (m *MockPluginSignFuncL3) GetLevel() ([]int, uint8)
GetLevel mocks base method.
func (*MockPluginSignFuncL3) GetSignKey ¶ added in v0.0.16
func (m *MockPluginSignFuncL3) GetSignKey(keyIndex string) (crypto.SignKey, error)
GetSignKey mocks base method.
func (*MockPluginSignFuncL3) GetVerifyKey ¶ added in v0.0.16
GetVerifyKey mocks base method.
func (*MockPluginSignFuncL3) Issue ¶ added in v0.0.16
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 ¶ added in v0.0.16
func (m *MockPluginSignFuncL3) ParseAllCA(arg0 []string) ([]crypto.CA, error)
ParseAllCA mocks base method.
func (*MockPluginSignFuncL3) ParseCertificate ¶ added in v0.0.16
func (m *MockPluginSignFuncL3) ParseCertificate(arg0 string) (crypto.Cert, error)
ParseCertificate mocks base method.
type MockPluginSignFuncL3MockRecorder ¶ added in v0.0.16
type MockPluginSignFuncL3MockRecorder struct {
// contains filtered or unexported fields
}
MockPluginSignFuncL3MockRecorder is the mock recorder for MockPluginSignFuncL3.
func (*MockPluginSignFuncL3MockRecorder) CreateSignKey ¶ added in v0.0.16
func (mr *MockPluginSignFuncL3MockRecorder) CreateSignKey() *gomock.Call
CreateSignKey indicates an expected call of CreateSignKey.
func (*MockPluginSignFuncL3MockRecorder) GenerateLocalCA ¶ added in v0.0.16
func (mr *MockPluginSignFuncL3MockRecorder) GenerateLocalCA(hostName any) *gomock.Call
GenerateLocalCA indicates an expected call of GenerateLocalCA.
func (*MockPluginSignFuncL3MockRecorder) GetLevel ¶ added in v0.0.16
func (mr *MockPluginSignFuncL3MockRecorder) GetLevel() *gomock.Call
GetLevel indicates an expected call of GetLevel.
func (*MockPluginSignFuncL3MockRecorder) GetSignKey ¶ added in v0.0.16
func (mr *MockPluginSignFuncL3MockRecorder) GetSignKey(keyIndex any) *gomock.Call
GetSignKey indicates an expected call of GetSignKey.
func (*MockPluginSignFuncL3MockRecorder) GetVerifyKey ¶ added in v0.0.16
func (mr *MockPluginSignFuncL3MockRecorder) GetVerifyKey(key, mode any) *gomock.Call
GetVerifyKey indicates an expected call of GetVerifyKey.
func (*MockPluginSignFuncL3MockRecorder) Issue ¶ added in v0.0.16
func (mr *MockPluginSignFuncL3MockRecorder) Issue(ca, hostname, ct, ext, vk any) *gomock.Call
Issue indicates an expected call of Issue.
func (*MockPluginSignFuncL3MockRecorder) ParseAllCA ¶ added in v0.0.16
func (mr *MockPluginSignFuncL3MockRecorder) ParseAllCA(arg0 any) *gomock.Call
ParseAllCA indicates an expected call of ParseAllCA.
func (*MockPluginSignFuncL3MockRecorder) ParseCertificate ¶ added in v0.0.16
func (mr *MockPluginSignFuncL3MockRecorder) ParseCertificate(arg0 any) *gomock.Call
ParseCertificate indicates an expected call of ParseCertificate.
type MockPoint ¶ added in v0.0.11
type MockPoint struct {
// contains filtered or unexported fields
}
MockPoint is a mock of Point interface.
func NewMockPoint ¶ added in v0.0.11
func NewMockPoint(ctrl *gomock.Controller) *MockPoint
NewMockPoint creates a new mock instance.
func (*MockPoint) EXPECT ¶ added in v0.0.11
func (m *MockPoint) EXPECT() *MockPointMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPoint) GetPairing ¶ added in v0.0.11
GetPairing mocks base method.
func (*MockPoint) GetPosition ¶ added in v0.0.11
GetPosition mocks base method.
func (*MockPoint) IsInfinity ¶ added in v0.0.11
IsInfinity mocks base method.
func (*MockPoint) ScalarBaseMult ¶ added in v0.0.11
ScalarBaseMult mocks base method.
func (*MockPoint) ScalarMult ¶ added in v0.0.11
ScalarMult mocks base method.
func (*MockPoint) SetInfinity ¶ added in v0.0.11
func (m *MockPoint) SetInfinity()
SetInfinity mocks base method.
type MockPointMockRecorder ¶ added in v0.0.11
type MockPointMockRecorder struct {
// contains filtered or unexported fields
}
MockPointMockRecorder is the mock recorder for MockPoint.
func (*MockPointMockRecorder) Add ¶ added in v0.0.11
func (mr *MockPointMockRecorder) Add(arg0, arg1 any) *gomock.Call
Add indicates an expected call of Add.
func (*MockPointMockRecorder) Double ¶ added in v0.0.11
func (mr *MockPointMockRecorder) Double(arg0 any) *gomock.Call
Double indicates an expected call of Double.
func (*MockPointMockRecorder) GetPairing ¶ added in v0.0.11
func (mr *MockPointMockRecorder) GetPairing() *gomock.Call
GetPairing indicates an expected call of GetPairing.
func (*MockPointMockRecorder) GetPosition ¶ added in v0.0.11
func (mr *MockPointMockRecorder) GetPosition() *gomock.Call
GetPosition indicates an expected call of GetPosition.
func (*MockPointMockRecorder) IsInfinity ¶ added in v0.0.11
func (mr *MockPointMockRecorder) IsInfinity() *gomock.Call
IsInfinity indicates an expected call of IsInfinity.
func (*MockPointMockRecorder) Marshal ¶ added in v0.0.11
func (mr *MockPointMockRecorder) Marshal() *gomock.Call
Marshal indicates an expected call of Marshal.
func (*MockPointMockRecorder) Neg ¶ added in v0.0.11
func (mr *MockPointMockRecorder) Neg(arg0 any) *gomock.Call
Neg indicates an expected call of Neg.
func (*MockPointMockRecorder) ScalarBaseMult ¶ added in v0.0.11
func (mr *MockPointMockRecorder) ScalarBaseMult(arg0 any) *gomock.Call
ScalarBaseMult indicates an expected call of ScalarBaseMult.
func (*MockPointMockRecorder) ScalarMult ¶ added in v0.0.11
func (mr *MockPointMockRecorder) ScalarMult(arg0, arg1 any) *gomock.Call
ScalarMult indicates an expected call of ScalarMult.
func (*MockPointMockRecorder) Set ¶ added in v0.0.11
func (mr *MockPointMockRecorder) Set(arg0 any) *gomock.Call
Set indicates an expected call of Set.
func (*MockPointMockRecorder) SetInfinity ¶ added in v0.0.11
func (mr *MockPointMockRecorder) SetInfinity() *gomock.Call
SetInfinity indicates an expected call of SetInfinity.
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) Decrypt ¶
func (m *MockPrivateKey) Decrypt(cipher []byte) ([]byte, error)
Decrypt mocks base method.
func (*MockPrivateKey) EXPECT ¶
func (m *MockPrivateKey) EXPECT() *MockPrivateKeyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPrivateKey) GetKeyInfo ¶
func (m *MockPrivateKey) GetKeyInfo() int
GetKeyInfo mocks base method.
func (*MockPrivateKey) RichBytes ¶ added in v0.0.15
func (m *MockPrivateKey) RichBytes() []byte
RichBytes 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 any) *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 any) *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 ¶ added in v0.0.15
func (mr *MockPrivateKeyMockRecorder) RichBytes() *gomock.Call
RichBytes indicates an expected call of RichBytes.
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) EXPECT ¶
func (m *MockPublicKey) EXPECT() *MockPublicKeyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPublicKey) GetKeyInfo ¶
func (m *MockPublicKey) GetKeyInfo() int
GetKeyInfo mocks base method.
func (*MockPublicKey) RichBytes ¶ added in v0.0.15
func (m *MockPublicKey) RichBytes() []byte
RichBytes 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 any) *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 ¶ added in v0.0.15
func (mr *MockPublicKeyMockRecorder) RichBytes() *gomock.Call
RichBytes indicates an expected call of RichBytes.
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) EXPECT ¶
func (m *MockSecretKey) EXPECT() *MockSecretKeyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 any) *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.
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) 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 ¶ added in v0.0.15
func (m *MockSignKey) RichBytes() []byte
RichBytes 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 ¶ added in v0.0.15
func (mr *MockSignKeyMockRecorder) RichBytes() *gomock.Call
RichBytes indicates an expected call of RichBytes.
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) EXPECT ¶
func (m *MockSigner) EXPECT() *MockSignerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
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 ¶
func (m *MockVerifier) EXPECT() *MockVerifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
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) EXPECT ¶
func (m *MockVerifyKey) EXPECT() *MockVerifyKeyMockRecorder
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 ¶ added in v0.0.15
func (m *MockVerifyKey) RichBytes() []byte
RichBytes 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 ¶ added in v0.0.15
func (mr *MockVerifyKeyMockRecorder) RichBytes() *gomock.Call
RichBytes indicates an expected call of RichBytes.