Documentation
¶
Index ¶
- func MkECDSA(t *testing.T, a elliptic.Curve) ecdsa.PrivateKey
- func MkImportableKey(t *testing.T, tpm transport.TPMCloser, keytype tpm2.TPMAlgID, bits int, ...) (*keyfile.TPMKey, error)
- func MkImportableToLoadableKey(t *testing.T, tpm transport.TPMCloser, keytype tpm2.TPMAlgID, bits int, ...) (*keyfile.TPMKey, error)
- func MkKey(t *testing.T, tpm transport.TPMCloser, keytype tpm2.TPMAlgID, bits int, ...) (*keyfile.TPMKey, error)
- func MkRSA(t *testing.T, bits int) rsa.PrivateKey
- func MustRand(size int) []byte
- type KeyFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MkImportableKey ¶
func MkImportableKey(t *testing.T, tpm transport.TPMCloser, keytype tpm2.TPMAlgID, bits int, ownerauth []byte, userauth []byte, comment string) (*keyfile.TPMKey, error)
Helper to make an importable key
func MkImportableToLoadableKey ¶
func MkImportableToLoadableKey(t *testing.T, tpm transport.TPMCloser, keytype tpm2.TPMAlgID, bits int, ownerauth []byte, userauth []byte, comment string) (*keyfile.TPMKey, error)
Ensure we can try the entire conversion flows from imported key -> loadable key
Types ¶
Click to show internal directories.
Click to hide internal directories.