mirror of
https://github.com/cuberite/polarssl.git
synced 2025-08-05 11:46:12 -04:00

In TLS, the master secret is always a key. But EAP-TLS uses the TLS PRF to derive an IV with an empty string for the "secret" input. The code always stored the secret into a key slot before calling the TLS PRF, but this doesn't work when the secret is empty, since PSA Crypto no longer supports empty keys. Add a special case for an empty secret.