package
1.12.2
Repository: https://github.com/canonical/go-tpm2.git
Documentation: pkg.go.dev

# Functions

ComputeQualifiedName computes the qualified name of an object from the specified qualified name of a root object and a list of ancestor objects.
ComputeQualifiedNameInHierarchy computes the qualified name of an object protected in the specified hierarchy from a list of ancestor objects.
CreateImportable creates a duplication object that can be imported in to a TPM with the [tpm2.TPMContext.Import] command from the supplied sensitive area.
MakeCredential performs the duties of a certificate authority in order to create an activation credential.
NewDerivationParentTemplate returns a template for a derivation parent.
NewECCAttestationKeyTemplate returns a template for a ECC attestation key.
NewECCKeyTemplate returns a template for a ECC key with the specicied usage.
NewECCPublicKey returns a public area for the supplied elliptic key which can be used to verify signatures.
NewECCStorageKeyTemplate returns a template for a ECC storage key.
NewHMACKey returns a public and sensitive area for the supplied HMAC key with the specified auth value.
NewHMACKeyTemplate returns a template for a HMAC key.
NewRSAAttestationKeyTemplate returns a template for a RSA attestation key.
NewRSAKeyTemplate returns a template for a RSA key with the specicied usage.
NewRSAPublicKey returns a public area for the supplied RSA key which can be used to verify signatures.
NewRSAStorageKeyTemplate returns a template for a RSA storage key.
NewSealedObject returns a public and sensitive area for a sealed data object containing the supplied data and with the specified auth value.
NewSealedObjectTemplate returns a template for a sealed object.
NewSymmetricKey returns a public and sensitive area for the supplied symmetric key with the specified usage and auth value.
NewSymmetricKeyTemplate returns a template for a symmetric key with the specicied usage.
NewSymmetricStorageKeyTemplate returns a template for a symmetric storage key.
UnwrapDuplicated unwraps the supplied duplication object and returns the corresponding sensitive area.
WithAdminAuthMode returns an option that specifies the supplied mode should be used for authorization with the admin role.
WithAuthPolicy returns an option that sets the specified authorization policy digest.
WithDerivationScheme returns an option for the specified derivation scheme.
WithDictionaryAttackProtection returns an option that enables DA protection for an object.
WithDuplicationMode returns an option for the specified duplication mode, which describes whether an object can be duplicated.
WithECCCurve returns an option for the specified elliptic curve.
WithECCScheme returns an option for the specified ECC scheme.
WithECCUnique returns an option for the specified public identity.
WithExternalSensitiveData returns an option that indicates the sensitive data for an object was or is to be generated outside of the TPM.
WithHMACDigest returns an option for the specified HMAC digest algorithm.
WithInternalSensitiveData returns an option that indicates the sensitive data for an object was or is to be generated by the TPM.
WithKeyedHashUnique returns an option for the specified public identity.
WithNameAlg returns an option for the specified name algorithm.
WithoutDictionaryAttackProtection returns an option that disables DA protection for an object.
WithProtectionGroupMode returns an option for the specified protection group mode, which describes the hierarchy that an object is created within.
WithProtectionGroupModeFromParent returns an option that sets the protection group mode based on the attributes of the supplied parent public area.
WithRSAKeyBits returns an option for the specified RSA key size in bits.
WithRSAParams returns an option for the specified RSA key size in bits and the specified pbulic exponent.
WithRSAScheme returns an option for the specified RSA scheme.
WithRSAUnique returns an option for the specified public identity.
WithSymmetricScheme returns an option for the specified symmetric mode.
WithSymmetricUnique returns an option for the specified public identity.
WithUserAuthMode returns an option that specifies the supplied mode should be used for authorization with the user role.

# Constants

AllowAuthValue indicates that an object's auth value can be used for authorization with a passphrase or HMAC session, in addition to a policy session.
Duplicable indicates that the protection group is duplicable.
DuplicableEncrypted indicates that the protection group is duplicable with encryption.
DuplicationRoot indicates that the object is a duplication root.
DuplicationRootEncrypted indicates that the object is a duplication root and duplication requires encryption.
FixedParent indicates that the object cannot be duplicated directory.
NonDuplicable indicates that the protection group is not duplicable.
RequirePolicy indicates that only a policy session can be used for authorization.
UsageDecrypt indicates that a key can be used for decryption.
UsageEncrypt indicates that a key can be used for encryption.
UsageKeyAgreement indicates that a key can be used for key agreement.
UsageSign indicates that a key can be used for signing.

# Interfaces

Named is some type that represents an object.

# Type aliases

AuthMode represents an authorization mode for an object.
DuplicationMode describes whether an object can be duplicated directly.
ProtectionGroupMode describes the protection group that an object is created within.
PublicTemplateOption provides a way to customize the parameters of a public area or public template.
Usage describes the usage of a key.