Files
snapd/gadget
Michael Vogt 769f27fcff boot,device: extract SealedKey helpers from boot to device
* boot,gadget: add new `device.TpmLockoutAuthUnder()` and use it

Create a helper in `gadget/device/encrypt.go:TpmLockoutAuthUnder()`
that is used to retrieve the path of the TPM lockout auth data.

This is then used in the boot package and will also be used when
reseting the DA lockout counter.

This is split out of PR#11935.

* boot,device: extract SealedKey helpers from boot to device

The DA lockout reset code will need to be able to read the
`SealedKeysMethod` so this commit moves the code to read/write
the sealing methods from `boot` to `gadget/device` (just like
we did for e.g. `{Has,Read}EncryptionMarkers`).

This is split out of PR #11935 and build on top of PR #11946

* boot: revert use of device.TpmLockoutAuthUnder() in tests

* gadget/device: rename tests as suggested by Alberto (thanks!)
2022-07-12 12:57:29 +02:00
..
2021-08-26 18:24:02 +01:00
2022-06-23 12:21:39 +02:00