secretstream: go.cryptoscope.co/secretstream/secrethandshake/internal/extra25519 Index | Files

package extra25519

import "go.cryptoscope.co/secretstream/secrethandshake/internal/extra25519"

blatent grep of github.com/agl/ed25519/extra25519 until we have a better solution

Index

Package Files

convert.go

func PrivateKeyToCurve25519 Uses

func PrivateKeyToCurve25519(curve25519Private *[32]byte, privateKey ed25519.PrivateKey)

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.

func PublicKeyToCurve25519 Uses

func PublicKeyToCurve25519(curve25519Public *[32]byte, publicKey ed25519.PublicKey) bool

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

Package extra25519 imports 4 packages (graph) and is imported by 3 packages. Updated 2020-03-14. Refresh now. Tools for package owners.