Skip to content

Commit

Permalink
pkcs15-sec.c - simplify code, remove 2 lines
Browse files Browse the repository at this point in the history
 On branch X25519-improvements-2
 Changes to be committed:
	modified:   pkcs15-sec.c
  • Loading branch information
dengert committed Jan 6, 2025
1 parent 8d210f1 commit f717b57
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/libopensc/pkcs15-sec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit f717b57

Please sign in to comment.