ecdh

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: BSD-3-Clause Imports: 1 Imported by: 1

Documentation

Overview

Package ecdh defines an additional interface that will be added to the crypto/ecdh package in Go 1.26+.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Curve added in v0.4.0

type Curve = ecdh.Curve

func P256 added in v0.4.0

func P256() Curve

func P384 added in v0.4.0

func P384() Curve

func P521 added in v0.4.0

func P521() Curve

func X25519 added in v0.4.0

func X25519() Curve

type KeyExchanger

type KeyExchanger interface {
	PublicKey() *ecdh.PublicKey
	Curve() ecdh.Curve
	ECDH(*ecdh.PublicKey) ([]byte, error)
}

KeyExchanger is an interface for an opaque private key that can be used for key exchange operations. For example, an ECDH key kept in a hardware module.

It is implemented by ecdh.PrivateKey.

type PrivateKey added in v0.4.0

type PrivateKey = ecdh.PrivateKey

type PublicKey added in v0.4.0

type PublicKey = ecdh.PublicKey

Jump to

Keyboard shortcuts

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