tls-hkdf: Cleanups and refactorings

The main refactoring is how secrets (PSK/DH) are handled.
This commit is contained in:
Tobias Brunner
2021-02-12 11:45:44 +01:00
parent de983a3cb9
commit 6a0ee0c23c
2 changed files with 124 additions and 82 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ struct tls_hkdf_t {
*
* @param is_server TRUE if server, FALSE if client derives secret
* @param length key length, in bytes
* @param key secret will be written into this chunk
* @param key key will be written into this chunk
* @return TRUE if secrets derived successfully
*/
bool (*derive_key)(tls_hkdf_t *this, bool is_server, size_t length,