deterministicecdsa

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package deterministicecdsa contains the original ecdsa.GenerateKey before it was made non-deterministic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKey

func GenerateKey(c elliptic.Curve, rand io.Reader) (*ecdsa.PrivateKey, error)

GenerateKey generates a public and private key pair.

func Sign

func Sign(rand io.Reader, priv *ecdsa.PrivateKey, hash []byte) (r, s *big.Int, err error)

Sign signs an arbitrary length hash (which should be the result of hashing a larger message) using the private key, priv. It returns the signature as a pair of integers. The security of the private key depends on the entropy of rand.

func WrapPrivateKey

func WrapPrivateKey(privateKey *ecdsa.PrivateKey) crypto.PrivateKey

WrapPrivateKey wraps a private key so that the Sign method is deterministic

Types

This section is empty.

Jump to

Keyboard shortcuts

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