Skip to content

ecc_sign_hash_ex + ecc_verify_hash_ex forces linking DER/ASN.1 code #449

Closed
@karel-m

Description

@karel-m

this is an issue related to the discussion in #438

The current all-in-one ecc_sign_hash_ex and ecc_verify_hash_ex forces anyone using ECDSA to link the whole ASN.1 stuff to their binary even if they are using just RFC 7518 or RFC 5656 (ssh2) signature format.

One possible approach is to split ecc_verify_hash_ex.c into:

  • ecc_verify_hash_internal.c (only in tomcrypt_private.h)
  • ecc_verify_hash.c (this is the troublemaker depending on ASN.1 stuff)
  • ecc_sign_hash_rfc7518.c
  • ecc_sign_hash_rfc5656.c
  • ecc_sign_hash_eth27.c

Or another option:

  • ecc_verify_hash_internal.c (only in tomcrypt_private.h)
  • ecc_verify_hash.c (this is the troublemaker depending on ASN.1 stuff)
  • ecc_verify_hash_ex.c (rfc7518 + rfc5656 + eth27)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions