diff options
author | Dan Streetman <ddstreet@ieee.org> | 2022-12-09 23:20:24 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-02-01 18:13:48 +0100 |
commit | 7bfe0a48d9df6e9488aaec2eeb5bfec051681e40 (patch) | |
tree | e71219935e8cdb0531bede023b2cec0fcb34345c /src/shared/tpm2-util.h | |
parent | Merge pull request #26219 from yuwata/localed-follow-ups (diff) | |
download | systemd-7bfe0a48d9df6e9488aaec2eeb5bfec051681e40.tar.xz systemd-7bfe0a48d9df6e9488aaec2eeb5bfec051681e40.zip |
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.h | 8 |
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; |