hmqv

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HMQV

type HMQV struct {
	// contains filtered or unexported fields
}

func New

func New(senderID []byte, receiverID []byte) *HMQV

func (*HMQV) ReceiverOnePassAgree

func (mqv *HMQV) ReceiverOnePassAgree(
	epk *PublicKey,
	receiverSK *PrivateKey,
	senderPK *PublicKey,
) (*ReceiverOnePassAgreement, error)

func (*HMQV) ReceiverTwoPassAgree

func (mqv *HMQV) ReceiverTwoPassAgree(
	rand io.Reader,
	receiverSK *PrivateKey,
	o *ReceiverOnePassAgreement,
) (*ReceiverTwoPassAgreement, error)

func (*HMQV) SenderOnePassAgree

func (mqv *HMQV) SenderOnePassAgree(
	rand io.Reader,
	senderSK *PrivateKey,
	receiverPK *PublicKey,
) (*SenderOnePassAgreement, error)

func (*HMQV) SenderTwoPassAgree

func (mqv *HMQV) SenderTwoPassAgree(epk *PublicKey, o *SenderOnePassAgreement) (*SenderTwoPassAgreement, error)

type PrivateKey

type PrivateKey struct {
	// contains filtered or unexported fields
}

func NewPrivateKey

func NewPrivateKey(sk ed25519.PrivateKey) (*PrivateKey, error)

func (*PrivateKey) PublicKey

func (sk *PrivateKey) PublicKey() *PublicKey

type PublicKey

type PublicKey struct {
	*edwards25519.Point
}

func NewPublicKey

func NewPublicKey(b []byte) (*PublicKey, error)

type ReceiverOnePassAgreement

type ReceiverOnePassAgreement struct {
	Sigma *edwards25519.Point // (YB^e)^a^f
	// contains filtered or unexported fields
}

type ReceiverTwoPassAgreement

type ReceiverTwoPassAgreement struct {
	Sigma *edwards25519.Point
	Epk   *PublicKey
}

type SenderOnePassAgreement

type SenderOnePassAgreement struct {
	Sigma *edwards25519.Point // A^z^f
	Epk   *PublicKey          // Y = g^y
	// contains filtered or unexported fields
}

type SenderTwoPassAgreement

type SenderTwoPassAgreement struct {
	Sigma *edwards25519.Point
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL