mirror of
https://github.com/systemd/systemd.git
synced 2025-02-25 21:57:32 +03:00
tpm2: wrap (7) in UINT32_C()
This commit is contained in:
parent
26d8d71fa5
commit
81e3d37211
@ -249,7 +249,7 @@ int tpm2_make_luks2_json(int keyslot, uint32_t hash_pcr_mask, uint16_t pcr_bank,
|
||||
int tpm2_parse_luks2_json(JsonVariant *v, int *ret_keyslot, uint32_t *ret_hash_pcr_mask, uint16_t *ret_pcr_bank, void **ret_pubkey, size_t *ret_pubkey_size, uint32_t *ret_pubkey_pcr_mask, uint16_t *ret_primary_alg, void **ret_blob, size_t *ret_blob_size, void **ret_policy_hash, size_t *ret_policy_hash_size, void **ret_salt, size_t *ret_salt_size, void **ret_srk_buf, size_t *ret_srk_buf_size, TPM2Flags *ret_flags);
|
||||
|
||||
/* Default to PCR 7 only */
|
||||
#define TPM2_PCR_INDEX_DEFAULT (7)
|
||||
#define TPM2_PCR_INDEX_DEFAULT UINT32_C(7)
|
||||
#define TPM2_PCR_MASK_DEFAULT INDEX_TO_MASK(uint32_t, TPM2_PCR_INDEX_DEFAULT)
|
||||
|
||||
/* We want the helpers below to work also if TPM2 libs are not available, hence define these four defines if
|
||||
|
Loading…
x
Reference in New Issue
Block a user