keygen

package module
v0.0.0-...-5201437 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: ISC Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ECDSA

func ECDSA(c elliptic.Curve, secret []byte) (*ecdsa.PrivateKey, error)

ECDSA generates an ECDSA key deterministically from a random secret using a procedure equivalent to that in FIPS 186-5, Appendix A.2.2.

The secret should be uniform, must be at least 128 bits long (ideally, 256 bits long), and should not be reused for other purposes.

The output MAY CHANGE until this package reaches v1.0.0.

func ECDSALegacy

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

ECDSALegacy generates an ECDSA key deterministically from a random stream using the procedure given in FIPS 186-5, Appendix A.2.1, in a way compatible with Go 1.19.

Note that ECDSALegacy may leak bits of the key through timing side-channels.

Types

This section is empty.

Jump to

Keyboard shortcuts

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