summaryrefslogtreecommitdiff
path: root/src/shared/tpm2-util.h
diff options
context:
space:
mode:
authorDan Streetman <ddstreet@ieee.org>2022-12-09 17:20:24 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-02-01 18:13:48 +0100
commit7bfe0a48d9df6e9488aaec2eeb5bfec051681e40 (patch)
treee71219935e8cdb0531bede023b2cec0fcb34345c /src/shared/tpm2-util.h
parent92fc007902073d25bd6c9749d61a82a98db29e4f (diff)
downloadsystemd-7bfe0a48d9df6e9488aaec2eeb5bfec051681e40.tar.gz
tpm2: rename tpm2 alg id<->string functions
The 'pcr_bank' functions operate on hash algs, and are not specific to the PCR banks, while the 'primary_alg' functions operate on asymmetric algs, and are not specific to primary keys.
Diffstat (limited to 'src/shared/tpm2-util.h')
-rw-r--r--src/shared/tpm2-util.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/tpm2-util.h b/src/shared/tpm2-util.h
index 04efd78638..99b258c290 100644
--- a/src/shared/tpm2-util.h
+++ b/src/shared/tpm2-util.h
@@ -126,11 +126,11 @@ static inline bool TPM2_PCR_MASK_VALID(uint64_t pcr_mask) {
#define TPM2_ALG_RSA 0x1
#endif
-const char *tpm2_pcr_bank_to_string(uint16_t bank);
-int tpm2_pcr_bank_from_string(const char *bank);
+const char *tpm2_hash_alg_to_string(uint16_t alg);
+int tpm2_hash_alg_from_string(const char *alg);
-const char *tpm2_primary_alg_to_string(uint16_t alg);
-int tpm2_primary_alg_from_string(const char *alg);
+const char *tpm2_asym_alg_to_string(uint16_t alg);
+int tpm2_asym_alg_from_string(const char *alg);
typedef struct {
uint32_t search_pcr_mask;