Skip to content

io.systemd.PCRExtend

TPM PCR Extension APIs

Property Value
Go package github.com/rossedman/sdvarlink/systemd/latest/pcrextend
Socket /run/systemd/io.systemd.PCRExtend
Available since systemd v257
Methods · types · errors 1 · 1 · 1

Methods

Extend

Measure some text or binary data into a PCR

func (c *Client) Extend(ctx context.Context, in ExtendIn) error

Parameters

Field Type Description
pcr ?int PCR number to extend, in range of 0…23. Either this or 'nvpcr' must be specified, not both, not neither.
nvpcr ?string NvPCR to extend, identified by a string. Either this or 'pcr' must be specified, not both, not neither.
text ?string Text string to measure. (Specify either this, or the 'data' field below, not both)
data ?string Binary data to measure, encoded in Base64. (Specify either this, or the 'text' field above, not both)
eventType ?EventType Event type to include in the (userspace) event log). This is optional, and mostly for debugging.

Types

EventType

Event type to store in event log

Value Description
phase
filesystem
volume_key
machine_id
product_id
keyslot
nvpcr_init
nvpcr_separator
dm_verity

Errors

Error Go type Description
NoSuchNvPCR NoSuchNvPCRError