Commit graph

  • 5c7e0e9fb1 Allow pt as NULL if there's nothing to encrypt. Steffen Jaeckel 2026-04-20 14:21:34 +02:00
  • 57b92e7351 Add a sentence about the origins of the CHC hash. Steffen Jaeckel 2026-04-16 12:17:28 +02:00
  • d7c650d398 Update PR template. Steffen Jaeckel 2026-04-16 10:29:31 +02:00
  • 18cfd0f87a Suppress warnings emitted by Clang. Steffen Jaeckel 2026-04-16 10:16:29 +02:00
  • fe7bfb053a Branch once, not on each iteration. Steffen Jaeckel 2026-04-16 10:15:32 +02:00
  • 6be6de1ffa Replace int* recid hack in ECC. Steffen Jaeckel 2026-04-16 10:11:22 +02:00
  • 233f226108 Fix some ifdefs, include guards and a function call. Steffen Jaeckel 2026-04-15 18:23:39 +02:00
  • e5df4f7ce8 Fix build with -DLTC_MINIMAL. Steffen Jaeckel 2026-04-15 18:17:54 +02:00
  • e2544d4071 Further improve timing demo. Steffen Jaeckel 2026-04-14 16:51:43 +02:00
  • 661dad10c7 Make HW-accel checkers always available. Steffen Jaeckel 2026-04-14 16:50:55 +02:00
  • ec3804c452 Use s_x86_cpuid() in s_{aesni,pclmul}_is_supported(). Steffen Jaeckel 2026-04-14 16:46:37 +02:00
  • e3bf539e5d Clean-up some defines. Steffen Jaeckel 2026-04-14 16:44:59 +02:00
  • 4bdd0480f7 Introduce LTC_NO_ACCEL. Steffen Jaeckel 2026-04-14 12:24:42 +02:00
  • a8236250a9
    Merge pull request #737 from libtom/pr/sha3-missing-ltc_test Steffen Jaeckel 2026-04-23 08:55:41 +02:00
  • 854749e2f4 couple of missing: if defined(LTC_TEST) Karel Miko 2026-04-23 08:16:12 +02:00
  • ff52a70038
    Merge pull request #734 from libtom/pr/fix-unused-parameter Steffen Jaeckel 2026-04-22 14:41:44 +02:00
  • a29e328b07 fix unused-parameter warning Karel Miko 2026-04-21 21:03:13 +02:00
  • 463431edc2
    Merge pull request #735 from libtom/pr/hmac-zero-key Steffen Jaeckel 2026-04-22 14:40:45 +02:00
  • 557e9e2678 patch HMAC to accept zero-length keys and remove the scrypt workaround Karel Miko 2026-04-21 23:35:10 +02:00
  • 9ada406daf
    Merge 257d1c4b4b into 2e441a17df Steffen Jaeckel 2026-04-17 16:03:33 +00:00
  • 257d1c4b4b Add more extensions. x509_import Steffen Jaeckel 2026-04-17 15:56:07 +02:00
  • 5c8209341d Slightly refactor extension allocation & free'ing Steffen Jaeckel 2026-04-17 16:00:09 +02:00
  • a81878ea8d Put the macro where it should've been in the first place Steffen Jaeckel 2026-04-17 11:38:17 +02:00
  • 3d68740db6 Make s_free() take a void** and set that one to NULL after free'ing Steffen Jaeckel 2026-04-17 11:11:16 +02:00
  • 670275448a No need to check input args on internal APIs. Steffen Jaeckel 2026-04-17 10:58:41 +02:00
  • 066526e1a3 fixup! Add demos/x509_verify.c Steffen Jaeckel 2026-04-17 10:56:54 +02:00
  • be7cc72506 CI tests (non-cmake) require to build demo x509_verify Karel Miko 2026-04-17 09:12:45 +02:00
  • 9da46d3b45 fix cmake tests Karel Miko 2026-04-17 08:19:13 +02:00
  • 2220147119 remove unnecessary #include <wchar.h> (we already handle it in tomcrypt_private.h) Karel Miko 2026-04-17 00:44:51 +02:00
  • 4b627b9084 instead of ipv6 like 2001:db8:0:0:0:0:0:1 rather produce 2001:0db8:0000:0000:0000:0000:0000:0001 (it will be less surprising) Karel Miko 2026-04-17 00:24:38 +02:00
  • f7b1553a68 properly call s_free_extensions Karel Miko 2026-04-17 00:22:37 +02:00
  • 98dbd3d91f add few missing LTC_ARGCHK Karel Miko 2026-04-17 00:19:58 +02:00
  • b82fde0c6d fix CMakeLists.txt for demos Karel Miko 2026-04-17 00:16:33 +02:00
  • 8d6ff595aa remove unreachable code Karel Miko 2026-04-17 00:05:29 +02:00
  • 55f85f30d6 x509_cmp_name was suggesting strcmp-like semantics but was returning 1 on equality; which was misleading - thus renamed to x509_name_eq Karel Miko 2026-04-16 23:59:43 +02:00
  • 585f9e4011 x509_name_detail_get: not found does not mean CRYPT_INVALID_ARG Karel Miko 2026-04-16 23:55:23 +02:00
  • 02e47807e8 ltc_x509_time - fix confusion utc vs. utc (one of them renamed to is_utc) Karel Miko 2026-04-16 23:45:27 +02:00
  • 8ad56cc69c avoid calling s_free_x509_string_array on NULL pointer Karel Miko 2026-04-16 23:38:49 +02:00
  • 6f451e9920 avoid double-free Karel Miko 2026-04-16 23:35:50 +02:00
  • 3be2b1c0b8 free proper number of elements Karel Miko 2026-04-16 23:33:32 +02:00
  • de8cb4dcfc NOTE (not fix): we do not reject certificates with unrecognized critical extensions Karel Miko 2026-04-16 23:31:23 +02:00
  • 6ed2864bc3 alg comparison now correctly returns 0 when one hash is NULL Karel Miko 2026-04-16 23:08:43 +02:00
  • 5fa0683bd8 x509_cmp_name: add check a->asn1 or b->asn1 for NULL Karel Miko 2026-04-16 23:05:58 +02:00
  • 6fa59793ad fix improper err handling Karel Miko 2026-04-16 23:04:09 +02:00
  • c59a0ef634 remove unused variable (x) Karel Miko 2026-04-16 22:55:36 +02:00
  • 4cb09d8bd7 fix typo in comments Karel Miko 2026-04-16 22:53:30 +02:00
  • dacbab91ea fix misleading param/variable names Karel Miko 2026-04-16 22:51:38 +02:00
  • 04c5a82f2a typo in comment (x509_get) Karel Miko 2026-04-16 22:47:27 +02:00
  • 2b85056696 fix off-by-one x509_extensions Karel Miko 2026-04-16 22:45:09 +02:00
  • 6f0dee100f minor improvements to x509_import Karel Miko 2026-04-16 22:43:10 +02:00
  • 08c91988d1 fix memory leak (or use-after-free) from previous commit Karel Miko 2026-04-16 22:38:37 +02:00
  • 435d067d7c LeakSanitizer: detected memory leak (just a test demonstrating the problem) Karel Miko 2026-04-16 22:29:13 +02:00
  • d5dc5fd29f enforce RFC 5280 4.1.1.2 (TBS and outer signatureAlgorithm must match), new sig_algo_mismatch.pem test Karel Miko 2026-04-16 21:58:40 +02:00
  • d85a5969f4 remove unnecessary endianness hack Karel Miko 2026-04-16 21:38:31 +02:00
  • f944942d12 fix hash names in pka_oids (part 2) Karel Miko 2026-04-16 21:27:15 +02:00
  • a7af677143 fix hash names in pka_oids Karel Miko 2026-04-16 21:21:41 +02:00
  • 47f513f745 adopt to the latest changes in new-rsa-api branch Karel Miko 2026-04-11 23:30:15 +02:00
  • 6cc433dfb9 Update makefiles Steffen Jaeckel 2025-10-16 12:33:24 +02:00
  • 15ca30da05 Extend coverage Steffen Jaeckel 2025-09-03 13:55:53 +02:00
  • af134608b8 Add x509_import_spki() to timing.c Steffen Jaeckel 2025-09-03 11:21:20 +02:00
  • 4a3c9b7652 Add x509_test() Steffen Jaeckel 2025-09-02 13:34:44 +02:00
  • 33281b0cf9 Add demos/x509_verify.c Steffen Jaeckel 2025-06-16 14:47:58 +02:00
  • 55201c316f Add X.509 APIs Steffen Jaeckel 2025-06-16 14:32:57 +02:00
  • 09b3817dc0 fix failing github action Karel Miko 2026-04-11 22:33:40 +02:00
  • 926dd8ac9f RSA: replace hash_alg + mgf1_hash_alg with hash_idx + mgf1_hash_idx Karel Miko 2026-04-11 22:05:51 +02:00
  • 2e441a17df
    Merge pull request #717 from MarekKnapek/SHA-1x86 Steffen Jaeckel 2026-04-15 17:27:26 +02:00
  • 070d613d26 Update makefiles Steffen Jaeckel 2026-04-15 15:22:32 +02:00
  • 874e095a19 SHA-256 & SHA-224 x86 Marek Knápek 2026-04-13 17:04:54 +02:00
  • 7ac05df902 Add x86-optimized SHA1. Marek Knápek 2026-04-10 21:45:00 +02:00
  • 68aae28a9d
    Merge pull request #706 from libtom/new-rsa-api Steffen Jaeckel 2026-04-15 12:27:08 +02:00
  • fa26d13016 RSA: update documentation (crypt.tex) to reflect the latest changes Karel Miko 2026-04-11 23:06:06 +02:00
  • 7ab625c090 RSA: fix demos/timing.c Karel Miko 2026-04-11 22:32:54 +02:00
  • 21d100d862 RSA: make rsa_decode_parameters work with rsa_key instead of ltc_rsa_parameters Karel Miko 2026-04-11 22:25:58 +02:00
  • 80de9b088b RSA: cosmetics - consistency tomcrypt_pk.h vs implementation files Karel Miko 2026-04-11 22:18:38 +02:00
  • 32ab39fb42 RSA: comment typo Karel Miko 2026-04-11 22:09:26 +02:00
  • e4d3bd2fa5 RSA: replace hash_alg + mgf1_hash_alg with hash_idx + mgf1_hash_idx Karel Miko 2026-04-11 22:05:51 +02:00
  • 7fa7c2ad51 RSA: remove unnecessary #define LTC_DEPRECATED(x) Karel Miko 2026-04-11 21:51:26 +02:00
  • 557cb62b06 RSA: use consistently ltc_rsa_op_checked (+ cosmetic renaming op_check >> op_checked) Karel Miko 2026-04-11 21:48:26 +02:00
  • c1b3281433 RSA: no more dual semantics of pss_oaep (removed from ltc_rsa_parameters; now lives on rsa_key where it belongs) Karel Miko 2026-04-11 21:42:20 +02:00
  • d2829aa10f RSA: PSS + all encryption needs a PRNG Karel Miko 2026-04-11 21:23:35 +02:00
  • 66e677aedd Introduce new RSA API. Steffen Jaeckel 2025-10-23 00:09:05 +02:00
  • 208ee2be4e Refactor SubjectPublicKeyInfo import Steffen Jaeckel 2025-09-02 17:25:03 +02:00
  • d1ab64ec25 Add support for RSA-PSS keys Steffen Jaeckel 2025-08-26 18:40:23 +02:00
  • 56f0e118dd Add support for separate MGF1 hashes Steffen Jaeckel 2025-08-26 18:14:42 +02:00
  • 33d8f8464d
    Merge pull request #723 from cyanogilvie/fix/ocb-decrypt-aliasing Steffen Jaeckel 2026-04-15 11:10:32 +02:00
  • c1752846d5 Let's see what the CPU really says. appveyor/sha-ni Steffen Jaeckel 2026-04-15 11:00:59 +02:00
  • ad32540b46 Don't build CMake for this test Steffen Jaeckel 2026-04-15 10:11:05 +02:00
  • c7cacb0c5e Show info whether CPU supports SHA-NI. Steffen Jaeckel 2026-04-15 10:06:29 +02:00
  • 8c68d99221 Fix s_ocb_done aliasing bug in decrypt path Cyan Ogilvie 2026-04-14 18:31:27 -03:00
  • 6a9e083a6e More clean-up SHA256 Steffen Jaeckel 2026-04-14 16:30:05 +02:00
  • 1b68c950d0 More clean-up SHA1 Steffen Jaeckel 2026-04-14 16:29:49 +02:00
  • e5bfb94f63
    Merge pull request #719 from libtom/pr/scrypt-rfc7914 Steffen Jaeckel 2026-04-14 16:17:28 +02:00
  • 3aed12c410 The scrypt Password-Based Key Derivation Function (RFC 7914) Karel Miko 2026-04-11 18:25:48 +02:00
  • 94287f0480
    Merge pull request #721 from cyanogilvie/fix/pclmul-cache-init-msvc Steffen Jaeckel 2026-04-14 13:36:27 +02:00
  • 0dd804223b Improve timing demo a bit. Steffen Jaeckel 2026-04-14 09:15:09 +02:00
  • f8c7144f04 Introduce LTC_NO_ACCEL. Steffen Jaeckel 2026-04-14 12:24:42 +02:00
  • baac704391 Fix s_pclmul_is_supported() cache flag on MSVC Cyan Ogilvie 2026-04-14 07:45:41 -03:00
  • 3de93375e7 Let's see if that makes MSVC happy Steffen Jaeckel 2026-04-14 11:25:57 +02:00
  • f17403e1ca Clean-up SHA256-based. Steffen Jaeckel 2026-04-14 09:52:54 +02:00
  • cf29490bfc Introduce LTC_ALIGNED_BUF_SIZE(). [skip ci] Steffen Jaeckel 2026-04-14 08:45:14 +02:00