diff options
| author | J08nY | 2024-08-23 18:56:17 +0200 |
|---|---|---|
| committer | J08nY | 2024-08-23 18:56:17 +0200 |
| commit | 0217078cc1f10881b60be613fd4c6e0ef9677ce6 (patch) | |
| tree | 7c76dbc368960e9603d0e170efe2c490114b9e72 /docs/libraries/libtomcrypt.rst | |
| parent | d0ac8b2a760befbe6634fa0b7700ee34c648646b (diff) | |
| download | pyecsca-0217078cc1f10881b60be613fd4c6e0ef9677ce6.tar.gz pyecsca-0217078cc1f10881b60be613fd4c6e0ef9677ce6.tar.zst pyecsca-0217078cc1f10881b60be613fd4c6e0ef9677ce6.zip | |
Move libraries to separate docs.
Diffstat (limited to 'docs/libraries/libtomcrypt.rst')
| -rw-r--r-- | docs/libraries/libtomcrypt.rst | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/docs/libraries/libtomcrypt.rst b/docs/libraries/libtomcrypt.rst new file mode 100644 index 0000000..858bc2d --- /dev/null +++ b/docs/libraries/libtomcrypt.rst @@ -0,0 +1,36 @@ +libtomcrypt +=========== + +| Version: ``v1.18.2`` +| Repository: https://github.com/libtom/libtomcrypt/ +| Docs: + +Primitives +---------- + +Offers ECDH and ECDSA on the `curves <https://github.com/libtom/libtomcrypt/blob/v1.18.2/src/pk/ecc/ecc.c>`__: SECP112r1, SECP128r1, SECP160r1, P-192, P-224, P-256, P-384, P-521. + +ECDH +^^^^ + +KeyGen: + - Short-Weierstrass + - `Simple ladder <https://github.com/libtom/libtomcrypt/blob/v1.18.2/src/pk/ecc/ltc_ecc_mulmod_timing.c#L35>`__ via ``ecc_make_key -> ecc_make_key_ex -> ecc_ptmul -> ltc_ecc_mulmod_timing``. + - jacobian, `dbl-1998-hnm <https://github.com/libtom/libtomcrypt/blob/v1.18.2/src/pk/ecc/ltc_ecc_projective_dbl_point.c#L32>`__ via ltc_ecc_projective_dbl_point + - jacobian, `add-1998-hnm <https://github.com/libtom/libtomcrypt/blob/v1.18.2/src/pk/ecc/ltc_ecc_projective_add_point.c#L33>`__ 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 <https://github.com/libtom/libtomcrypt/blob/v1.18.2/src/pk/ecc/ltc_ecc_mul2add.c#L35>`__ via ``ecc_verify_hash -> _ecc_verify_hash -> ecc_mul2add`` or two separate sliding windows. + - Same coords and formulas as KeyGen. |
