extra25519

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEdLowOrder

func IsEdLowOrder(ge []byte) bool

IsLowOrder checks if the passed group element is of low order. Algorithm translated from the same source as the blacklist (see above).

func PrivateKeyToCurve25519

func PrivateKeyToCurve25519(privateKey ed25519.PrivateKey) []byte

PrivateKeyToCurve25519 converts an ed25519 private key into a corresponding curve25519 private key such that the resulting curve25519 public key will equal the result from PublicKeyToCurve25519.

returns a 64-byte curve25519 scalar

func PublicKeyToCurve25519

func PublicKeyToCurve25519(edBytes ed25519.PublicKey) ([]byte, bool)

PublicKeyToCurve25519 converts an Ed25519 public key into the curve25519 public key that would be generated from the same private key.

returns a 32-byte curve25519 point and true if valid. returns nil, false if not valid some ed25519 public keys cannot / should not be converted to curve25519.

Types

This section is empty.

Jump to

Keyboard shortcuts

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