mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-06-04 22:13:31 +08:00

A 0-length buffer for the key is a legitimate edge case. Ensure that it works, even with buf=NULL. Document the key and keylen parameters. There are already test cases for parsing an empty buffer. A subsequent commit will add tests for writing to an empty buffer.