diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-08-12 15:12:50 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-08-12 19:54:43 +0200 |
commit | 55efb33edb592786fe36fa4d0a990fbbfbd59cc2 (patch) | |
tree | 7f7eadadb4b04243bebd7b017231a35378fb341f /src/shared/tpm2-util.c | |
parent | cryptenroll: fix memory leak (diff) | |
download | systemd-55efb33edb592786fe36fa4d0a990fbbfbd59cc2.tar.xz systemd-55efb33edb592786fe36fa4d0a990fbbfbd59cc2.zip |
tpm2-util: lower indentation level a tiny bit
Diffstat (limited to 'src/shared/tpm2-util.c')
-rw-r--r-- | src/shared/tpm2-util.c | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c index abcedde8a8..b13fe875d4 100644 --- a/src/shared/tpm2-util.c +++ b/src/shared/tpm2-util.c @@ -280,17 +280,15 @@ static int tpm2_make_primary( .type = TPM2_ALG_ECC, .nameAlg = TPM2_ALG_SHA256, .objectAttributes = TPMA_OBJECT_RESTRICTED|TPMA_OBJECT_DECRYPT|TPMA_OBJECT_FIXEDTPM|TPMA_OBJECT_FIXEDPARENT|TPMA_OBJECT_SENSITIVEDATAORIGIN|TPMA_OBJECT_USERWITHAUTH, - .parameters = { - .eccDetail = { - .symmetric = { - .algorithm = TPM2_ALG_AES, - .keyBits.aes = 128, - .mode.aes = TPM2_ALG_CFB, - }, - .scheme.scheme = TPM2_ALG_NULL, - .curveID = TPM2_ECC_NIST_P256, - .kdf.scheme = TPM2_ALG_NULL, + .parameters.eccDetail = { + .symmetric = { + .algorithm = TPM2_ALG_AES, + .keyBits.aes = 128, + .mode.aes = TPM2_ALG_CFB, }, + .scheme.scheme = TPM2_ALG_NULL, + .curveID = TPM2_ECC_NIST_P256, + .kdf.scheme = TPM2_ALG_NULL, }, }, }; @@ -300,16 +298,14 @@ static int tpm2_make_primary( .type = TPM2_ALG_RSA, .nameAlg = TPM2_ALG_SHA256, .objectAttributes = TPMA_OBJECT_RESTRICTED|TPMA_OBJECT_DECRYPT|TPMA_OBJECT_FIXEDTPM|TPMA_OBJECT_FIXEDPARENT|TPMA_OBJECT_SENSITIVEDATAORIGIN|TPMA_OBJECT_USERWITHAUTH, - .parameters = { - .rsaDetail = { - .symmetric = { - .algorithm = TPM2_ALG_AES, - .keyBits.aes = 128, - .mode.aes = TPM2_ALG_CFB, - }, - .scheme.scheme = TPM2_ALG_NULL, - .keyBits = 2048, + .parameters.rsaDetail = { + .symmetric = { + .algorithm = TPM2_ALG_AES, + .keyBits.aes = 128, + .mode.aes = TPM2_ALG_CFB, }, + .scheme.scheme = TPM2_ALG_NULL, + .keyBits = 2048, }, }, }; |