util

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 12 Imported by: 1

Documentation

Overview

vim: ft=txt

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKeys

func CreateKeys(home string) (*[32]byte, *[64]byte, error)

CreateKeys generates and saves new keypair. If one exists - it will be overwritten (client).

func GPGKeyGripED25519 added in v1.1.0

func GPGKeyGripED25519(pk [32]byte) []byte

GPGKeyGripED25519 computes GPG keygrip for Ed25519 public keys.

func NewLogWriter added in v1.3.5

func NewLogWriter(title string, flags int, debug bool)

NewLogWriter redirects all log output depending on debug parameetr. When true all output goes to OutputDebugString and you could use debugger or Sysinternals dbgview.exe to collect it. When false - everything is discarded.

func ReadKeys

func ReadKeys(home string) (*[32]byte, *[64]byte, error)

ReadKeys returns previously generated key pair (client).

func ReadTrustedKeys

func ReadTrustedKeys(home string) (map[[32]byte][32]byte, error)

ReadTrustedKeys reads list of trusted public keys from file (server).

Types

This section is empty.

Jump to

Keyboard shortcuts

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