summaryrefslogtreecommitdiff
path: root/src/shared/tpm2-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-08-18 19:14:31 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-08-18 13:36:14 +0200
commitbdbb61f69ff9f0d63f204a374c49ed3b2853ff5d (patch)
treed9594ff194bbc8f4213e4741ab97fe5ba58efdeb /src/shared/tpm2-util.c
parent66e093def81d18967c412cb578c2aeecb1c33551 (diff)
downloadsystemd-bdbb61f69ff9f0d63f204a374c49ed3b2853ff5d.tar.gz
tree-wide: fix typo
Diffstat (limited to 'src/shared/tpm2-util.c')
-rw-r--r--src/shared/tpm2-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c
index 5cb6563b43..793a54a449 100644
--- a/src/shared/tpm2-util.c
+++ b/src/shared/tpm2-util.c
@@ -353,7 +353,7 @@ static int tpm2_get_best_pcr_bank(
assert_cc(TPM2_PCRS_MAX % 8 == 0);
- /* It's not enought to check how many PCRs there are, we also need to check that the 24 are
+ /* It's not enough to check how many PCRs there are, we also need to check that the 24 are
* enabled for this bank. Otherwise this TPM doesn't qualify. */
for (size_t j = 0; j < TPM2_PCRS_MAX/8; j++)
if (pcap->data.assignedPCR.pcrSelections[i].pcrSelect[j] != 0xFF) {
@@ -411,7 +411,7 @@ static int tpm2_make_pcr_session(
};
TPML_PCR_SELECTION pcr_selection = {
.count = 1,
- .pcrSelections[0].hash = TPM2_ALG_SHA256, /* overriden below, depending on TPM2 capabilities */
+ .pcrSelections[0].hash = TPM2_ALG_SHA256, /* overridden below, depending on TPM2 capabilities */
.pcrSelections[0].sizeofSelect = 3,
.pcrSelections[0].pcrSelect[0] = pcr_mask & 0xFF,
.pcrSelections[0].pcrSelect[1] = (pcr_mask >> 8) & 0xFF,