Skip to content

Commit e83c890

Browse files
committed
Fix: key size
1 parent c3f8702 commit e83c890

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/tpm2_wrap.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7380,11 +7380,6 @@ static int wolfTPM2_SignCertCb(const byte* in, word32 inLen,
73807380
#ifdef HAVE_ECC
73817381
byte sigRS[MAX_ECC_BYTES * 2];
73827382
int rsLen = (int)sizeof(sigRS);
7383-
word32 keySz;
7384-
7385-
/* Get key size for proper R/S formatting */
7386-
keySz = TPM2_GetCurveSize(
7387-
tpmCtx->key->pub.publicArea.parameters.eccDetail.curveID);
73887383

73897384
/* Sign using TPM */
73907385
rc = wolfTPM2_SignHash(tpmCtx->dev, tpmCtx->key,

0 commit comments

Comments
 (0)