Hanno Becker be3ffba33d Setup PSA-based cipher context in mbedtls_ssl_derive_keys()
This commit changes the code path in mbedtls_ssl_derive_keys()
responsible for setting up record protection cipher contexts
to attempt to use the new API mbedtls_cipher_setup_psa() in
case MBEDTLS_USE_PSA_CRYPTO is set.

For that, the AEAD tag length must be provided, which is already
computed earlier in mbedtls_ssl_derive_keys() and only needs to be
stored a function scope to be available for mbedtls_cipher_setup_psa().

If mbedtls_cipher_setup_psa() fails cleanly indicating that the
requested cipher is not supported in PSA, we fall through to
the default setup using mbedtls_cipher_setup(). However, we print
a debug message in this case, to allow catching the fallthrough in
tests where we know we're using a cipher which should be supported
by PSA.
2018-11-22 16:38:06 +00:00
..
2018-08-13 13:49:52 +03:00
2018-06-18 10:30:30 +02:00
2017-09-06 17:51:14 +03:00
2018-11-05 18:08:46 +02:00
2018-05-15 09:21:57 +01:00
2018-11-09 13:57:37 +00:00
2018-11-09 15:01:07 +00:00
2018-07-24 16:43:20 +01:00
2015-09-04 14:21:07 +02:00
2018-10-16 10:41:31 +02:00
2018-05-25 14:54:14 +01:00
2015-09-04 14:21:07 +02:00
2017-10-29 17:53:52 +02:00