Versions in this module Expand all Collapse all v1 v1.0.3 Nov 23, 2023 v1.0.2 Nov 24, 2022 Changes in this version + var ErrFailedVerify = errors.New("failed to verify") + var ErrWrongInput = errors.New("wrong input") + var File_github_com_getamis_alice_crypto_ot_message_proto protoreflect.FileDescriptor + type OtChallengeMessage struct + Challenge [][]byte + func (*OtChallengeMessage) Descriptor() ([]byte, []int) + func (*OtChallengeMessage) ProtoMessage() + func (x *OtChallengeMessage) GetChallenge() [][]byte + func (x *OtChallengeMessage) ProtoReflect() protoreflect.Message + func (x *OtChallengeMessage) Reset() + func (x *OtChallengeMessage) String() string + type OtDMatrixMessage struct + D [][]byte + func (*OtDMatrixMessage) Descriptor() ([]byte, []int) + func (*OtDMatrixMessage) ProtoMessage() + func (x *OtDMatrixMessage) GetD() [][]byte + func (x *OtDMatrixMessage) ProtoReflect() protoreflect.Message + func (x *OtDMatrixMessage) Reset() + func (x *OtDMatrixMessage) String() string + type OtDMessage struct + D []byte + func (*OtDMessage) Descriptor() ([]byte, []int) + func (*OtDMessage) ProtoMessage() + func (x *OtDMessage) GetD() []byte + func (x *OtDMessage) ProtoReflect() protoreflect.Message + func (x *OtDMessage) Reset() + func (x *OtDMessage) String() string + type OtExtReceiveMessage struct + D [][]byte + OtSendMsg *OtSenderMessage + U []*binaryfield.BinaryMessage + V []*binaryfield.BinaryMessage + func (*OtExtReceiveMessage) Descriptor() ([]byte, []int) + func (*OtExtReceiveMessage) ProtoMessage() + func (x *OtExtReceiveMessage) GetD() [][]byte + func (x *OtExtReceiveMessage) GetOtSendMsg() *OtSenderMessage + func (x *OtExtReceiveMessage) GetU() []*binaryfield.BinaryMessage + func (x *OtExtReceiveMessage) GetV() []*binaryfield.BinaryMessage + func (x *OtExtReceiveMessage) ProtoReflect() protoreflect.Message + func (x *OtExtReceiveMessage) Reset() + func (x *OtExtReceiveMessage) String() string + type OtExtReceiver struct + D [][]byte + M [][]byte + R [][]byte + func NewExtReceiver(sid []byte, r []byte, otRMsg *OtReceiverMessage) (*OtExtReceiver, error) + func (otextRec *OtExtReceiver) GetOTFinalResult(otextSendMsg *OtExtSendResponseMessage) ([][]byte, error) + func (otextRec *OtExtReceiver) GetOtExtReceiveMessage() *OtExtReceiveMessage + type OtExtSendResponseMessage struct + A0 [][]byte + A1 [][]byte + OtRecVerifyMsg *OtReceiverVerifyMessage + func (*OtExtSendResponseMessage) Descriptor() ([]byte, []int) + func (*OtExtSendResponseMessage) ProtoMessage() + func (x *OtExtSendResponseMessage) GetA0() [][]byte + func (x *OtExtSendResponseMessage) GetA1() [][]byte + func (x *OtExtSendResponseMessage) GetOtRecVerifyMsg() *OtReceiverVerifyMessage + func (x *OtExtSendResponseMessage) ProtoReflect() protoreflect.Message + func (x *OtExtSendResponseMessage) Reset() + func (x *OtExtSendResponseMessage) String() string + type OtExtSender struct + func NewExtSender(sid []byte, kappa int, a0 [][]byte, a1 [][]byte) (*OtExtSender, error) + func (s *OtExtSender) GetA0() [][]byte + func (s *OtExtSender) GetA1() [][]byte + func (s *OtExtSender) GetReceiverMessage() *OtReceiverMessage + func (send *OtExtSender) Verify(otExtRMsg *OtExtReceiveMessage) (*OtExtSendResponseMessage, error) + type OtReceiver struct + func NewReceiver(sid []byte, kappa int, ell int) (*OtReceiver, error) + func (o *OtReceiver) GetReceiverMessage() *OtReceiverMessage + func (otR *OtReceiver) Response(otSenderMsg *OtSenderMessage) (*OtReceiverVerifyMessage, [][]byte, error) + type OtReceiverMessage struct + Bi []*ecpointgrouplaw.EcPointMessage + Seed []byte + func (*OtReceiverMessage) Descriptor() ([]byte, []int) + func (*OtReceiverMessage) ProtoMessage() + func (x *OtReceiverMessage) GetBi() []*ecpointgrouplaw.EcPointMessage + func (x *OtReceiverMessage) GetSeed() []byte + func (x *OtReceiverMessage) ProtoReflect() protoreflect.Message + func (x *OtReceiverMessage) Reset() + func (x *OtReceiverMessage) String() string + type OtReceiverVerifyMessage struct + Ans []byte + func (*OtReceiverVerifyMessage) Descriptor() ([]byte, []int) + func (*OtReceiverVerifyMessage) ProtoMessage() + func (x *OtReceiverVerifyMessage) GetAns() []byte + func (x *OtReceiverVerifyMessage) ProtoReflect() protoreflect.Message + func (x *OtReceiverVerifyMessage) Reset() + func (x *OtReceiverVerifyMessage) String() string + type OtSender struct + func NewSender(sid []byte, otReceiverMsg *OtReceiverMessage) (*OtSender, error) + func (otSen *OtSender) GetOtSenderMessage() *OtSenderMessage + func (otSen *OtSender) Verify(otVerifyMsg *OtReceiverVerifyMessage) error + type OtSenderMessage struct + Chall [][]byte + Gamma []byte + Z *ecpointgrouplaw.EcPointMessage + func (*OtSenderMessage) Descriptor() ([]byte, []int) + func (*OtSenderMessage) ProtoMessage() + func (x *OtSenderMessage) GetChall() [][]byte + func (x *OtSenderMessage) GetGamma() []byte + func (x *OtSenderMessage) GetZ() *ecpointgrouplaw.EcPointMessage + func (x *OtSenderMessage) ProtoReflect() protoreflect.Message + func (x *OtSenderMessage) Reset() + func (x *OtSenderMessage) String() string