Commit Graph

  • 116411e1a9 Fix when no SHA3 family is found. Pol Henarejos 2022-05-17 11:45:59 +02:00
  • 85eeda0122 olen = 0 is not allowed for SHA-3. Pol Henarejos 2022-05-17 11:43:15 +02:00
  • 084649d189 SHA-3 does not use SHA3_ALT anymore. Pol Henarejos 2022-05-17 11:33:55 +02:00
  • 70c0088239 Change use of olen variables Thomas Daubney 2022-05-20 18:43:09 +01:00
  • eff0f3f5be Add changelog entry Thomas Daubney 2022-05-18 14:36:45 +01:00
  • b2f2b027c2 Clarify mbedtls_pk_can_do_ext() return documentation amd add warning on future addition of allowed algs & usage flags Neil Armstrong 2022-05-20 12:00:56 +02:00
  • e9b4581b16 Clarify BAD_STATE return documentation on bad ordering of input and output steps for psa_pake_input() & psa_pake_output() Neil Armstrong 2022-05-20 11:39:09 +02:00
  • 0d24575ad0 Clarify BAD_STATE return documentation of psa_pake_set_peer() Neil Armstrong 2022-05-20 11:35:40 +02:00
  • 59fa8ee090 Update return documentation of psa_pake_abort() Neil Armstrong 2022-05-20 11:31:04 +02:00
  • 97d74b8abb Update return documentation of psa_pake_get_implicit_key() Neil Armstrong 2022-05-20 11:30:31 +02:00
  • 407b27b516 Update return documentation of psa_pake_input() Neil Armstrong 2022-05-20 11:28:23 +02:00
  • 664077e3ae Update return documentation of psa_pake_output() Neil Armstrong 2022-05-20 11:24:41 +02:00
  • 2a6dd9c2a8 Rename & update documentation of function, types, and macros for psa_pake_set_role() and associated Neil Armstrong 2022-05-20 11:17:10 +02:00
  • 16ff788f9d Update return documentation of psa_pake_set_peer() Neil Armstrong 2022-05-20 11:04:20 +02:00
  • 3585168259 Update return documentation of psa_pake_set_user() Neil Armstrong 2022-05-20 11:02:37 +02:00
  • 71cae6121d Update return documentation of psa_pake_set_password_key() Neil Armstrong 2022-05-20 11:00:49 +02:00
  • 4721a6f33e Update return documentation of psa_pake_setup() Neil Armstrong 2022-05-20 10:53:00 +02:00
  • 1614537697 Fix password wording in PSA_ALG_JPAKE documentation Neil Armstrong 2022-05-20 10:42:36 +02:00
  • 7bc71e9c04 Fix output_size documentation of psa_pake_output() Neil Armstrong 2022-05-20 10:36:14 +02:00
  • cd974d590b Fix return documentation of PSA_PAKE_OUTPUT_SIZE Neil Armstrong 2022-05-20 10:30:12 +02:00
  • d5a4825b84 Add missing psa_pake_cs_get_bits() Neil Armstrong 2022-05-20 10:26:36 +02:00
  • ff9cac72e7 Add missing psa_pake_cs_get_family() Neil Armstrong 2022-05-20 10:25:15 +02:00
  • 0c8ef93c8e Add missing psa_pake_abort() Neil Armstrong 2022-05-20 10:23:51 +02:00
  • 799106b441 Pass input as const reference and fix documentation of psa_pake_input() Neil Armstrong 2022-05-20 10:18:53 +02:00
  • 47e700e7de Pass cipher_suite parameter of psa_pake_setup() by const reference Neil Armstrong 2022-05-20 10:16:41 +02:00
  • 0151c55b56 Add documentation of PSA_PAKE_OPERATION_INIT Neil Armstrong 2022-05-20 10:13:53 +02:00
  • 5ff6a7fa97 Add missing psa_pake_cipher_suite_init() Neil Armstrong 2022-05-20 10:12:01 +02:00
  • fb99302726 Add missing PSA_PAKE_CIPHER_SUITE_INIT Neil Armstrong 2022-05-20 10:08:58 +02:00
  • c661ff51c9 Fix pk_can_do_ext tests with non-opaque keys Neil Armstrong 2022-05-20 09:49:04 +02:00
  • a724f7ae17 Document mbedtls_pk_can_do_ext() return for non-allowed algorithms and usage flags Neil Armstrong 2022-05-20 09:28:12 +02:00
  • 81d391f773 Check when usage == 0 in mbedtls_pk_can_do_ext() Neil Armstrong 2022-05-20 09:26:16 +02:00
  • b80785f1a4 Comment typo fix in mbedtls_pk_can_do_ext() Neil Armstrong 2022-05-20 09:25:55 +02:00
  • e4d3a6a4e8 Merge pull request #5804 from superna9999/5797-remove-cipher-deps-tls Gilles Peskine 2022-05-19 21:02:12 +02:00
  • b830028314 Fix uninitialised memory access in constant time functions Paul Elliott 2022-05-19 18:31:35 +01:00
  • 5260ce27ed Fix uninitialised memory access in constant time functions Paul Elliott 2022-05-09 18:15:54 +01:00
  • 5c5b116a49 Add pk_can_do_ext test for non-opaque keys Neil Armstrong 2022-05-19 18:07:53 +02:00
  • bdd6905a5c Merge pull request #5850 from bootstrap-prime/mbedtls-2.28 Dave Rodgman 2022-05-19 16:53:37 +01:00
  • afe149d76e Merge pull request #5846 from bootstrap-prime/development Dave Rodgman 2022-05-19 16:53:32 +01:00
  • 4283a6b121 Merge pull request #5736 from gilles-peskine-arm/psa-raw_key_agreement-buffer_too_small Paul Elliott 2022-05-19 16:06:02 +01:00
  • d03d6d4ca0 Merge pull request #5849 from gilles-peskine-arm/psa-raw_key_agreement-buffer_too_small-2.28 Paul Elliott 2022-05-19 16:05:27 +01:00
  • 084338d336 Change mbedtls_pk_can_do_ext() usage test logic for opaque keys Neil Armstrong 2022-05-19 16:22:40 +02:00
  • 476d9c45b8 Use MBEDTLS_TEST_DEPRECATED only in tests Przemek Stekiel 2022-05-19 12:26:33 +02:00
  • 03d948c47f Refacor code for HKDF-Extract algorithm Przemek Stekiel 2022-05-19 11:45:20 +02:00
  • 2fb0dcd403 psa_hkdf_input: use more suitable condition and add comments Przemek Stekiel 2022-05-19 10:34:37 +02:00
  • fcdd023ba6 derive_output tests: add invalid input secret test for HKDF-Expand Przemek Stekiel 2022-05-19 10:28:58 +02:00
  • e3d67cb263 Improve readability Jerry Yu 2022-05-19 15:33:10 +08:00
  • fd5ea0458f add compute application transform Jerry Yu 2022-05-19 14:29:48 +08:00
  • 545432310d remove zeorize from keys Jerry Yu 2022-05-19 11:23:25 +08:00
  • cc0a13fcf8 remove unnecessary empty line Jerry Yu 2022-05-19 10:14:24 +08:00
  • 6dbbf44d78 Fix typos in documentation and constants with typo finding tool bootstrap-prime 2022-05-17 19:30:44 -04:00
  • 7ef96ea856 Fix typos in documentation and constants with typo finding tool bootstrap-prime 2022-05-18 14:08:33 -04:00
  • 306a89094a Add additional error checking Thomas Daubney 2022-05-18 14:22:08 +01:00
  • 3afb7c33d5 Update PSA compliance test branch Gilles Peskine 2022-05-17 17:23:09 +02:00
  • b398d8693f Update descryption of HKDF-Extract/Expand algs and fix comment Przemek Stekiel 2022-05-18 15:43:54 +02:00
  • 8395d7a37d Change guard of mbedtls_ssl_cipher_to_psa() with USE_PSA_CRYPTO || SSL_PROTO_TLS1_3 Neil Armstrong 2022-05-18 11:44:56 +02:00
  • 0fa8ce3498 TLS 1.3 only have AEAD ciphers, drop the PSA_ALG_IS_AEAD() check in mbedtls_ssl_tls13_get_cipher_key_info() Neil Armstrong 2022-05-17 14:42:57 +02:00
  • b818e16b29 Move out common PSA code from mbedtls_ssl_tls13_generate_handshake_keys/mbedtls_ssl_tls13_generate_application_keys Neil Armstrong 2022-05-17 09:24:52 +02:00
  • e3b0b8ab67 Remove non-PSA code in mbedtls_ssl_tls13_generate_handshake_keys/mbedtls_ssl_tls13_generate_application_keys Neil Armstrong 2022-05-17 09:11:45 +02:00
  • 93617245c3 Code style fixes Neil Armstrong 2022-05-12 08:32:03 +02:00
  • 689557ca12 Make CIPHER_C guard code as alternate of USE_PSA_CRYPTO in mbedtls_ssl_ciphersuite_get_cipher_key_bitlen() Neil Armstrong 2022-05-12 08:30:59 +02:00
  • 4f4f271850 In mbedtls_ssl_tls13_generate_handshake_keys() and mbedtls_ssl_tls13_generate_application_keys(), avoid calling mbedtls_cipher_info_from_type() Neil Armstrong 2022-05-05 15:34:39 +02:00
  • a8093f5c48 In mbedtls_ssl_tls13_populate_transform() make sure mbedtls_cipher_info_from_type() is only called when USE_PSA is disabled Neil Armstrong 2022-05-04 17:44:05 +02:00
  • 801abb69a5 Provide a PSA definition of mbedtls_ssl_ciphersuite_get_cipher_key_bitlen() when MBEDTLS_USE_PSA_CRYPTO is defined Neil Armstrong 2022-05-04 17:38:10 +02:00
  • 6ab65e28cf Merge pull request #5842 from mprse/decrypt_tests Manuel Pégourié-Gonnard 2022-05-18 12:58:50 +02:00
  • ec2ec42828 Fix formatting Thomas Daubney 2022-05-18 10:23:20 +01:00
  • 64042b8d3d Fix typo Thomas Daubney 2022-05-18 09:59:55 +01:00
  • bb2d47d956 Remove not used state Jerry Yu 2022-05-18 15:24:22 +08:00
  • e8c1fca67c move trafic set to generic Jerry Yu 2022-05-18 14:48:56 +08:00
  • d6e253ded9 fix various issues Jerry Yu 2022-05-18 13:59:24 +08:00
  • 36becb1b81 update hrr tests Jerry Yu 2022-05-12 16:57:20 +08:00
  • a7abc5eaa8 fix ci test fails Jerry Yu 2022-05-11 13:32:03 +08:00
  • 155493d4f5 fix openssl test fail. Jerry Yu 2022-04-25 13:30:18 +08:00
  • 6622049bcc test:add state check Jerry Yu 2022-04-23 13:53:36 +08:00
  • 4d8567fa9e fix various issues Jerry Yu 2022-04-17 10:57:57 +08:00
  • 03ed50ba6a Add handshake wrapup Jerry Yu 2022-04-16 17:13:30 +08:00
  • ff2269889d Add client finished Jerry Yu 2022-04-16 16:52:57 +08:00
  • 27bdc7c6b6 Implement write server finish Jerry Yu 2022-04-16 13:33:27 +08:00
  • 69dd8d4091 tls13:finished:add dummy frame work Jerry Yu 2022-04-16 12:51:26 +08:00
  • 42ed963c72 Update PSA compliance test branch Gilles Peskine 2022-05-17 17:23:09 +02:00
  • 9edf51d8cd Merge pull request #5785 from gabor-mezei-arm/5460_unify_parsing_sig_alg_ext Ronald Cron 2022-05-17 17:01:55 +02:00
  • a478441517 Merge pull request #5748 from yuhaoth/pr/add-tls13-write-certificate-and-verify Paul Elliott 2022-05-17 15:47:36 +01:00
  • 42313fbfcc psa_raw_key_agreement: return BUFFER_TOO_SMALL when warranted Gilles Peskine 2022-04-14 00:17:15 +02:00
  • 47cfdfd452 Use TEST_LE_U in some places where it applies Gilles Peskine 2022-04-14 00:12:57 +02:00
  • 063700d612 New test helper macros TEST_LE_U, TEST_LE_S Gilles Peskine 2022-04-13 23:59:52 +02:00
  • d0d777e6bc Separate the validation of the size macros and of the function Gilles Peskine 2022-04-14 00:06:33 +02:00
  • d48874f657 Improve PSA_RAW_KEY_AGREEMENT_OUTPUT_SIZE validation Gilles Peskine 2022-04-14 00:01:53 +02:00
  • 7d1502939a Test psa_raw_key_agreement with a larger/smaller buffer Gilles Peskine 2022-04-13 23:25:52 +02:00
  • 114203814a Better check for NULL pointer Paul Elliott 2022-05-13 17:43:47 +01:00
  • bbb8b75f20 Fixup comment of mbedtls_pk_can_do_ext() Neil Armstrong 2022-05-17 14:58:27 +02:00
  • 8eb0afb726 Remove duplicate pk_can_do_ext test Neil Armstrong 2022-05-17 14:58:11 +02:00
  • 408f6a60a3 Add usage parameter to mbedtls_pk_can_do_ext() Neil Armstrong 2022-05-17 14:23:20 +02:00
  • 434d4eb74f Remove invalid comments in pk_can_do_ext() Neil Armstrong 2022-05-17 11:58:22 +02:00
  • dab56ba2bd Fix typo in mbedtls_pk_can_do_ext() code documentation Neil Armstrong 2022-05-17 11:56:55 +02:00
  • cec133a242 Fix typo in mbedtls_pk_can_do_ext() documentation Neil Armstrong 2022-05-17 11:56:01 +02:00
  • 90f360e091 Aligning spaces Pol Henarejos 2022-05-17 11:33:43 +02:00
  • c79ce88152 Fix a timing leak in ecp_mul_mxz() Aurelien Jarno 2022-05-15 13:24:05 +02:00
  • 3e56130fb9 psa_raw_key_agreement: return BUFFER_TOO_SMALL when warranted Gilles Peskine 2022-04-14 00:17:15 +02:00
  • 7be11a790d Use TEST_LE_U in some places where it applies Gilles Peskine 2022-04-14 00:12:57 +02:00
  • d1465429a2 New test helper macros TEST_LE_U, TEST_LE_S Gilles Peskine 2022-04-13 23:59:52 +02:00
  • 3ff25443c8 Separate the validation of the size macros and of the function Gilles Peskine 2022-04-14 00:06:33 +02:00