Documentation
¶
Index ¶
- type HMQV
- func (mqv *HMQV) ReceiverOnePassAgree(epk *PublicKey, receiverSK *PrivateKey, senderPK *PublicKey) (*ReceiverOnePassAgreement, error)
- func (mqv *HMQV) ReceiverTwoPassAgree(rand io.Reader, receiverSK *PrivateKey, o *ReceiverOnePassAgreement) (*ReceiverTwoPassAgreement, error)
- func (mqv *HMQV) SenderOnePassAgree(rand io.Reader, senderSK *PrivateKey, receiverPK *PublicKey) (*SenderOnePassAgreement, error)
- func (mqv *HMQV) SenderTwoPassAgree(epk *PublicKey, o *SenderOnePassAgreement) (*SenderTwoPassAgreement, error)
- type PrivateKey
- type PublicKey
- type ReceiverOnePassAgreement
- type ReceiverTwoPassAgreement
- type SenderOnePassAgreement
- type SenderTwoPassAgreement
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 (*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 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
}
Click to show internal directories.
Click to hide internal directories.