dh

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DHNIKE = &dhNIKE{}

DHNIKE is essentially a factory type that builds various types related to the DiffieHellman NIKE interface implementation.

Functions

This section is empty.

Types

type PrivateKey

type PrivateKey struct {
	// contains filtered or unexported fields
}

func (*PrivateKey) Bytes

func (p *PrivateKey) Bytes() []byte

func (*PrivateKey) CyclicInt

func (p *PrivateKey) CyclicInt() *cyclic.Int

func (*PrivateKey) DeriveSecret

func (p *PrivateKey) DeriveSecret(pubKey nike.PublicKey) []byte

func (*PrivateKey) FromBytes

func (p *PrivateKey) FromBytes(data []byte) error

func (*PrivateKey) Reset

func (p *PrivateKey) Reset()

func (*PrivateKey) Scheme

func (p *PrivateKey) Scheme() nike.Nike

type PublicKey

type PublicKey struct {
	// contains filtered or unexported fields
}

func (*PublicKey) Bytes

func (p *PublicKey) Bytes() []byte

func (*PublicKey) CyclicInt

func (p *PublicKey) CyclicInt() *cyclic.Int

func (*PublicKey) FromBytes

func (p *PublicKey) FromBytes(data []byte) error

func (*PublicKey) Reset

func (p *PublicKey) Reset()

func (*PublicKey) Scheme

func (p *PublicKey) Scheme() nike.Nike

Jump to

Keyboard shortcuts

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