diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-10-21 16:17:39 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-10-21 20:34:55 +0200 |
commit | b98c4f1d48124f7152a28cda4bfc9a9dd3136a65 (patch) | |
tree | d8df854535df52c9786f32b1f9482bd4e3f41a81 /src/shared/tpm2-util.h | |
parent | Merge pull request #29382 from YHNdnzj/sleep-round-two (diff) | |
download | systemd-b98c4f1d48124f7152a28cda4bfc9a9dd3136a65.tar.xz systemd-b98c4f1d48124f7152a28cda4bfc9a9dd3136a65.zip |
tpm2-util: rename tpm2_calculate_name() → tpm2_calculate_pubkey_name()
We'll soon have a function for determining the name of an NV index,
hence let's rename the existing function for the same of a public key to
make clear it's about public keys only.
Diffstat (limited to 'src/shared/tpm2-util.h')
-rw-r--r-- | src/shared/tpm2-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/tpm2-util.h b/src/shared/tpm2-util.h index f593915449..c57af8858d 100644 --- a/src/shared/tpm2-util.h +++ b/src/shared/tpm2-util.h @@ -192,7 +192,7 @@ int tpm2_read_public(Tpm2Context *c, const Tpm2Handle *session, const Tpm2Handle int tpm2_pcr_read(Tpm2Context *c, const TPML_PCR_SELECTION *pcr_selection, Tpm2PCRValue **ret_pcr_values, size_t *ret_n_pcr_values); int tpm2_pcr_read_missing_values(Tpm2Context *c, Tpm2PCRValue *pcr_values, size_t n_pcr_values); -int tpm2_calculate_name(const TPMT_PUBLIC *public, TPM2B_NAME *ret_name); +int tpm2_calculate_pubkey_name(const TPMT_PUBLIC *public, TPM2B_NAME *ret_name); int tpm2_calculate_policy_auth_value(TPM2B_DIGEST *digest); int tpm2_calculate_policy_authorize(const TPM2B_PUBLIC *public, const TPM2B_DIGEST *policy_ref, TPM2B_DIGEST *digest); int tpm2_calculate_policy_pcr(const Tpm2PCRValue *pcr_values, size_t n_pcr_values, TPM2B_DIGEST *digest); |