Commit Graph

  • 2d457b8fca Use more compact encoding of Montgomery curve constants Manuel Pégourié-Gonnard 2021-06-23 12:43:34 +02:00
  • 82c48c992c Adjust tag_len documentation for the mbedtls_ccm_finish(). Mateusz Starzyk 2021-06-23 12:39:40 +02:00
  • 2389a6000e Use a more compact encoding of bad points Manuel Pégourié-Gonnard 2021-06-23 12:25:48 +02:00
  • 478ac0bcc1 Merge pull request #4704 from mpg/issue-3990-fix_psa_verify_with_alt-2.x Gilles Peskine 2021-06-23 11:47:42 +02:00
  • c9d86a05ce Merge pull request #4665 from yanesca/issue-3990-fix_psa_verify_with_alt Gilles Peskine 2021-06-23 11:47:38 +02:00
  • f941fb9972 Add test for check_pubkey for x25519 Manuel Pégourié-Gonnard 2021-06-23 11:40:35 +02:00
  • 2007d70a5a Improve changelog Paul Elliott 2021-06-23 09:56:55 +01:00
  • d7ab9f1260 Move the setting of id in driver wrappers Paul Elliott 2021-06-23 09:52:19 +01:00
  • fcb5cdc954 Add per function hits to driver wrappers Paul Elliott 2021-06-23 09:40:12 +01:00
  • 98d45b90b0 Add missing tag_len in ccm api. Mateusz Starzyk 2021-06-23 10:45:14 +02:00
  • 727e1f17dd Mention that mbedtls_rsa_init can set hash_id too Manuel Pégourié-Gonnard 2021-06-23 10:35:55 +02:00
  • f29857ca0a Reject low-order points on Curve25519 early Manuel Pégourié-Gonnard 2021-06-23 10:14:58 +02:00
  • ad53dcc975 Move common final checks to function Paul Elliott 2021-06-23 08:50:14 +01:00
  • 5b065cb8cd Fix typo Paul Elliott 2021-06-23 08:33:22 +01:00
  • 92f387777d Merge branch 'development' into development-restricted Manuel Pégourié-Gonnard 2021-06-23 09:04:42 +02:00
  • 534d0b4484 Finish / Verify state checks Paul Elliott 2021-06-22 19:15:20 +01:00
  • f88a565f18 Better tag size default for m-aead finish Paul Elliott 2021-06-22 17:53:45 +01:00
  • d89304ebb7 Fix formatting issues Paul Elliott 2021-06-22 17:47:09 +01:00
  • e4030f2cd1 Replace function with macro that already exists Paul Elliott 2021-06-22 17:36:55 +01:00
  • 7220cae93c Ensure generate nonce unavailable in decrypt Paul Elliott 2021-06-22 17:25:57 +01:00
  • df51a13c54 Merge pull request #4394 from gilles-peskine-arm/travis-windows-no-generate-2.x Gilles Peskine 2021-06-22 18:53:58 +02:00
  • 11bd2ac3da Merge pull request #4705 from ronald-cron-arm/3258_implement_one-shot_MAC_2.x Gilles Peskine 2021-06-22 18:53:34 +02:00
  • e9bc857327 Merge pull request #4552 from hanno-arm/mbedtls_3_0_key_export Gilles Peskine 2021-06-22 18:52:37 +02:00
  • 18efd1c2c3 Correct some statements about the ordering of A and B Gilles Peskine 2021-06-21 18:58:39 +02:00
  • f95d433655 Clarification in a comment Gilles Peskine 2021-06-21 11:40:38 +02:00
  • 1d6b1dc955 Simplify is-zero check Gilles Peskine 2021-06-17 14:35:25 +02:00
  • 55e6abc99f Fix copypasta in test data Gilles Peskine 2021-06-17 14:31:54 +02:00
  • afbf191b17 Write a proof of correctness for mbedtls_mpi_gcd Gilles Peskine 2021-06-16 13:42:04 +02:00
  • 2949d3ac1b Explain how the code relates to the description in HAC Gilles Peskine 2021-06-15 22:09:39 +02:00
  • ead6660d8c Fix copypasta in test cases Gilles Peskine 2021-06-15 22:06:02 +02:00
  • 3cfb7be72f Annotate the choice of representation of 0 in more places Gilles Peskine 2021-06-15 22:03:37 +02:00
  • 8c68c97db7 Improve coverage of mbedtls_mpi_cmp_mpi Gilles Peskine 2021-06-15 22:01:23 +02:00
  • 5ce7cb3d3c Fix copypasta in test function argument name Gilles Peskine 2021-06-15 21:55:05 +02:00
  • 14357a35f7 Unify G=1 and G=-1 test cases Gilles Peskine 2021-06-15 21:53:47 +02:00
  • 05a1af6d0f In test cases where the result is 0, express it as "0", not "" Gilles Peskine 2021-06-15 21:49:31 +02:00
  • 44e6bb6b38 Fix multiplication with negative result and a low-order 0 limb Gilles Peskine 2021-06-15 21:44:32 +02:00
  • 266275e924 mpi_shrink test: just set the top bit Gilles Peskine 2021-06-15 21:19:18 +02:00
  • 81a6743cfb Tweak grouping of GCD test cases Gilles Peskine 2021-06-15 21:10:50 +02:00
  • d57f403f0c Make GCD test descriptions more uniform Gilles Peskine 2021-06-15 21:10:16 +02:00
  • 0d3bc852b7 DHM: test some edge cases for the generator Gilles Peskine 2021-06-09 13:37:31 +02:00
  • 4d106c1306 Add RSA tests with message=0 Gilles Peskine 2021-06-09 16:24:35 +02:00
  • ab6ab6aaf0 Fix multiplication producing a negative zero Gilles Peskine 2021-06-10 15:51:54 +02:00
  • 5504d1725b mbedtls_mpi_gcd: fix the case B==0 Gilles Peskine 2021-06-09 13:26:43 +02:00
  • c559eac574 Fix null pointer dereference in mbedtls_mpi_exp_mod Gilles Peskine 2021-06-08 23:17:42 +02:00
  • bc781eab47 Add many test cases involving 0 Gilles Peskine 2021-06-08 23:01:13 +02:00
  • efc3fd4c03 Test mbedtls_mpi_exp_mod both with and without _RR Gilles Peskine 2021-06-09 18:31:35 +02:00
  • cca6bb909d mbedtls_mpi_exp_mod test: don't read RR from test data Gilles Peskine 2021-06-09 18:28:35 +02:00
  • 9e8316e6eb Add some GCD tests Gilles Peskine 2021-06-09 10:52:12 +02:00
  • 4cbb1c9cc9 Test mbedtls_mpi_safe_cond_{assign,swap} with the basic functions Gilles Peskine 2021-06-10 23:00:33 +02:00
  • 1e914269b0 Overhaul testing of mbedtls_mpi_swap Gilles Peskine 2021-06-10 22:29:57 +02:00
  • 8e1aa66479 Overhaul testing of mbedtls_mpi_copy Gilles Peskine 2021-06-10 15:17:30 +02:00
  • 8854c5d450 Test the validity of the sign bit after constructing an MPI object Gilles Peskine 2021-06-10 15:34:15 +02:00
  • b8e1534a0d Use mbedtls_test_read_mpi in test suites Gilles Peskine 2021-06-10 23:18:39 +02:00
  • bbc4b8d2be New test helper mbedtls_test_read_mpi Gilles Peskine 2021-06-11 14:13:53 +02:00
  • aa9d9ac598 Clarify a few test descriptions (mostly involving 0) Gilles Peskine 2021-06-08 23:00:17 +02:00
  • 6e3187b212 RSA: Use hashlen as the hash input size as documented Gilles Peskine 2021-06-22 18:39:53 +02:00
  • 9dbbc297a3 PK signature function: require exact hash length Gilles Peskine 2021-06-22 18:28:13 +02:00
  • 5e3bb13111 Add set_lengths argument to all tests. Paul Elliott 2021-06-22 16:22:13 +01:00
  • 1c96429282 Remove encrypt/decrypt tests Paul Elliott 2021-06-21 18:36:42 +01:00
  • c23a9a0799 Add state checks for multipart AEAD Paul Elliott 2021-06-21 18:32:46 +01:00
  • d3f8241369 Add multipart tests Paul Elliott 2021-06-16 16:52:21 +01:00
  • 8eb9dafda1 Add generate nonce test Paul Elliott 2021-06-04 16:42:21 +01:00
  • 388f606acd Use correct size defines for buffers Paul Elliott 2021-06-03 19:19:49 +01:00
  • 1c8de15490 Update documentation to tally with recent changes Paul Elliott 2021-06-03 15:54:00 +01:00
  • bc94978d8c Add missing unused arguments Paul Elliott 2021-06-03 15:29:00 +01:00
  • 5ec5003992 Document the return type change in the migration guide Dave Rodgman 2021-06-22 13:41:56 +01:00
  • f38646151e Add change log Ronald Cron 2021-06-21 09:58:03 +02:00
  • 54488c4abc psa: mac: Add driver dispatch tests for psa_mac_verify Ronald Cron 2021-06-18 15:05:36 +02:00
  • 4ed836883e psa: mac: Add driver delegation support for psa_mac_verify() Ronald Cron 2021-06-18 14:51:29 +02:00
  • ef0d8f17f8 psa: mac: Introduce psa_mac_compute_internal Ronald Cron 2021-06-18 14:23:33 +02:00
  • 93dcd5963f psa: mac: Add driver dispatch tests for psa_mac_compute Ronald Cron 2021-06-18 14:01:50 +02:00
  • 882eb780fb psa: mac: Improve MAC finalization code Ronald Cron 2021-06-18 13:05:48 +02:00
  • dbb8646c2c psa: mac: Add driver delegation support for psa_mac_compute() Ronald Cron 2021-06-17 17:17:20 +02:00
  • bfdfaa676c psa: mac: Add MAC compute builtin implementation Ronald Cron 2021-06-17 17:34:43 +02:00
  • def68e722a psa: mac: Improve implementation of psa_mac_finalize_alg_and_key_validation() Ronald Cron 2021-06-17 16:46:44 +02:00
  • 1c650a1a37 psa: mac: Split psa_mac_setup() Ronald Cron 2021-06-17 16:33:22 +02:00
  • 48f875e809 psa: mac: Re-organize psa_mac_setup() internal function Ronald Cron 2021-06-17 16:10:24 +02:00
  • a93e423739 Add test for one-shot MAC functions gabor-mezei-arm 2021-03-01 15:35:48 +01:00
  • a00616fc6b Implement one-shot MAC functions gabor-mezei-arm 2021-03-01 15:34:18 +01:00
  • 03daae6894 Improve psa_rsa_decode_md_type() Janos Follath 2021-06-21 10:56:29 +01:00
  • 0e89dafbab Add ChangeLog entry Janos Follath 2021-06-15 16:08:29 +01:00
  • 02becd90a6 Fix exercise key test Janos Follath 2021-06-14 12:34:30 +01:00
  • 3af7e8fe3a Fix verify_hash tests for PSA RSA PSS Janos Follath 2021-06-07 14:41:53 +01:00
  • b23b5745b5 PSA RSA PSS: pass pre-hash algorithm to Mbed TLS Janos Follath 2021-06-07 14:34:10 +01:00
  • 456d7e055f mbedtls_rsa_rsassa_pss_*: improve documentation Janos Follath 2021-04-01 14:44:17 +01:00
  • b09c7eea97 Correct some statements about the ordering of A and B Gilles Peskine 2021-06-21 18:58:39 +02:00
  • 4d3fd36c44 Clarification in a comment Gilles Peskine 2021-06-21 11:40:38 +02:00
  • 4169c32d6c Simplify is-zero check Gilles Peskine 2021-06-17 14:35:25 +02:00
  • 2a3041f74e Fix copypasta in test data Gilles Peskine 2021-06-17 14:31:54 +02:00
  • 2a63c5b781 Write a proof of correctness for mbedtls_mpi_gcd Gilles Peskine 2021-06-16 13:42:04 +02:00
  • 4df3f1f250 Explain how the code relates to the description in HAC Gilles Peskine 2021-06-15 22:09:39 +02:00
  • bd5d6ef8de Fix copypasta in test cases Gilles Peskine 2021-06-15 22:06:02 +02:00
  • 8998770771 Annotate the choice of representation of 0 in more places Gilles Peskine 2021-06-15 22:03:37 +02:00
  • 8f70d3f4e2 Improve coverage of mbedtls_mpi_cmp_mpi Gilles Peskine 2021-06-15 22:01:23 +02:00
  • 722c62c81a Fix copypasta in test function argument name Gilles Peskine 2021-06-15 21:55:05 +02:00
  • 5afc5e4305 Unify G=1 and G=-1 test cases Gilles Peskine 2021-06-15 21:53:47 +02:00
  • d96b3650ec In test cases where the result is 0, express it as "0", not "" Gilles Peskine 2021-06-15 21:49:31 +02:00
  • 997be0aba3 Fix multiplication with negative result and a low-order 0 limb Gilles Peskine 2021-06-15 21:44:32 +02:00
  • 2aa3f16512 Whitespace fix Gilles Peskine 2021-06-15 21:22:48 +02:00
  • e109175d05 mpi_shrink test: just set the top bit Gilles Peskine 2021-06-15 21:19:18 +02:00