ephemeralkeys

package
v10.323.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatapathSecret

func GetDatapathSecret() secrets.Secrets

GetDatapathSecret returns the secrets

func UpdateDatapathSecrets

func UpdateDatapathSecrets(s secrets.Secrets)

UpdateDatapathSecrets updates the secrets

Types

type KeyAccessor

type KeyAccessor interface {
	PrivateKey() *PrivateKey
	DecodingKeyV1() []byte
	DecodingKeyV2() []byte
}

KeyAccessor holds the ephemeral key functions

func New

func New() (KeyAccessor, error)

New creates a new key accessor

func NewWithRenewal

func NewWithRenewal() (KeyAccessor, error)

NewWithRenewal creates a new key accessor and renews it every keyInterval

type PrivateKey

type PrivateKey struct {
	*ecdsa.PrivateKey
	PrivateKeyString string
}

PrivateKey struct holds the ecdsa private key and its encoded string

Directories

Path Synopsis
Package mockephemeralkeys is a generated GoMock package.
Package mockephemeralkeys is a generated GoMock package.

Jump to

Keyboard shortcuts

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