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.
Click to show internal directories.
Click to hide internal directories.