diff options
author | Morten Linderud <morten@linderud.pw> | 2024-02-19 19:36:22 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2024-04-17 16:40:52 -0400 |
commit | 0daef68db054aa825623646a37faa2ab5fdd9a22 (patch) | |
tree | d5711febd4c4e9044c441580fd9e45ba4481a2d0 | |
parent | 32620ef273481b16e6d197cf980f8c58abdf50ea (diff) | |
download | openssl_tpm2_engine-0daef68db054aa825623646a37faa2ab5fdd9a22.tar.gz |
tpm2-common: remove misleading comment from the ECC template
TPM2_Sign is actually used for ECC keys.
Signed-off-by: Morten Linderud <morten@linderud.pw>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
-rw-r--r-- | src/libcommon/tpm2-common.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libcommon/tpm2-common.c b/src/libcommon/tpm2-common.c index ee1d9d7..a3537cf 100644 --- a/src/libcommon/tpm2-common.c +++ b/src/libcommon/tpm2-common.c @@ -2988,9 +2988,6 @@ void tpm2_public_template_ecc(TPMT_PUBLIC *pub, TPMI_ECC_CURVE curve) { pub->type = TPM_ALG_ECC; pub->nameAlg = name_alg; - /* note: all our keys are decrypt only. This is because - * we use the TPM2_RSA_Decrypt operation for both signing - * and decryption (see e_tpm2.c for details) */ VAL(pub->objectAttributes) = TPMA_OBJECT_SIGN | TPMA_OBJECT_DECRYPT | |