key_manager

package
v0.0.0-...-f3f2e40 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyManager

type KeyManager struct {
	sync.Mutex
	// KeyData contains validFrom|validUntil|pubkey|signature
	// the client will verify the signature (made with the masterKey)
	KeyData []byte
	// PrivKey is the ephemeral key used to sign a session. Also used
	// in ECDH with the the client to derive symmetric keys to encrypt the communication
	PrivKey *ecdsa.PrivateKey

	// MasterPubKeyPEM is masterKey public key in PEM format
	MasterPubKeyPEM []byte
	// contains filtered or unexported fields
}

func (*KeyManager) GetActiveKey

func (k *KeyManager) GetActiveKey() (ecdsa.PrivateKey, []byte)

GetActiveKey returns the currently active signing key as well as KeyData associated with it

func (*KeyManager) Init

func (k *KeyManager) Init()

Jump to

Keyboard shortcuts

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