ecdh

package
v0.0.0-...-d8d7f37 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSharedKey

func GetSharedKey(privateKey *PrivateKey, publicKey *string) (*string, error)

Types

type Keypair

type Keypair struct {
	PrivateKey *PrivateKey `json:"privateKey"`
	PublicKey  *string     `json:"publicKey"`
}

func GenerateKeys

func GenerateKeys() (*Keypair, error)

type PrivateKey

type PrivateKey struct {
	PublicKey PublicKey `json:"publicKey"`
	D         *big.Int  `json:"d"`
}

type PublicKey

type PublicKey struct {
	X *big.Int `json:"x"`
	Y *big.Int `json:"y"`
}

Jump to

Keyboard shortcuts

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