gitee.com/mirrors_u-root/u-root@v7.0.0+incompatible/pkg/tss/constants.go (about) 1 // Copyright 2020 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package tss 6 7 // TPMVersion is used to configure a preference in 8 // which TPM to use, if multiple are available. 9 type TPMVersion uint8 10 11 // TPM versions 12 const ( 13 TPMVersionAgnostic TPMVersion = iota 14 TPMVersion12 15 TPMVersion20 16 ) 17 18 const ( 19 nvPerOwnerRead = 0x00100000 20 nvPerAuthRead = 0x00200000 21 ) 22 23 // TPMInterface indicates how the client communicates 24 // with the TPM. 25 type TPMInterface uint8 26 27 // TPM interfaces 28 const ( 29 TPMInterfaceDirect TPMInterface = iota 30 TPMInterfaceKernelManaged 31 TPMInterfaceDaemonManaged 32 )