HomePhabricator

Use a common KDF function

Authored by Simo Sorce <simo@redhat.com> on Oct 2 2018, 12:00 AM.

Description

Use a common KDF function

Cleanup the KDF function to use only one function per crypto backend.
Improve the KDF function to properly handle requested lenght and to
avoid unnecessarily reallocating buffers.

In OpenSSL use the new EVP_KDF API if available.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>

Details

Committed
asnMar 7 2019, 12:03 PM
Parents
rLIBSSHc180211c6b80: Clean up code that generates session keys
Branches
Unknown
Tags
Unknown

Event Timeline

asn committed rLIBSSH104c9dca3f96: Use a common KDF function (authored by Simo Sorce <simo@redhat.com>).Mar 7 2019, 12:03 PM