From 7e050e2952c5049a8ff775c5c94203eccaef0c0f Mon Sep 17 00:00:00 2001 From: Doug Engert Date: Mon, 6 Jan 2025 08:49:10 -0600 Subject: [PATCH] pkcs15-sec.c - simplify code, remove 2 lines On branch X25519-improvements-2 Changes to be committed: modified: pkcs15-sec.c --- src/libopensc/pkcs15-sec.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libopensc/pkcs15-sec.c b/src/libopensc/pkcs15-sec.c index 28560c8fc1..262168166f 100644 --- a/src/libopensc/pkcs15-sec.c +++ b/src/libopensc/pkcs15-sec.c @@ -630,8 +630,6 @@ int sc_pkcs15_compute_signature(struct sc_pkcs15_card *p15card, modlen = BYTES4BITS(prkey->modulus_length) * 2; break; case SC_PKCS15_TYPE_PRKEY_EC: - modlen = BYTES4BITS(prkey->field_length) * 2; /* 2*nLen */ - break; case SC_PKCS15_TYPE_PRKEY_EDDSA: case SC_PKCS15_TYPE_PRKEY_XEDDSA: modlen = BYTES4BITS(prkey->field_length) * 2; /* 2*nLen */