Documentation ¶
Index ¶
- Variables
- type OtChallengeMessage
- func (*OtChallengeMessage) Descriptor() ([]byte, []int)deprecated
- func (x *OtChallengeMessage) GetChallenge() [][]byte
- func (*OtChallengeMessage) ProtoMessage()
- func (x *OtChallengeMessage) ProtoReflect() protoreflect.Message
- func (x *OtChallengeMessage) Reset()
- func (x *OtChallengeMessage) String() string
- type OtDMatrixMessage
- type OtDMessage
- type OtExtReceiveMessage
- func (*OtExtReceiveMessage) Descriptor() ([]byte, []int)deprecated
- func (x *OtExtReceiveMessage) GetD() [][]byte
- func (x *OtExtReceiveMessage) GetOtSendMsg() *OtSenderMessage
- func (x *OtExtReceiveMessage) GetU() []*binaryfield.BinaryMessage
- func (x *OtExtReceiveMessage) GetV() []*binaryfield.BinaryMessage
- func (*OtExtReceiveMessage) ProtoMessage()
- func (x *OtExtReceiveMessage) ProtoReflect() protoreflect.Message
- func (x *OtExtReceiveMessage) Reset()
- func (x *OtExtReceiveMessage) String() string
- type OtExtReceiver
- type OtExtSendResponseMessage
- func (*OtExtSendResponseMessage) Descriptor() ([]byte, []int)deprecated
- func (x *OtExtSendResponseMessage) GetA0() [][]byte
- func (x *OtExtSendResponseMessage) GetA1() [][]byte
- func (x *OtExtSendResponseMessage) GetOtRecVerifyMsg() *OtReceiverVerifyMessage
- func (*OtExtSendResponseMessage) ProtoMessage()
- func (x *OtExtSendResponseMessage) ProtoReflect() protoreflect.Message
- func (x *OtExtSendResponseMessage) Reset()
- func (x *OtExtSendResponseMessage) String() string
- type OtExtSender
- type OtReceiver
- type OtReceiverMessage
- func (*OtReceiverMessage) Descriptor() ([]byte, []int)deprecated
- func (x *OtReceiverMessage) GetBi() []*ecpointgrouplaw.EcPointMessage
- func (x *OtReceiverMessage) GetSeed() []byte
- func (*OtReceiverMessage) ProtoMessage()
- func (x *OtReceiverMessage) ProtoReflect() protoreflect.Message
- func (x *OtReceiverMessage) Reset()
- func (x *OtReceiverMessage) String() string
- type OtReceiverVerifyMessage
- func (*OtReceiverVerifyMessage) Descriptor() ([]byte, []int)deprecated
- func (x *OtReceiverVerifyMessage) GetAns() []byte
- func (*OtReceiverVerifyMessage) ProtoMessage()
- func (x *OtReceiverVerifyMessage) ProtoReflect() protoreflect.Message
- func (x *OtReceiverVerifyMessage) Reset()
- func (x *OtReceiverVerifyMessage) String() string
- type OtSender
- type OtSenderMessage
- func (*OtSenderMessage) Descriptor() ([]byte, []int)deprecated
- func (x *OtSenderMessage) GetChall() [][]byte
- func (x *OtSenderMessage) GetGamma() []byte
- func (x *OtSenderMessage) GetZ() *ecpointgrouplaw.EcPointMessage
- func (*OtSenderMessage) ProtoMessage()
- func (x *OtSenderMessage) ProtoReflect() protoreflect.Message
- func (x *OtSenderMessage) Reset()
- func (x *OtSenderMessage) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFailedVerify is returned if it's failed to verify ErrFailedVerify = errors.New("failed to verify") // ErrWrongInput is returned if the input is wrong ErrWrongInput = errors.New("wrong input") )
View Source
var File_github_com_getamis_alice_crypto_ot_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type OtChallengeMessage ¶
type OtChallengeMessage struct { Challenge [][]byte `protobuf:"bytes,1,rep,name=challenge,proto3" json:"challenge,omitempty"` // contains filtered or unexported fields }
func (*OtChallengeMessage) Descriptor
deprecated
func (*OtChallengeMessage) Descriptor() ([]byte, []int)
Deprecated: Use OtChallengeMessage.ProtoReflect.Descriptor instead.
func (*OtChallengeMessage) GetChallenge ¶
func (x *OtChallengeMessage) GetChallenge() [][]byte
func (*OtChallengeMessage) ProtoMessage ¶
func (*OtChallengeMessage) ProtoMessage()
func (*OtChallengeMessage) ProtoReflect ¶
func (x *OtChallengeMessage) ProtoReflect() protoreflect.Message
func (*OtChallengeMessage) Reset ¶
func (x *OtChallengeMessage) Reset()
func (*OtChallengeMessage) String ¶
func (x *OtChallengeMessage) String() string
type OtDMatrixMessage ¶
type OtDMatrixMessage struct { D [][]byte `protobuf:"bytes,1,rep,name=D,proto3" json:"D,omitempty"` // contains filtered or unexported fields }
func (*OtDMatrixMessage) Descriptor
deprecated
func (*OtDMatrixMessage) Descriptor() ([]byte, []int)
Deprecated: Use OtDMatrixMessage.ProtoReflect.Descriptor instead.
func (*OtDMatrixMessage) GetD ¶
func (x *OtDMatrixMessage) GetD() [][]byte
func (*OtDMatrixMessage) ProtoMessage ¶
func (*OtDMatrixMessage) ProtoMessage()
func (*OtDMatrixMessage) ProtoReflect ¶
func (x *OtDMatrixMessage) ProtoReflect() protoreflect.Message
func (*OtDMatrixMessage) Reset ¶
func (x *OtDMatrixMessage) Reset()
func (*OtDMatrixMessage) String ¶
func (x *OtDMatrixMessage) String() string
type OtDMessage ¶
type OtDMessage struct { D []byte `protobuf:"bytes,1,opt,name=D,proto3" json:"D,omitempty"` // contains filtered or unexported fields }
func (*OtDMessage) Descriptor
deprecated
func (*OtDMessage) Descriptor() ([]byte, []int)
Deprecated: Use OtDMessage.ProtoReflect.Descriptor instead.
func (*OtDMessage) GetD ¶
func (x *OtDMessage) GetD() []byte
func (*OtDMessage) ProtoMessage ¶
func (*OtDMessage) ProtoMessage()
func (*OtDMessage) ProtoReflect ¶
func (x *OtDMessage) ProtoReflect() protoreflect.Message
func (*OtDMessage) Reset ¶
func (x *OtDMessage) Reset()
func (*OtDMessage) String ¶
func (x *OtDMessage) String() string
type OtExtReceiveMessage ¶
type OtExtReceiveMessage struct { OtSendMsg *OtSenderMessage `protobuf:"bytes,1,opt,name=otSendMsg,proto3" json:"otSendMsg,omitempty"` D [][]byte `protobuf:"bytes,2,rep,name=D,proto3" json:"D,omitempty"` U []*binaryfield.BinaryMessage `protobuf:"bytes,3,rep,name=u,proto3" json:"u,omitempty"` V []*binaryfield.BinaryMessage `protobuf:"bytes,4,rep,name=v,proto3" json:"v,omitempty"` // contains filtered or unexported fields }
func (*OtExtReceiveMessage) Descriptor
deprecated
func (*OtExtReceiveMessage) Descriptor() ([]byte, []int)
Deprecated: Use OtExtReceiveMessage.ProtoReflect.Descriptor instead.
func (*OtExtReceiveMessage) GetD ¶
func (x *OtExtReceiveMessage) GetD() [][]byte
func (*OtExtReceiveMessage) GetOtSendMsg ¶
func (x *OtExtReceiveMessage) GetOtSendMsg() *OtSenderMessage
func (*OtExtReceiveMessage) GetU ¶
func (x *OtExtReceiveMessage) GetU() []*binaryfield.BinaryMessage
func (*OtExtReceiveMessage) GetV ¶
func (x *OtExtReceiveMessage) GetV() []*binaryfield.BinaryMessage
func (*OtExtReceiveMessage) ProtoMessage ¶
func (*OtExtReceiveMessage) ProtoMessage()
func (*OtExtReceiveMessage) ProtoReflect ¶
func (x *OtExtReceiveMessage) ProtoReflect() protoreflect.Message
func (*OtExtReceiveMessage) Reset ¶
func (x *OtExtReceiveMessage) Reset()
func (*OtExtReceiveMessage) String ¶
func (x *OtExtReceiveMessage) String() string
type OtExtReceiver ¶
type OtExtReceiver struct { M [][]byte // 0, 1 matrix R [][]byte D [][]byte // contains filtered or unexported fields }
func NewExtReceiver ¶
func NewExtReceiver(sid []byte, r []byte, otRMsg *OtReceiverMessage) (*OtExtReceiver, error)
Note: r is the bit expression
func (*OtExtReceiver) GetOTFinalResult ¶
func (otextRec *OtExtReceiver) GetOTFinalResult(otextSendMsg *OtExtSendResponseMessage) ([][]byte, error)
func (*OtExtReceiver) GetOtExtReceiveMessage ¶
func (otextRec *OtExtReceiver) GetOtExtReceiveMessage() *OtExtReceiveMessage
type OtExtSendResponseMessage ¶
type OtExtSendResponseMessage struct { A0 [][]byte `protobuf:"bytes,1,rep,name=a0,proto3" json:"a0,omitempty"` A1 [][]byte `protobuf:"bytes,2,rep,name=a1,proto3" json:"a1,omitempty"` OtRecVerifyMsg *OtReceiverVerifyMessage `protobuf:"bytes,3,opt,name=otRecVerifyMsg,proto3" json:"otRecVerifyMsg,omitempty"` // contains filtered or unexported fields }
func (*OtExtSendResponseMessage) Descriptor
deprecated
func (*OtExtSendResponseMessage) Descriptor() ([]byte, []int)
Deprecated: Use OtExtSendResponseMessage.ProtoReflect.Descriptor instead.
func (*OtExtSendResponseMessage) GetA0 ¶
func (x *OtExtSendResponseMessage) GetA0() [][]byte
func (*OtExtSendResponseMessage) GetA1 ¶
func (x *OtExtSendResponseMessage) GetA1() [][]byte
func (*OtExtSendResponseMessage) GetOtRecVerifyMsg ¶
func (x *OtExtSendResponseMessage) GetOtRecVerifyMsg() *OtReceiverVerifyMessage
func (*OtExtSendResponseMessage) ProtoMessage ¶
func (*OtExtSendResponseMessage) ProtoMessage()
func (*OtExtSendResponseMessage) ProtoReflect ¶
func (x *OtExtSendResponseMessage) ProtoReflect() protoreflect.Message
func (*OtExtSendResponseMessage) Reset ¶
func (x *OtExtSendResponseMessage) Reset()
func (*OtExtSendResponseMessage) String ¶
func (x *OtExtSendResponseMessage) String() string
type OtExtSender ¶
type OtExtSender struct {
// contains filtered or unexported fields
}
func NewExtSender ¶
func (*OtExtSender) GetA0 ¶
func (s *OtExtSender) GetA0() [][]byte
func (*OtExtSender) GetA1 ¶
func (s *OtExtSender) GetA1() [][]byte
func (*OtExtSender) GetReceiverMessage ¶
func (s *OtExtSender) GetReceiverMessage() *OtReceiverMessage
func (*OtExtSender) Verify ¶
func (send *OtExtSender) Verify(otExtRMsg *OtExtReceiveMessage) (*OtExtSendResponseMessage, error)
type OtReceiver ¶
type OtReceiver struct {
// contains filtered or unexported fields
}
func NewReceiver ¶
func NewReceiver(sid []byte, kappa int, ell int) (*OtReceiver, error)
Receiver message:
func (*OtReceiver) GetReceiverMessage ¶
func (o *OtReceiver) GetReceiverMessage() *OtReceiverMessage
func (*OtReceiver) Response ¶
func (otR *OtReceiver) Response(otSenderMsg *OtSenderMessage) (*OtReceiverVerifyMessage, [][]byte, error)
type OtReceiverMessage ¶
type OtReceiverMessage struct { Seed []byte `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"` Bi []*ecpointgrouplaw.EcPointMessage `protobuf:"bytes,2,rep,name=bi,proto3" json:"bi,omitempty"` // contains filtered or unexported fields }
func (*OtReceiverMessage) Descriptor
deprecated
func (*OtReceiverMessage) Descriptor() ([]byte, []int)
Deprecated: Use OtReceiverMessage.ProtoReflect.Descriptor instead.
func (*OtReceiverMessage) GetBi ¶
func (x *OtReceiverMessage) GetBi() []*ecpointgrouplaw.EcPointMessage
func (*OtReceiverMessage) GetSeed ¶
func (x *OtReceiverMessage) GetSeed() []byte
func (*OtReceiverMessage) ProtoMessage ¶
func (*OtReceiverMessage) ProtoMessage()
func (*OtReceiverMessage) ProtoReflect ¶
func (x *OtReceiverMessage) ProtoReflect() protoreflect.Message
func (*OtReceiverMessage) Reset ¶
func (x *OtReceiverMessage) Reset()
func (*OtReceiverMessage) String ¶
func (x *OtReceiverMessage) String() string
type OtReceiverVerifyMessage ¶
type OtReceiverVerifyMessage struct { Ans []byte `protobuf:"bytes,1,opt,name=ans,proto3" json:"ans,omitempty"` // contains filtered or unexported fields }
func (*OtReceiverVerifyMessage) Descriptor
deprecated
func (*OtReceiverVerifyMessage) Descriptor() ([]byte, []int)
Deprecated: Use OtReceiverVerifyMessage.ProtoReflect.Descriptor instead.
func (*OtReceiverVerifyMessage) GetAns ¶
func (x *OtReceiverVerifyMessage) GetAns() []byte
func (*OtReceiverVerifyMessage) ProtoMessage ¶
func (*OtReceiverVerifyMessage) ProtoMessage()
func (*OtReceiverVerifyMessage) ProtoReflect ¶
func (x *OtReceiverVerifyMessage) ProtoReflect() protoreflect.Message
func (*OtReceiverVerifyMessage) Reset ¶
func (x *OtReceiverVerifyMessage) Reset()
func (*OtReceiverVerifyMessage) String ¶
func (x *OtReceiverVerifyMessage) String() string
type OtSender ¶
type OtSender struct {
// contains filtered or unexported fields
}
func (*OtSender) GetOtSenderMessage ¶
func (otSen *OtSender) GetOtSenderMessage() *OtSenderMessage
func (*OtSender) Verify ¶
func (otSen *OtSender) Verify(otVerifyMsg *OtReceiverVerifyMessage) error
type OtSenderMessage ¶
type OtSenderMessage struct { Z *ecpointgrouplaw.EcPointMessage `protobuf:"bytes,1,opt,name=z,proto3" json:"z,omitempty"` Chall [][]byte `protobuf:"bytes,2,rep,name=chall,proto3" json:"chall,omitempty"` Gamma []byte `protobuf:"bytes,3,opt,name=gamma,proto3" json:"gamma,omitempty"` // contains filtered or unexported fields }
func (*OtSenderMessage) Descriptor
deprecated
func (*OtSenderMessage) Descriptor() ([]byte, []int)
Deprecated: Use OtSenderMessage.ProtoReflect.Descriptor instead.
func (*OtSenderMessage) GetChall ¶
func (x *OtSenderMessage) GetChall() [][]byte
func (*OtSenderMessage) GetGamma ¶
func (x *OtSenderMessage) GetGamma() []byte
func (*OtSenderMessage) GetZ ¶
func (x *OtSenderMessage) GetZ() *ecpointgrouplaw.EcPointMessage
func (*OtSenderMessage) ProtoMessage ¶
func (*OtSenderMessage) ProtoMessage()
func (*OtSenderMessage) ProtoReflect ¶
func (x *OtSenderMessage) ProtoReflect() protoreflect.Message
func (*OtSenderMessage) Reset ¶
func (x *OtSenderMessage) Reset()
func (*OtSenderMessage) String ¶
func (x *OtSenderMessage) String() string
Click to show internal directories.
Click to hide internal directories.