nebutils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrivateKeyToCurve25519

func PrivateKeyToCurve25519(privateKey []byte) (curvePrivate []byte)

Convert an Edwards private key to a curve25519 private key

func SaveKey

func SaveKey(directory, name string,
	keyBytes []byte) (err error)

func X25519KeyPair

func X25519KeyPair() (kpub []byte, kpriv []byte)

Create a curve25519 keypair

Types

type Config

type Config struct {
	Pki struct {
		Ca   string `yaml:"ca"`
		Cert string `yaml:"cert"`
		Key  string `yaml:"key"`
	} `yaml:"pki"`
	StaticHostmap struct {
	}
}

Jump to

Keyboard shortcuts

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