ecdh

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Unlicense Imports: 4 Imported by: 0

Documentation

Overview

Package ecdh is provides a function to take a secp256k1 public and private key pair to generate a shared secret that the corresponding opposite half from the counterparty can use to generate the same cipher.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compute

func Compute(prv *prv.Key, pub *pub.Key) sha256.Hash

Compute computes an Elliptic Curve Diffie-Hellman shared secret that can be decrypted by the holder of the private key matching the public key provided.

Types

This section is empty.

Jump to

Keyboard shortcuts

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