key

package
v0.97.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: BSD-3-Clause Imports: 1 Imported by: 149

Documentation

Overview

Package key defines some types related to curve25519 keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Private

type Private [32]byte

Private represents a curve25519 private key.

func (Private) B32

func (k Private) B32() *[32]byte

B32 returns k as the *[32]byte type that's used by the golang.org/x/crypto packages. This allocates; it might not be appropriate for performance-sensitive paths.

func (Private) IsZero

func (p Private) IsZero() bool

Private reports whether p is the zero value.

func (Private) Public

func (k Private) Public() Public

type Public

type Public [32]byte

Public represents a curve25519 public key.

func (Public) B32

func (k Public) B32() *[32]byte

B32 returns k as the *[32]byte type that's used by the golang.org/x/crypto packages. This allocates; it might not be appropriate for performance-sensitive paths.

func (Public) IsZero

func (p Public) IsZero() bool

Public reports whether p is the zero value.

Jump to

Keyboard shortcuts

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