Commit Graph

  • 8d88a6e20d Check support for cipher in mbedtls_cipher_setup_psa() Hanno Becker 2018-11-17 22:00:38 +00:00
  • b0c05e242c Test PSA-based GCM cipher operations Hanno Becker 2018-11-15 18:04:56 +00:00
  • 5cec718191 Adapt existing Cipher-GCM test cases to new param for auth_crypt_tv Hanno Becker 2018-11-15 18:04:13 +00:00
  • a13272d6d2 Test PSA-based CCM cipher operations Hanno Becker 2018-11-12 16:27:30 +00:00
  • 56150afd1a Implement PSA-based AEAD enc/dec cipher operations Hanno Becker 2018-11-12 16:26:46 +00:00
  • f133640475 Add AEAD tag length to new mbedtls_cipher_setup_psa() Hanno Becker 2018-11-12 16:26:27 +00:00
  • 884f6af590 Always configure PSA-based keys for encryption and decryption Hanno Becker 2018-11-12 13:33:16 +00:00
  • e43164e8f1 Add AES-*-CBC test vectors for PSA-based cipher contexts Hanno Becker 2018-11-12 12:46:35 +00:00
  • 3c852a9c35 Implement PSA-based version of mbedtls_cipher_crypt() Hanno Becker 2018-11-12 12:36:17 +00:00
  • d9ca5cfd60 Implement mbedtls_cipher_setkey() for PSA-based cipher contexts Hanno Becker 2018-11-12 11:59:30 +00:00
  • 73f59fc3e9 Add PSA-specific cipher context Hanno Becker 2018-11-09 16:47:20 +00:00
  • 1cb36530be Add psa_enabled field to cipher ctx and add dummy implementations Hanno Becker 2018-11-09 16:20:29 +00:00
  • 098c9de2af Add declaration and dummy-definition of mbedtls_cipher_setup_psa() Hanno Becker 2018-11-09 16:10:57 +00:00
  • b1f0872ce6 Improve wording in documentation of mbedtls_cipher_setup() Hanno Becker 2018-11-09 16:09:19 +00:00
  • d7503a72d0 Expand documentation of mbedtls_cipher_list() Hanno Becker 2018-11-08 15:55:24 +00:00
  • 21967c5bff Fix style in cipher.c Hanno Becker 2018-11-09 16:36:33 +00:00
  • f4fb876be9 Fix style in cipher.h Hanno Becker 2018-11-08 15:57:42 +00:00
  • c3d25b31ab Fix style in NUM_CIPHERS definition in cipher_wrap.c Hanno Becker 2018-11-08 16:01:22 +00:00
  • e5a0450809 Fix style in definition of mbedtls_cipher_mode_t Hanno Becker 2018-11-08 16:57:42 +00:00
  • 6767cca100 Merge branch 'gcm_through_cipher_api_tests' into psa_cipher_ Hanno Becker 2018-11-22 14:03:14 +00:00
  • c0c882cd67 Add missing dependencies in test_suite_cipher.gcm Hanno Becker 2018-11-17 22:40:51 +00:00
  • f79aa9e3ca Adapt ChangeLog Hanno Becker 2018-11-15 17:51:24 +00:00
  • ef42f22edd Add NIST AES GCM test vectors to single-step cipher API test suite Hanno Becker 2018-11-15 17:43:32 +00:00
  • c6b6907066 Make library init and deinit more robust to errors Gilles Peskine 2018-11-20 21:42:52 +01:00
  • 445e225745 Test that deinit deactivates random generation and key slots Gilles Peskine 2018-11-20 21:00:42 +01:00
  • b309eec4a5 Move library initialization tests to a new test suite Gilles Peskine 2018-11-20 20:56:14 +01:00
  • 23a1ccd23f Fix test that wasn't actually effective Manuel Pégourié-Gonnard 2018-11-22 12:21:20 +01:00
  • 3459c749fb Create a block list for Travis CI, and fix the Coverity email Simon Butcher 2018-11-22 10:14:03 +00:00
  • e10f191543 Remove MBEDTLS_PSA_CRYPTO_SPM from config.pl Hanno Becker 2018-11-22 09:43:35 +00:00
  • fa9a1ca967 Improve description of a test Manuel Pégourié-Gonnard 2018-11-19 12:39:27 +01:00
  • 347a00e07e Add test utility function: wrap_as_opaque() Manuel Pégourié-Gonnard 2018-11-19 12:25:37 +01:00
  • 59eecb0e9e Guard against PSA generating invalid signature Manuel Pégourié-Gonnard 2018-11-16 10:54:54 +01:00
  • 9a5a77ba7c Use shared function for error translation Manuel Pégourié-Gonnard 2018-11-16 10:15:09 +01:00
  • 45013a1d54 Fix a compliance issue in signature encoding Manuel Pégourié-Gonnard 2018-11-16 10:09:11 +01:00
  • 509aff111f Improve documentation of an internal function Manuel Pégourié-Gonnard 2018-11-15 12:17:38 +01:00
  • d8454bc515 Get rid of large stack buffers in PSA sign wrapper Manuel Pégourié-Gonnard 2018-11-13 10:32:00 +01:00
  • 2f2b396b7a Add new macro to detemine ECDSA signature length Manuel Pégourié-Gonnard 2018-11-12 15:06:57 +01:00
  • 392dc045c9 Improve documentation of mbedtls_pk_setup_opaque() Manuel Pégourié-Gonnard 2018-11-13 10:48:23 +01:00
  • 69baf70984 Align names to use "opaque" only everywhere Manuel Pégourié-Gonnard 2018-11-06 09:34:30 +01:00
  • 3686771dfa Implement pk_sign() for opaque ECDSA keys Manuel Pégourié-Gonnard 2018-10-31 16:22:49 +01:00
  • d97390e97d Add tests for unsupported operations/functions Manuel Pégourié-Gonnard 2018-10-31 11:14:36 +01:00
  • 920c063bad Implement can_do for opaque ECC keypairs Manuel Pégourié-Gonnard 2018-10-31 10:57:29 +01:00
  • 0184b3c69b Add support for get_(bit)len on opaque keys Manuel Pégourié-Gonnard 2018-10-31 10:36:51 +01:00
  • 01a12c49aa Add key generation to opaque test function Manuel Pégourié-Gonnard 2018-10-31 10:28:01 +01:00
  • 7b5fe041f1 Implement alloc/free wrappers for pk_opaque_psa Manuel Pégourié-Gonnard 2018-10-31 09:57:45 +01:00
  • eaeb7b23ff Clarify return value of pk_check_pair() Manuel Pégourié-Gonnard 2018-10-24 12:37:44 +02:00
  • 20678b2ae2 Skeleton for PK_OPAQUE_PSA Manuel Pégourié-Gonnard 2018-10-22 12:11:15 +02:00
  • c44e0a4bd1 Initialize PSA key slot as invalid in ssl_client2.c Hanno Becker 2018-11-19 11:44:14 +00:00
  • 7390c71609 Share code for PSK identity configuration Hanno Becker 2018-11-15 13:33:04 +00:00
  • f9a3287b7f Fix typo in documentation of mbedtls_ssl_conf_psk() Hanno Becker 2018-11-15 13:18:25 +00:00
  • 1d911cd59d Automatically allocate opaque PSK key slots in ssl_{client/server}2 Hanno Becker 2018-11-15 13:06:09 +00:00
  • c43b6ea847 Destroy PSA-based temporary opaque PSKs at the end of ssl_server2 Hanno Becker 2018-11-05 13:48:43 +00:00
  • 3f24ea976d Destroy PSA-based temporary opaque PSK key at the end of ssl_client2 Hanno Becker 2018-11-05 13:25:17 +00:00
  • 5cd607bf2e Remove overly long line in ssl_client2.c Hanno Becker 2018-11-05 12:52:42 +00:00
  • a63ac3f149 Safe-guard ssl_conf_remove_psk() for simultaneous raw-opaque PSKs Hanno Becker 2018-11-05 12:47:16 +00:00
  • f9ed7d5f76 Don't use 48 as a magic number in ssl_derive_keys() Hanno Becker 2018-11-05 12:45:16 +00:00
  • c1385c104f Don't use idiom if( func() ) but always add explicit value check Hanno Becker 2018-11-05 12:44:27 +00:00
  • 463194d47a Fix typo in documentation of mbedtls_ssl_conf_opaque_psk() Hanno Becker 2018-11-05 12:44:15 +00:00
  • 28c79dc3d0 Add tests to ssl-opt.sh exercising server-side opaque PSK Hanno Becker 2018-10-26 13:15:08 +01:00
  • 845b946d92 Add server-support for opaque PSKs Hanno Becker 2018-10-26 12:07:29 +01:00
  • 520224e577 Rename ssl_conf_has_[raw_]_psk to ssl_conf_has_static_[raw_]psk Hanno Becker 2018-10-26 11:38:07 +01:00
  • b64ba5f2c0 Add support for opaque PSKs to ssl_server2 example application Hanno Becker 2018-10-26 11:28:08 +01:00
  • f7027514fb Add tests to ssl-opt.sh exercising client-side opaque PSK Hanno Becker 2018-10-23 15:27:39 +01:00
  • afd311ee12 Skip PMS generation on client if opaque PSK is used Hanno Becker 2018-10-23 15:26:40 +01:00
  • 7d0a569d38 Implement PSA-based PSK-to-MS derivation in mbedtls_ssl_derive_keys Hanno Becker 2018-10-23 15:26:22 +01:00
  • 35b23c7484 Simplify master secret derivation in mbedtls_ssl_derive_keys() Hanno Becker 2018-10-23 12:10:41 +01:00
  • dfab8e221a Allow opaque PSKs in pure-PSK ciphersuites only Hanno Becker 2018-10-23 11:59:34 +01:00
  • 2e4f616708 Don't suggest the use of a PSK suite if no PSK configured on client Hanno Becker 2018-10-23 11:54:44 +01:00
  • e86964ca01 Add support for opaque PSKs in ssl_client2 example program Hanno Becker 2018-10-23 11:37:50 +01:00
  • d20a8ca733 Implement API for configuration of opaque PSKs Hanno Becker 2018-10-22 15:31:26 +01:00
  • 4363313976 Add opaque PSK identifier to SSL configuration Hanno Becker 2018-10-22 15:31:03 +01:00
  • d9f7d43b5f Add opaque PSK identifier to mbedtls_ssl_handshake_params Hanno Becker 2018-10-22 15:29:46 +01:00
  • 0228304b5f Add API for configuration of opaque PSK Hanno Becker 2018-10-22 15:28:02 +01:00
  • 6e02197e24 Refer to PSA through MBEDTLS_USE_PSA_CRYPTO, not USE_PSA, in all.sh Hanno Becker 2018-11-19 15:16:12 +00:00
  • 4d30776826 Remove double white space Hanno Becker 2018-11-19 15:15:01 +00:00
  • 186b65ac61 Use MBEDTLS_PSA_UTIL_H instead of MBEDTLS_PSA_COMPAT_H in psa_util.h Hanno Becker 2018-11-19 15:14:21 +00:00
  • 51560b62ed State explicitly that any API depending on PSA is unstable Hanno Becker 2018-11-19 09:46:26 +00:00
  • f0cd6191ef Update VisualC files Hanno Becker 2018-11-18 07:16:46 +00:00
  • f5f9ea26bb Improve documentation of mbedtls_psa_err_translate_pk() Hanno Becker 2018-11-16 15:01:22 +00:00
  • 010cf7eced Add AEAD tag length parameter to mbedtls_psa_translate_cipher_mode() Hanno Becker 2018-11-15 15:48:57 +00:00
  • 000334f398 Add function to translate PSA errors to PK module errors Hanno Becker 2018-11-15 09:37:19 +00:00
  • afebf5a153 Fix Doxygen annotation in psa_util.h Hanno Becker 2018-11-13 21:01:41 +00:00
  • 5a9942e7d2 Initialize PSA Crypto implementation in ssl_server2 Hanno Becker 2018-11-12 17:47:48 +00:00
  • b2b468ba45 Initialize PSA Crypto implementation in ssl_client2.c Hanno Becker 2018-11-12 17:46:59 +00:00
  • 1cfc5ddb11 Initialize PSA Crypto implementation at the start of each test suite Hanno Becker 2018-11-12 13:18:45 +00:00
  • b26c1938d2 Make PSA utility functions static inline Hanno Becker 2018-11-12 10:18:57 +00:00
  • 5525126ed8 Add PSA-to-Mbed TLS translations for cipher module Hanno Becker 2018-11-12 09:29:12 +00:00
  • 87837b2ec6 Add internal header for PSA utility functions Hanno Becker 2018-11-08 13:32:02 +00:00
  • 655c0a8d76 Add build using PSA to all.sh Manuel Pégourié-Gonnard 2018-10-30 11:20:45 +01:00
  • aeefa49edd Add config option for X.509/TLS to use PSA Manuel Pégourié-Gonnard 2018-10-22 12:14:52 +02:00
  • a678f233a7 Merge pull request #197 from netanelgonen/entropy-inject Gilles Peskine 2018-11-21 19:21:05 +01:00
  • 55517ae95f Merge remote-tracking branch 'public/pr/2146' into development-proposed Simon Butcher 2018-11-21 16:27:47 +00:00
  • 0d2c266c06 change MBEDTLS_RANDOM_SEED_ITS define to be PSA_CRYPTO_ITS_RANDOM_SEED_UID avolinski 2018-11-21 17:31:07 +02:00
  • 1c66205df6 Remove trailing space in psa_crypto.c avolinski 2018-11-21 16:54:09 +02:00
  • 83146e10bb Merge pull request #211 from ARMmbed/bug_fix_210 Gilles Peskine 2018-11-21 15:51:07 +01:00
  • 13beb100c2 Adjust psa entropy inject tests to take as minimum seed size avolinski 2018-11-20 16:51:49 +02:00
  • 7cc8229d80 Replace MBED_RANDOM_SEED_ITS_UID with MBEDTLS_RANDOM_SEED_ITS_UID avolinski 2018-11-20 15:52:25 +02:00
  • 4d27c94aee Adding testcase for PSA validate entropy injection: bad, too small using MBEDTLS_ENTROPY_MIN_PLATFORM avolinski 2018-11-20 15:48:54 +02:00
  • 21f37cbbec Add Tests for psa crypto entropy incjection Netanel Gonen 2018-11-19 11:53:55 +02:00
  • ee2ffd311b Document the maximum seed size as well as the minimum Gilles Peskine 2018-11-16 11:02:49 +01:00