Commit Graph

  • 91cb605032 Add missing newline at the end of test_suite_cipher.gcm.data Hanno Becker 2018-11-19 13:47:15 +00:00
  • fea4915459 Minor rewording in documentation of PSA-based cipher context Hanno Becker 2018-11-17 22:15:20 +00:00
  • 1908655231 Use enum for slot state in PSA-based cipher context Hanno Becker 2018-11-17 22:11:16 +00:00
  • 4ee7e76378 Check support for cipher in mbedtls_cipher_setup_psa() Hanno Becker 2018-11-17 22:00:38 +00:00
  • e15c71ca72 Test PSA-based GCM cipher operations Hanno Becker 2018-11-15 18:04:56 +00:00
  • 78115ac478 Adapt existing Cipher-GCM test cases to new param for auth_crypt_tv Hanno Becker 2018-11-15 18:04:13 +00:00
  • 1ccb1d614d Test PSA-based CCM cipher operations Hanno Becker 2018-11-12 16:27:30 +00:00
  • fe73adee5a Implement PSA-based AEAD enc/dec cipher operations Hanno Becker 2018-11-12 16:26:46 +00:00
  • 20120b373e Add AEAD tag length to new mbedtls_cipher_setup_psa() Hanno Becker 2018-11-12 16:26:27 +00:00
  • a395d8f1e9 Always configure PSA-based keys for encryption and decryption Hanno Becker 2018-11-12 13:33:16 +00:00
  • 58fc9aab54 Add AES-*-CBC test vectors for PSA-based cipher contexts Hanno Becker 2018-11-12 12:46:35 +00:00
  • 55e2e3d5cc Implement PSA-based version of mbedtls_cipher_crypt() Hanno Becker 2018-11-12 12:36:17 +00:00
  • edda8b8830 Implement mbedtls_cipher_setkey() for PSA-based cipher contexts Hanno Becker 2018-11-12 11:59:30 +00:00
  • 6118e43d15 Add PSA-specific cipher context Hanno Becker 2018-11-09 16:47:20 +00:00
  • ce1ddee13a Add psa_enabled field to cipher ctx and add dummy implementations Hanno Becker 2018-11-09 16:20:29 +00:00
  • 4ccfc40aef Add declaration and dummy-definition of mbedtls_cipher_setup_psa() Hanno Becker 2018-11-09 16:10:57 +00:00
  • 73907f842b Improve wording in documentation of mbedtls_cipher_setup() Hanno Becker 2018-11-09 16:09:19 +00:00
  • f28d344832 Expand documentation of mbedtls_cipher_list() Hanno Becker 2018-11-08 15:55:24 +00:00
  • 18597cd3c4 Fix style in cipher.c Hanno Becker 2018-11-09 16:36:33 +00:00
  • c8b699dfa4 Fix style in cipher.h Hanno Becker 2018-11-08 15:57:42 +00:00
  • 0953ba1899 Fix style in NUM_CIPHERS definition in cipher_wrap.c Hanno Becker 2018-11-08 16:01:22 +00:00
  • 2e009fe013 Fix style in definition of mbedtls_cipher_mode_t Hanno Becker 2018-11-08 16:57:42 +00:00
  • 4ba0901bfc Merge branch 'gcm_through_cipher_api_tests' into gcm_through_cipher_api_tests_tmp Hanno Becker 2018-11-22 16:32:30 +00:00
  • 4097578207 Initialize PSA key slot as invalid in ssl_client2.c Hanno Becker 2018-11-19 11:44:14 +00:00
  • e9bf0f4c32 Share code for PSK identity configuration Hanno Becker 2018-11-15 13:33:04 +00:00
  • ed437a674e Fix typo in documentation of mbedtls_ssl_conf_psk() Hanno Becker 2018-11-15 13:18:25 +00:00
  • a6f1d18afe Automatically allocate opaque PSK key slots in ssl_{client/server}2 Hanno Becker 2018-11-15 13:06:09 +00:00
  • 01612e2886 Destroy PSA-based temporary opaque PSKs at the end of ssl_server2 Hanno Becker 2018-11-05 13:48:43 +00:00
  • 923cd655e0 Destroy PSA-based temporary opaque PSK key at the end of ssl_client2 Hanno Becker 2018-11-05 13:25:17 +00:00
  • 39eb4274bb Remove overly long line in ssl_client2.c Hanno Becker 2018-11-05 12:52:42 +00:00
  • bffefae305 Safe-guard ssl_conf_remove_psk() for simultaneous raw-opaque PSKs Hanno Becker 2018-11-05 12:47:16 +00:00
  • 4d057f61a7 Don't use 48 as a magic number in ssl_derive_keys() Hanno Becker 2018-11-05 12:45:16 +00:00
  • 5916c99cc3 Don't use idiom if( func() ) but always add explicit value check Hanno Becker 2018-11-05 12:44:27 +00:00
  • 3d4261bb21 Fix typo in documentation of mbedtls_ssl_conf_opaque_psk() Hanno Becker 2018-11-05 12:44:15 +00:00
  • 5a1d6da8f8 Add tests to ssl-opt.sh exercising server-side opaque PSK Hanno Becker 2018-10-26 13:15:08 +01:00
  • 4855c2d4c2 Add server-support for opaque PSKs Hanno Becker 2018-10-26 12:07:29 +01:00
  • 8bb28b9470 Rename ssl_conf_has_[raw_]_psk to ssl_conf_has_static_[raw_]psk Hanno Becker 2018-10-26 11:38:07 +01:00
  • ef29b2c3c9 Add support for opaque PSKs to ssl_server2 example application Hanno Becker 2018-10-26 11:28:08 +01:00
  • f5e56299ea Add tests to ssl-opt.sh exercising client-side opaque PSK Hanno Becker 2018-10-23 15:27:39 +01:00
  • 21e98b4114 Skip PMS generation on client if opaque PSK is used Hanno Becker 2018-10-23 15:26:40 +01:00
  • b7aaf1e641 Implement PSA-based PSK-to-MS derivation in mbedtls_ssl_derive_keys Hanno Becker 2018-10-23 15:26:22 +01:00
  • 1e414e5d1d Simplify master secret derivation in mbedtls_ssl_derive_keys() Hanno Becker 2018-10-23 12:10:41 +01:00
  • a32400bc6b Allow opaque PSKs in pure-PSK ciphersuites only Hanno Becker 2018-10-23 11:59:34 +01:00
  • a5ce0fd77f 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
  • fac92db771 Add support for opaque PSKs in ssl_client2 example program Hanno Becker 2018-10-23 11:37:50 +01:00
  • c6b8d400a0 Implement API for configuration of opaque PSKs Hanno Becker 2018-10-22 15:31:26 +01:00
  • b94493cbc5 Add opaque PSK identifier to SSL configuration Hanno Becker 2018-10-22 15:31:03 +01:00
  • ce620dd8b0 Add opaque PSK identifier to mbedtls_ssl_handshake_params Hanno Becker 2018-10-22 15:29:46 +01:00
  • 866fc7e3a7 Add API for configuration of opaque PSK Hanno Becker 2018-10-22 15:28:02 +01:00
  • 12bd57b8c8 Refer to PSA through MBEDTLS_USE_PSA_CRYPTO, not USE_PSA, in all.sh Hanno Becker 2018-11-19 15:16:12 +00:00
  • fc359fd837 Remove double white space Hanno Becker 2018-11-19 15:15:01 +00:00
  • 47a6291445 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
  • 56a78dd4ad State explicitly that any API depending on PSA is unstable Hanno Becker 2018-11-19 09:46:26 +00:00
  • 77030426a0 Update VisualC files Hanno Becker 2018-11-18 07:16:46 +00:00
  • 4d9e1e0ac4 Improve documentation of mbedtls_psa_err_translate_pk() Hanno Becker 2018-11-16 15:01:22 +00:00
  • dec64735e2 Add AEAD tag length parameter to mbedtls_psa_translate_cipher_mode() Hanno Becker 2018-11-15 15:48:57 +00:00
  • 14f78b03bb Add function to translate PSA errors to PK module errors Hanno Becker 2018-11-15 09:37:19 +00:00
  • 639a4320ca Fix Doxygen annotation in psa_util.h Hanno Becker 2018-11-13 21:01:41 +00:00
  • 06b6f34e9f Initialize PSA Crypto implementation in ssl_server2 Hanno Becker 2018-11-12 17:47:48 +00:00
  • 50955d1c18 Initialize PSA Crypto implementation in ssl_client2.c Hanno Becker 2018-11-12 17:46:59 +00:00
  • eba9993171 Initialize PSA Crypto implementation at the start of each test suite Hanno Becker 2018-11-12 13:18:45 +00:00
  • 5f48818712 Make PSA utility functions static inline Hanno Becker 2018-11-12 10:18:57 +00:00
  • 28b9d35904 Add PSA-to-Mbed TLS translations for cipher module Hanno Becker 2018-11-12 09:29:12 +00:00
  • 560aeaf26b Add internal header for PSA utility functions Hanno Becker 2018-11-08 13:32:02 +00:00
  • dde4442581 Add build using PSA to all.sh Manuel Pégourié-Gonnard 2018-10-30 11:20:45 +01:00
  • 26fd730876 Add config option for X.509/TLS to use PSA Manuel Pégourié-Gonnard 2018-10-22 12:14:52 +02:00
  • ad5d58124a pk_wrap.c: fix length mismatch check placement Andrzej Kurek 2018-11-20 07:59:18 -05:00
  • eeac03b354 pk_wrap.c: tidy up signature extraction Andrzej Kurek 2018-11-20 06:39:06 -05:00
  • 6cb63aa010 Cosmetic changes Andrzej Kurek 2018-11-20 05:14:46 -05:00
  • 9241d18773 pk_wrap: rework and tidy up signature extraction Andrzej Kurek 2018-11-20 05:04:35 -05:00
  • b6016c52c5 pk_wrap: reuse a static buffer for signature extraction Andrzej Kurek 2018-11-19 17:41:58 -05:00
  • b7b0478f76 pk_wrap: rework signature extraction to work with small r and s values Andrzej Kurek 2018-11-19 17:01:16 -05:00
  • 2baae9ef71 Add tests for ECDSA verify with short r, s values Manuel Pégourié-Gonnard 2018-11-15 11:44:11 +01:00
  • 4f0253962e pk_wrap: improve error codes returned from ecdsa_verify_wrap Andrzej Kurek 2018-11-19 14:53:35 -05:00
  • 2122774d72 pk_wrap: switch to helper functions defined in psa_util.h Andrzej Kurek 2018-11-19 14:33:01 -05:00
  • c05ec9f39c pk_wrap: test if a valid md_alg is passed to ecdsa_verify_wrap Andrzej Kurek 2018-11-08 05:04:53 -05:00
  • cef91afab6 pk_wrap: destroy key slot on errors with policy or key importing Andrzej Kurek 2018-11-08 04:33:06 -05:00
  • 3f864c2457 pk_wrap: add a check for equal signature parts Andrzej Kurek 2018-11-07 09:30:50 -05:00
  • b3d1b12177 pk_wrap: check if curve conversion is successful Andrzej Kurek 2018-11-07 08:18:52 -05:00
  • ea84233e02 pk_wrap: nullify the signature pointer on error in extract_ecdsa_sig Andrzej Kurek 2018-11-07 03:19:08 -05:00
  • 6376d638b8 pk_wrap: cosmetic changes Andrzej Kurek 2018-11-06 08:50:04 -05:00
  • 8b036a6082 pk_wrap.c: add support for ecdsa signature verification using PSA Andrzej Kurek 2018-10-31 05:16:46 -04:00
  • 0cfaed1858 fix doxigen issue Gilles Peskine 2018-11-22 17:11:45 +02:00
  • 1d7195f715 always compile mbedtls_psa_inject_entropy Netanel Gonen 2018-11-22 16:24:48 +02:00
  • cfdf8f4d8f Implement key_opaque option to ssl_client2 Manuel Pégourié-Gonnard 2018-11-08 09:52:25 +01:00
  • ef68be4553 Add option key_opaque to ssl_client2 (skeleton) Manuel Pégourié-Gonnard 2018-11-07 09:42:35 +01:00
  • e9420c2aff Rename PSA test in ssl-opt.sh Hanno Becker 2018-11-20 11:37:34 +00:00
  • a0dc9cf8ec Remove superfluous quotes in ssl-opt.sh Hanno Becker 2018-11-20 11:31:17 +00:00
  • cb1cc80cf5 Use PSA-based ciphers for record protections in TLS-1.2 only Hanno Becker 2018-11-17 22:27:38 +00:00
  • 679d8ceb13 Use PSA-based ciphers for SSL ticket protection Hanno Becker 2018-11-17 21:25:59 +00:00
  • d140d0828e Introduce macros for constants in SSL ticket implementation Hanno Becker 2018-11-17 21:18:01 +00:00
  • 9b5853c846 Add runs for specific PSA-supported ciphersuites to ssl-opt.sh Hanno Becker 2018-11-16 17:28:40 +00:00
  • 9d76d56d81 Omit tests from ssl-opt.sh which force a disabled ciphersuite Hanno Becker 2018-11-16 17:27:29 +00:00
  • f704befee8 Setup PSA-based cipher context in mbedtls_ssl_derive_keys() Hanno Becker 2018-11-16 15:21:18 +00:00
  • 7909c4c875 Improve doc wording of PSA status field of mbedtls_cipher_context_t Hanno Becker 2018-11-20 11:34:34 +00:00
  • a654c3e38a Return 'Feature unavailable' error for ciphers unsupported by PSA Hanno Becker 2018-11-20 11:34:03 +00:00
  • 115e1a4e5b Don't use multiline comments in enums to silence check-names.sh Hanno Becker 2018-11-19 14:05:48 +00:00
  • b1b2c01df4 Add missing newline at the end of test_suite_cipher.gcm.data Hanno Becker 2018-11-19 13:47:15 +00:00
  • 625f94b2fd Minor rewording in documentation of PSA-based cipher context Hanno Becker 2018-11-17 22:15:20 +00:00
  • ce61a32e6a Use enum for slot state in PSA-based cipher context Hanno Becker 2018-11-17 22:11:16 +00:00