Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + const DeviceSetupHookPartitionOffset + func CheckFeatures(runSetupHook RunSetupHookFunc) ([]string, error) + func DeviceSetup(runSetupHook RunSetupHookFunc, params *DeviceSetupParams) error + func DeviceUnlock(params *DeviceUnlockParams) (err error) + func DeviceUnlockKernelHookDeviceMapperBackResolver(dmUUID, dmName []byte) (dev string, ok bool) + func EncryptedDeviceMapperName(name string) string + func HasDeviceUnlock() bool + func HasRevealKey() bool + func IsHardwareEncryptedDeviceMapperName(dmName string) bool + func LockSealedKeys() error + func MockRunFDEDeviceUnlock(mock func(*DeviceUnlockRequest) ([]byte, error)) (restore func()) + func MockRunFDERevealKey(mock func(*RevealKeyRequest) ([]byte, error)) (restore func()) + func Reveal(params *RevealParams) (payload []byte, err error) + type DeviceSetupParams struct + Device string + Key []byte + PartitionName string + type DeviceUnlockParams struct + Device string + Key []byte + PartitionName string + type DeviceUnlockRequest struct + Device string + Key []byte + Op string + PartitionName string + type InitialSetupParams struct + Key []byte + KeyName string + type InitialSetupResult struct + EncryptedKey []byte + Handle *json.RawMessage + func InitialSetup(runSetupHook RunSetupHookFunc, params *InitialSetupParams) (*InitialSetupResult, error) + type RevealKeyRequest struct + Handle *json.RawMessage + KeyName string + Op string + SealedKey []byte + type RevealParams struct + Handle *json.RawMessage + SealedKey []byte + V2Payload bool + type RunSetupHookFunc func(req *SetupRequest) ([]byte, error) + type SetupRequest struct + Device string + Key []byte + KeyName string + Op string + PartitionName string