Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedCurve = errors.New("unsupported curve") ErrUnmarshal = errors.New("failed to unmarshal key") )
Functions ¶
This section is empty.
Types ¶
type InMemoryPrivateKey ¶
type InMemoryPrivateKey interface {
// Zero-ize the secret in memory
Drop()
}
type PrivateKey ¶
type PublicKey ¶
func (*PublicKey) MarshalBinary ¶
func (*PublicKey) MarshalText ¶
func (*PublicKey) UnmarshalBinary ¶
func (*PublicKey) UnmarshalText ¶
type StaticKeypair ¶
type StaticKeypair struct {
PrivateKey
}
func (*StaticKeypair) DropPrivate ¶
func (kp *StaticKeypair) DropPrivate()
func (*StaticKeypair) MarshalBinary ¶
func (kp *StaticKeypair) MarshalBinary() ([]byte, error)
func (*StaticKeypair) UnmarshalBinary ¶
func (kp *StaticKeypair) UnmarshalBinary([]byte) error
Directories ¶
Path | Synopsis |
---|---|
Package sw provides an ECDH implementation backed by an Apple Secure Enclave.
|
Package sw provides an ECDH implementation backed by an Apple Secure Enclave. |
Package openpgp provides an ECDH implementation backed by an OpenPGP card.
|
Package openpgp provides an ECDH implementation backed by an OpenPGP card. |
Package pkcs11 provides an ECDH implementation backed by an PKCS11 compatible token or HSM.
|
Package pkcs11 provides an ECDH implementation backed by an PKCS11 compatible token or HSM. |
Package sw implements ECDH in pure software / Go
|
Package sw implements ECDH in pure software / Go |
Package tpm2 provides an ECDH implementation backed by a TPM2 module.
|
Package tpm2 provides an ECDH implementation backed by a TPM2 module. |
Click to show internal directories.
Click to hide internal directories.