ecdh

package
v0.0.0-...-abba4c7 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ECDH               map[string]*BaseECDH
	EcdhPrimePublic, _ = hex.DecodeString("049D1423332735980EDABE7E9EA451B3395B6F35250DB8FC56F25889F628CBAE3E8E73077914071EEEBC108F4E0170057792BB17AA303AF652313D17C1AC815E79")
	EcdhSecpPublic, _  = hex.DecodeString("04928D8850673088B343264E0C6BACB8496D697799F37211DEB25BB73906CB089FEA9639B4E0260498B51A992D50813DA8")
)

Functions

This section is empty.

Types

type BaseECDH

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

func (*BaseECDH) Exange

func (e *BaseECDH) Exange(newKey []byte) []byte

func (*BaseECDH) GetPublicKey

func (e *BaseECDH) GetPublicKey() []byte

func (*BaseECDH) GetShareKey

func (e *BaseECDH) GetShareKey() []byte

type ECDHProvider

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

type EllipticCurve

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

type EllipticPoint

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

func (*EllipticPoint) Equals

func (p *EllipticPoint) Equals(other *EllipticPoint) bool

func (*EllipticPoint) IsDefault

func (p *EllipticPoint) IsDefault() bool

func (*EllipticPoint) Negate

func (p *EllipticPoint) Negate() *EllipticPoint

Jump to

Keyboard shortcuts

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