dh

package
v0.0.0-...-69f1810 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsensusCipher

func ConsensusCipher(local crypto.PrivateKey, remote crypto.Token) crypto.Cipher

func ConsensusKey

func ConsensusKey(local crypto.PrivateKey, remote crypto.Token) []byte

func NewEphemeralKey

func NewEphemeralKey() (crypto.PrivateKey, crypto.Token)

Types

type Party

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

func NewEphemeralRequest

func NewEphemeralRequest() *Party

func NewEphemeralResponse

func NewEphemeralResponse(aliceKeyX []byte) *Party

func (*Party) Cipher

func (p *Party) Cipher() crypto.Cipher

func (*Party) CipherNonce

func (p *Party) CipherNonce() crypto.CipherNonce

func (*Party) IncorporateResponse

func (p *Party) IncorporateResponse(otherKeyX []byte) bool

Directories

Path Synopsis
Package curve25519 provides an implementation of the X25519 function, which performs scalar multiplication on the elliptic curve known as Curve25519.
Package curve25519 provides an implementation of the X25519 function, which performs scalar multiplication on the elliptic curve known as Curve25519.
internal/field
Package field implements fast arithmetic modulo 2^255-19.
Package field implements fast arithmetic modulo 2^255-19.

Jump to

Keyboard shortcuts

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