Documentation ¶
Index ¶
- Constants
- Variables
- type PaillierBlumMessage
- func (*PaillierBlumMessage) Descriptor() ([]byte, []int)deprecated
- func (x *PaillierBlumMessage) GetA() [][]byte
- func (x *PaillierBlumMessage) GetB() [][]byte
- func (x *PaillierBlumMessage) GetSalt() [][]byte
- func (x *PaillierBlumMessage) GetW() []byte
- func (x *PaillierBlumMessage) GetX() [][]byte
- func (x *PaillierBlumMessage) GetZ() [][]byte
- func (*PaillierBlumMessage) ProtoMessage()
- func (x *PaillierBlumMessage) ProtoReflect() protoreflect.Message
- func (x *PaillierBlumMessage) Reset()
- func (x *PaillierBlumMessage) String() string
- func (msg *PaillierBlumMessage) Verify(ssidInfo []byte, n *big.Int) error
Constants ¶
View Source
const (
// SAFESECURITYLEVEL define the minimal security level
SAFESECURITYLEVEL = 2047
)
Variables ¶
View Source
var ( //ErrVerifyFailure is returned if the verification is failure. ErrVerifyFailure = errors.New("the verification is failure") //ErrTooFewChallenge is returned if the times of challenge is too few. ErrTooFewChallenge = errors.New("the times of challenge are too few") //ErrExceedMaxRetry is returned if we retried over times ErrExceedMaxRetry = errors.New("exceed max retries") //ErrInvalidInput is returned if the input is invalid ErrInvalidInput = errors.New("invalid input") )
View Source
var File_mod_msg_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PaillierBlumMessage ¶
type PaillierBlumMessage struct { A [][]byte `protobuf:"bytes,1,rep,name=a,proto3" json:"a,omitempty"` B [][]byte `protobuf:"bytes,2,rep,name=b,proto3" json:"b,omitempty"` W []byte `protobuf:"bytes,3,opt,name=w,proto3" json:"w,omitempty"` X [][]byte `protobuf:"bytes,4,rep,name=x,proto3" json:"x,omitempty"` Z [][]byte `protobuf:"bytes,5,rep,name=z,proto3" json:"z,omitempty"` Salt [][]byte `protobuf:"bytes,6,rep,name=salt,proto3" json:"salt,omitempty"` // contains filtered or unexported fields }
func NewPaillierBlumMessage ¶
func (*PaillierBlumMessage) Descriptor
deprecated
func (*PaillierBlumMessage) Descriptor() ([]byte, []int)
Deprecated: Use PaillierBlumMessage.ProtoReflect.Descriptor instead.
func (*PaillierBlumMessage) GetA ¶
func (x *PaillierBlumMessage) GetA() [][]byte
func (*PaillierBlumMessage) GetB ¶
func (x *PaillierBlumMessage) GetB() [][]byte
func (*PaillierBlumMessage) GetSalt ¶
func (x *PaillierBlumMessage) GetSalt() [][]byte
func (*PaillierBlumMessage) GetW ¶
func (x *PaillierBlumMessage) GetW() []byte
func (*PaillierBlumMessage) GetX ¶
func (x *PaillierBlumMessage) GetX() [][]byte
func (*PaillierBlumMessage) GetZ ¶
func (x *PaillierBlumMessage) GetZ() [][]byte
func (*PaillierBlumMessage) ProtoMessage ¶
func (*PaillierBlumMessage) ProtoMessage()
func (*PaillierBlumMessage) ProtoReflect ¶
func (x *PaillierBlumMessage) ProtoReflect() protoreflect.Message
func (*PaillierBlumMessage) Reset ¶
func (x *PaillierBlumMessage) Reset()
func (*PaillierBlumMessage) String ¶
func (x *PaillierBlumMessage) String() string
Click to show internal directories.
Click to hide internal directories.