~vcs-imports/libssh/trunk

Viewing all changes in revision 4481.

  • Committer: Andreas Schneider
  • Author(s): Simo Sorce
  • Date: 2019-03-07 11:03:32 UTC
  • Revision ID: git-v1:104c9dca3f963440e4f1d1170c9244682e700e28
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>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: