Documentation ¶
Overview ¶
Example ¶
tpm, err := transport.OpenTPM() if err != nil { log.Fatal(err) } defer tpm.Close() tpmAlgorithms := []tpm2.TPMAlgID{tpm2.TPMAlgECC, tpm2.TPMAlgRSA} sessionEncryptions := []SessionEncryption{SessionEncryptionNone} var ( sessionEncryption SessionEncryption signatureAlgorithm tpm2.TPMAlgID ) iterations := 30 parallelism := 1 for _, sessionEncryption = range sessionEncryptions { for _, signatureAlgorithm = range tpmAlgorithms { err := Signature(tpm, signatureAlgorithm, iterations, parallelism, sessionEncryption) if err != nil { slog.Debug(err.Error()) } } Hmac(tpm, iterations, parallelism, sessionEncryption) }
Output:
Index ¶
Examples ¶
Constants ¶
View Source
const ( SessionEncryptionNone SessionEncryption = "SessionEncryptionNone" SessionEncryptionReuse = "SessionEncryptionReuse" SessionEncryptionEphemeral = "SessionEncryptionEphemeral" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SessionEncryption ¶
type SessionEncryption string
Click to show internal directories.
Click to hide internal directories.