libtomcrypt

Version: v1.18.2
Docs:

Primitives

Offers ECDH and ECDSA on the curves: SECP112r1, SECP128r1, SECP160r1, P-192, P-224, P-256, P-384, P-521.

ECDH

KeyGen:
  • Short-Weierstrass

  • Simple ladder via ecc_make_key -> ecc_make_key_ex -> ecc_ptmul -> ltc_ecc_mulmod_timing.

  • jacobian, dbl-1998-hnm via ltc_ecc_projective_dbl_point

  • jacobian, add-1998-hnm via ltc_ecc_projective_add_point

Derive:
  • Same as Keygen via ecc_shared_secret -> ecc_ptmul -> ltc_ecc_mulmod_timing.

ECDSA

Keygen:
  • Same as ECDH.

Sign:
  • Same as Keygen via ecc_sign_hash -> _ecc_sign_hash -> ecc_make_key_ex.

Verify:
  • Shamir’s trick via ecc_verify_hash -> _ecc_verify_hash -> ecc_mul2add or two separate sliding windows.

  • Same coords and formulas as KeyGen.