Commit Graph

  • 37e3fc6c76 Remove unnecessary checks for NULL-ness of copies David Horstmann 2023-11-16 20:30:36 +00:00
  • d79d5e7ed0 Check for len == 0 rather than buffer == NULL David Horstmann 2023-11-16 20:26:16 +00:00
  • c3be8cb24a Fix code style in psa_crypto_core.h David Horstmann 2023-11-16 20:21:19 +00:00
  • 2d730c015e Compare buffers even for zero-length cases David Horstmann 2023-11-16 20:12:17 +00:00
  • 0ee4d18bc6 Use TEST_CALLOC_NONNULL David Horstmann 2023-11-16 20:01:32 +00:00
  • e8a92227dc Change data pattern to simpler one David Horstmann 2023-11-16 19:57:25 +00:00
  • 726bf058fe Remove redundant NULL check David Horstmann 2023-11-15 18:11:26 +00:00
  • 660027f310 Skip call to memcpy if buffer length is zero David Horstmann 2023-11-15 17:33:47 +00:00
  • df49355faa Make copy functions static-testable David Horstmann 2023-11-15 15:18:30 +00:00
  • 761761ff64 Fix unintentional direct use of memcpy() David Horstmann 2023-11-15 15:57:32 +00:00
  • ba65bd79e8 Add output round-trip testcase David Horstmann 2023-11-08 18:11:29 +00:00
  • aca210d4c7 Add input round-trip testcase David Horstmann 2023-11-08 18:01:40 +00:00
  • aeeb2740a9 Add psa_crypto_output_copy_free() implementation David Horstmann 2023-11-08 17:44:18 +00:00
  • 3bc1316ceb Add testcase for psa_crypto_output_copy_free() David Horstmann 2023-11-08 17:25:45 +00:00
  • 953cd5b372 Add implementation of psa_crypto_output_alloc() David Horstmann 2023-11-08 15:19:43 +00:00
  • 1acf7afa83 Add testcase for psa_crypto_output_copy_alloc() David Horstmann 2023-11-08 15:10:41 +00:00
  • b80367e3b4 Add function prototypes for psa_crypto_output fns David Horstmann 2023-11-08 14:33:05 +00:00
  • fa2d75d30a Add implementation of psa_crypto_input_copy_free() David Horstmann 2023-11-07 18:00:41 +00:00
  • 6790a6d36f Add testcase for psa_crypto_input_copy_free() David Horstmann 2023-11-07 17:30:25 +00:00
  • 8d9d4fe20d Add psa_crypto_input_copy_alloc() implementation David Horstmann 2023-11-07 16:36:48 +00:00
  • 89299c476c Add testcase for psa_crypto_input_copy_alloc() David Horstmann 2023-11-06 18:18:59 +00:00
  • f0ec6e87b1 Add prototypes for psa_crypto_input_copy API David Horstmann 2023-11-06 17:27:16 +00:00
  • cbdec9e470 Remove psa_crypto_alloc_and_copy() API David Horstmann 2023-11-06 14:22:28 +00:00
  • 93e08c6db6 Move buffer copy tests into new testsuite David Horstmann 2023-11-03 20:01:37 +00:00
  • 8684ad548f Switch error code to more appropriate value David Horstmann 2023-11-03 19:51:40 +00:00
  • 89b4caab53 Switch to TEST_CALLOC_NONNULL() David Horstmann 2023-11-03 19:45:39 +00:00
  • 113f2d46b0 Switch from ret to status as naming convention David Horstmann 2023-11-03 19:31:35 +00:00
  • 7a31ac02ab Switch from int to psa_status_t for test args David Horstmann 2023-11-03 19:28:08 +00:00
  • 818b39dbc3 Remove psa_crypto_ prefix from test functions David Horstmann 2023-11-03 19:23:49 +00:00
  • 34342a2410 Remove superfluous comment David Horstmann 2023-11-03 19:20:33 +00:00
  • f38eb76b34 Replace compound-initializers with memset David Horstmann 2023-11-02 20:47:04 +00:00
  • 121994f33e Refactor: move buffer pattern fills into helper David Horstmann 2023-11-02 17:48:07 +00:00
  • 5e0b4f8b42 Add full round-trip tests for buffer copying David Horstmann 2023-11-02 17:07:16 +00:00
  • 406d28ba87 Add test case for overlapping buffers David Horstmann 2023-11-02 14:39:00 +00:00
  • 7131b8eecc Reject zero-lengths in psa_crypto_copy_and_free() David Horstmann 2023-11-02 12:00:02 +00:00
  • 0368d20d51 Reject NULL original_output with non-NULL output David Horstmann 2023-11-01 17:55:43 +00:00
  • 5847b70829 Add implementation of psa_crypto_copy_and_free() David Horstmann 2023-11-01 17:47:39 +00:00
  • 9ecd53d1bb Add testcases for psa_crypto_copy_and_free() David Horstmann 2023-11-01 15:41:54 +00:00
  • 0e38180e1d Simplify zero-length buffers to always be NULL David Horstmann 2023-11-01 14:46:02 +00:00
  • ea08ab775d Zero-length test for psa_crypto_alloc_and_copy() David Horstmann 2023-11-01 12:30:24 +00:00
  • 41966d7433 Add extra testcases for buffer copying David Horstmann 2023-10-31 18:43:09 +00:00
  • cc4dfa6892 Add implementation of psa_crypto_alloc_and_copy() David Horstmann 2023-10-31 18:03:06 +00:00
  • 0684069e44 Add testcases for psa_crypto_alloc_and_copy() David Horstmann 2023-10-31 17:40:59 +00:00
  • a707a6f56d Add buffers struct and prototypes for alloc API David Horstmann 2023-10-31 15:41:45 +00:00
  • 2bd296e890 Add implementation of psa_crypto_copy_output() David Horstmann 2023-10-30 20:37:12 +00:00
  • 438cd4811a Add testcases for psa_crypto_copy_output() David Horstmann 2023-10-30 20:34:41 +00:00
  • 957f980379 Add implementation of psa_crypto_copy_input() David Horstmann 2023-10-30 20:29:43 +00:00
  • b0a01b18af Add testcases for psa_crypto_copy_input() David Horstmann 2023-10-30 20:16:41 +00:00
  • 1cc21c31a9 Add function prototypes for copying functions David Horstmann 2023-10-30 19:48:13 +00:00
  • 31dbc3613a prepare_release: sed querry change to strip whitespace Minos Galanakis 2023-11-10 16:01:43 +00:00
  • 554ee62fba tls13: early_data: fix wrong debug_ret message Yanray Wang 2023-11-22 18:55:01 +08:00
  • 5da8ecffe6 tls13: nst early_data: remove duplicate code Yanray Wang 2023-11-22 18:52:19 +08:00
  • d8c899cb17 TLS Suite B fix: add ChangeLog entry Yanray Wang 2023-11-22 18:14:38 +08:00
  • 1136fad126 ssl_tls: improve readability in ssl_*_preset_*_sig_algs Yanray Wang 2023-11-22 16:54:31 +08:00
  • 0e9eafff13 Update tests to the code status Jerry Yu 2023-02-08 15:38:19 +08:00
  • 87b5ed4e5b Add server side end-of-early-data handler Jerry Yu 2022-12-12 13:07:07 +08:00
  • 7d8c3fe12c Add wait flight2 state. Jerry Yu 2022-12-12 12:59:44 +08:00
  • 4e9b70e03a Add early transform computation when accepted Jerry Yu 2022-12-04 14:08:02 +08:00
  • 55933a3e9c tls13: fix a wrong RFC reference section Yanray Wang 2023-11-22 16:34:15 +08:00
  • 69ceb391a0 ssl_tls: remove RSA sig-algs in ssl_tls12_preset_suiteb_sig_algs Yanray Wang 2023-11-22 16:32:39 +08:00
  • b1f60163ba ssl_tls: remove RSA sig-algs in ssl_preset_suiteb_sig_algs Yanray Wang 2023-11-22 15:46:15 +08:00
  • fd25654311 ssl_tls: remove unnecessary guard Yanray Wang 2023-11-22 10:32:03 +08:00
  • 365ee3eaa9 ssl_tls: return correct error code if mbedtls_calloc fails Yanray Wang 2023-11-22 10:28:28 +08:00
  • 951b3cb400 tls13-misc: cli: check parser of max_early_data_size ext Yanray Wang 2023-11-21 11:13:31 +08:00
  • 920db45818 tls13: early_data: support to parse max_early_data_size ext Yanray Wang 2023-11-14 17:20:16 +08:00
  • c9f8f5602a Merge pull request #1122 from gilles-peskine-arm/development-restricted-merge-20231120 Gilles Peskine 2023-11-21 18:12:58 +01:00
  • e467d62042 Add casts for NEON Dave Rodgman 2023-11-03 23:40:31 +00:00
  • c37ad4432b misc type fixes in ssl Dave Rodgman 2023-11-03 23:36:06 +00:00
  • df4d42106a Use standard byte conversion fns in lms Dave Rodgman 2023-11-09 14:01:39 +00:00
  • a3d0f61aec Use MBEDTLS_GET_UINTxx_BE macro Dave Rodgman 2023-11-03 23:34:02 +00:00
  • b2e8419b50 Fix types in entropy_poll.c Dave Rodgman 2023-11-03 23:32:39 +00:00
  • e4a6f5a7ec Use size_t cast for pointer subtractions Dave Rodgman 2023-11-04 12:20:09 +00:00
  • 8933c04e44 Enable to specify the name of the project in the changelog Gabor Mezei 2023-11-21 17:05:43 +01:00
  • ddffa10264 Initial changelog support for changelog assembling Gabor Mezei 2023-11-21 17:03:29 +01:00
  • b9c70581a0 Merge pull request #8222 from tgonzalezorlandoarm/tg/backport-psa-low-hash-mac-size Dave Rodgman 2023-11-21 15:39:36 +00:00
  • d4dc354185 Merge pull request #8541 from yanrayw/issue/ssl-fix-missing-guard Manuel Pégourié-Gonnard 2023-11-21 14:57:47 +00:00
  • 7a715c4537 Fix the build with gcc-12 -Wuse-after-free Gilles Peskine 2023-11-21 13:42:40 +01:00
  • 9f176a2766 Fix status assignments when loading persistent keys Ryan Everett 2023-11-21 11:49:57 +00:00
  • 2d8624dae2 Extend blinding to RSA result check Janos Follath 2023-11-21 09:46:43 +00:00
  • 10f8366499 Make RSA unblinding constant flow Janos Follath 2023-11-21 09:33:54 +00:00
  • effdfe7409 Merge pull request #6788 from yuhaoth/pr/fix-gnutls_anti_replay_fail Ronald Cron 2023-11-21 08:38:57 +00:00
  • aa5dc24df9 Change if to switch case Jerry Yu 2023-11-20 18:07:54 +08:00
  • 60e997205d replace check string Jerry Yu 2023-11-20 09:55:24 +08:00
  • 713ce1f889 various improvement Jerry Yu 2023-11-17 15:32:12 +08:00
  • 4ac648ef20 improve readability Jerry Yu 2023-11-16 13:58:38 +08:00
  • d84c14f80c improve code style Jerry Yu 2023-11-16 13:33:57 +08:00
  • b2455d2472 Guards ticket_creation_time Jerry Yu 2023-11-15 09:57:32 +08:00
  • 9cb953a402 improve document Jerry Yu 2023-11-15 09:54:11 +08:00
  • 04fceb782b Add freshness check information into document Jerry Yu 2023-11-15 09:52:46 +08:00
  • 8e0174ac05 Add maximum ticket lifetime check Jerry Yu 2023-11-10 13:58:16 +08:00
  • 472a69260b fix build failure Jerry Yu 2023-11-14 11:25:24 +08:00
  • cf9135100e fix various issues Jerry Yu 2023-11-14 11:06:52 +08:00
  • 342a555eef rename ticket received Jerry Yu 2023-11-10 14:23:39 +08:00
  • 25ba4d40ef rename ticket_creation to ticket_creation_time Jerry Yu 2023-11-10 14:12:20 +08:00
  • 46c7926f74 Add maximum ticket lifetime check Jerry Yu 2023-11-10 13:58:16 +08:00
  • 034a8b77d1 Update document of ticket age tolerance Jerry Yu 2023-11-10 12:20:19 +08:00
  • 28e7c554f4 Change the bottom of tolerance window Jerry Yu 2023-11-10 12:05:56 +08:00
  • 3ff0b1fda3 Cleanup ticket negative tests. Jerry Yu 2023-11-10 11:29:12 +08:00
  • 31b601aa15 improve comments Jerry Yu 2023-11-10 11:27:21 +08:00
  • 8cf44953b2 guards ticket creation field Jerry Yu 2023-10-31 16:48:45 +08:00