tpm2

package
v0.0.0-...-50fbe42 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package tpm2 provides an ECDH implementation backed by a TPM2 module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateKey

type PrivateKey struct{}

func (*PrivateKey) DH

func (kp *PrivateKey) DH(_ dh.PublicKey) ([]byte, error)

DH performs a Diffie-Hellman calculation between the private key in the keypair and the provided public key.

func (*PrivateKey) Public

func (kp *PrivateKey) Public() (pk dh.PublicKey)

Public returns the public key of the keypair.

Jump to

Keyboard shortcuts

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