Steffen Jaeckel
229f540c48
Don't print warning in case LTC_NO_TEST is defined.
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-05-03 11:11:39 +02:00
Steffen Jaeckel
0834f876cd
Split up ec25519/448 tests.
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-05-03 11:11:39 +02:00
Steffen Jaeckel
811b1a6c14
Introduce LTC_NOP_TEST()
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-05-03 11:11:39 +02:00
Steffen Jaeckel
45f95768da
Merge pull request #747 from libtom/pr/wycheproof-padding_depad
...
padding_depad - reject zero-length input (except for LTC_PAD_ZERO)
2026-04-30 11:42:08 +02:00
Steffen Jaeckel
180ffcdd65
Merge pull request #748 from libtom/pr/wycheproof-ecdh
...
ECC failing wycheproof tests
2026-04-30 11:41:18 +02:00
Karel Miko
e312fffaf2
fix ECC failing wycheproof tests
2026-04-30 11:41:04 +02:00
Karel Miko
7c0e52114e
ecc - failing wycheproof tests
2026-04-30 11:41:04 +02:00
Steffen Jaeckel
2317c13d62
Merge pull request #749 from libtom/pr/wycheproof-ed448
...
Ed448/X448 failing wycheproof tests
2026-04-30 08:46:24 +02:00
Karel Miko
176c4827fc
fix Ed448/X448 failing wycheproof tests
2026-04-30 08:46:13 +02:00
Karel Miko
8dd6ecfd20
ed448/x448 - failing wycheproof tests
2026-04-30 08:46:13 +02:00
Steffen Jaeckel
284129706a
Merge pull request #746 from libtom/pr/wycheproof-frp256v1
...
add FRP256v1 - French governmental ECC curve
2026-04-30 08:45:07 +02:00
Karel Miko
8a1b70a040
add FRP256v1 (French governmental ECC curve referenced in wycheproof test suite)
2026-04-30 08:44:46 +02:00
Steffen Jaeckel
888307876a
Merge pull request #750 from libtom/pr/wycheproof-decode_bit_string
...
wycheproof - fix failing ASN.1 BIT STRING related test
2026-04-30 08:43:45 +02:00
Karel Miko
577f2bc155
fix failing wycheproof test (ecdh_brainpoolP224r1_test.json tcId=787) ASN.1 BIT STRING related
2026-04-29 20:07:43 +02:00
Karel Miko
8ea53b4eaf
padding_depad - reject zero-length input (except for LTC_PAD_ZERO)
2026-04-29 14:33:20 +02:00
Steffen Jaeckel
6e699f964d
Merge pull request #410 from libtom/pr/fix-LTC_MECC_FP
...
fix LTC_MECC_FP
2026-04-29 10:56:18 +02:00
Steffen Jaeckel
9e1c6174fc
Add CI jobs with ECC FP enabled.
...
We replace the PTHREAD job with `ECC_FP+PTHREAD` since PTHREAD is only
relevant for ECC_FP and the PRNG's.
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-29 10:53:40 +02:00
Steffen Jaeckel
576258b5fc
Fix ECC FP API.
...
We have to return an error code when working with the mutex API.
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-29 10:53:40 +02:00
Steffen Jaeckel
1f28017b10
Fix typo
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-29 10:53:40 +02:00
Steffen Jaeckel
22586373c3
Fix potential unsigned underflow.
...
Running the `timing` demo with `LTC_MECC_FP` enabled gave a segfault,
which Valgrind narrowed down to
```
==135594== Invalid read of size 1
==135594== at 0x49298C: ss_accel_fp_mul2add (ltc_ecc_fp_mulmod.c:1007)
==135594== by 0x4931C1: ltc_ecc_fp_mul2add (ltc_ecc_fp_mulmod.c:1192)
==135594== by 0x41C1B2: ecc_verify_hash_internal (ecc_verify_hash_internal.c:114)
==135594== by 0x41C830: ecc_verify_hash_rfc7518_internal (ecc_verify_hash_rfc7518.c:35)
==135594== by 0x40340F: time_ecc (timing.c:1031)
==135594== by 0x402894: main (timing.c:1621)
==135594== Address 0x20feffeb2f is not stack'd, malloc'd or (recently) free'd
```
The origin being `ltc_mp_unsigned_bin_size(tkb)` returning 0, so y is -1,
but as an unsigned type that's no fun.
Fixed by making y a signed type.
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-29 10:53:40 +02:00
Karel Miko
6affa8b99f
fix LTC_MECC_FP
2026-04-29 10:53:40 +02:00
Steffen Jaeckel
0a46eb2e5c
Merge pull request #740 from MarekKnapek/738
...
Fix for issue #738 .
2026-04-27 23:26:19 +02:00
Marek Knápek
44d111e755
Fix for issue #738 .
...
Closes : libtom/libtomcrypt#738
2026-04-27 23:25:14 +02:00
Steffen Jaeckel
d062d0e31f
Merge pull request #446 from libtom/pr/wycheproof-fail-changed-seq-tag
...
Wycheproof failing ECC tests
2026-04-27 14:23:07 +02:00
Karel Miko
66a2e73eb8
fix for issue #116
2026-04-27 14:19:59 +02:00
Karel Miko
8e9b1983af
fix ecc_projective_add_point + ecc_projective_dbl_point
2026-04-27 14:19:59 +02:00
Steffen Jaeckel
689b57755b
Fix cases where the points are equal.
...
In the case where `(P.x,P.y) == (Q.x,Q.y)` in affine coordinates, which
shows itself as either of the two being 0 after the add, we have
to double instead of add.
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-27 14:19:59 +02:00
Steffen Jaeckel
b67f4397f4
Ensure that stat is initialized.
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-27 14:19:59 +02:00
Steffen Jaeckel
9fa2f16ddc
Fix length-related wycheproof testcases
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-27 14:19:59 +02:00
Karel Miko
1d55aca785
failing wycheproof tests
2026-04-27 14:19:59 +02:00
Steffen Jaeckel
7d0d0799ce
Merge pull request #744 from libtom/fix-743
...
Fix 743
2026-04-27 14:16:54 +02:00
tynus3
1bb1e6172c
Fix off-by-one heap BOF.
...
Fixes: 1b3a757345 ("add ASN.1-identifier functions")
Closes : libtom/libtomcrypt#743
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-27 12:56:58 +02:00
Steffen Jaeckel
876460e7b6
Add testcases.
...
Link: libtom/libtomcrypt#743
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-27 12:56:58 +02:00
Steffen Jaeckel
143679efce
Merge pull request #741 from libtom/pr/rsa-import-failure
...
fix RSA import
2026-04-24 18:34:59 +02:00
Steffen Jaeckel
55bf39c50e
Also add the failing key to the test corpus.
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-24 18:32:50 +02:00
Karel Miko
9f56c5803e
fix RSA import
2026-04-24 16:49:08 +02:00
Steffen Jaeckel
0971e458ba
Merge pull request #722 from libtom/pr/ed448-x448-attempt3
...
Ed448 + X448
2026-04-24 13:14:56 +02:00
Karel Miko
e0599e2b3a
Update makefiles
2026-04-24 11:50:39 +02:00
Karel Miko
076a11037a
Ed448 + X448
2026-04-24 11:49:23 +02:00
Steffen Jaeckel
c80285ba04
Merge pull request #725 from libtom/remove-ocb-v1
...
Remove OCB v1
2026-04-24 10:49:18 +02:00
Steffen Jaeckel
b6d4e6384e
Update makefiles
2026-04-24 10:45:27 +02:00
Steffen Jaeckel
800e5ce319
Remove OCB v1.
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-24 10:45:24 +02:00
Steffen Jaeckel
f5438b298d
Deprecate OCB v1.
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-24 09:45:26 +02:00
Steffen Jaeckel
8c82c8786b
Update OCB docs regarding patents.
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-24 09:45:26 +02:00
Steffen Jaeckel
2be5cceb84
Merge pull request #729 from libtom/pr/xchacha20-xchacha20poly130
...
XChaCha20 / XChaCha20-Poly1305
2026-04-24 09:44:28 +02:00
Karel Miko
b0a1804d50
Update makefiles
2026-04-24 09:41:08 +02:00
Karel Miko
0e4c5aff7e
XChaCha20 / XChaCha20-Poly1305
2026-04-24 09:41:08 +02:00
Steffen Jaeckel
c53dfcc6df
Merge pull request #739 from libtom/pr/wycheproof-ed25519
...
Wycheproof Ed25519 test vectors + fix
2026-04-24 09:36:21 +02:00
Karel Miko
0f37c60fd7
Wycheproof Ed25519 test vectors + fix
2026-04-24 09:36:09 +02:00
Steffen Jaeckel
14d9bd0f82
Merge pull request #736 from libtom/pr/gcm-freebsd
...
GCM + FreeBSD + HWCAP_PMULL
2026-04-24 09:35:00 +02:00