HomePhabricator

curve25519: fix uninitialized arg to EVP_PKEY_derive

Authored by simonsj on Dec 14 2019, 1:59 AM.

Description

curve25519: fix uninitialized arg to EVP_PKEY_derive

Ensure that the keylen argument as provided to EVP_PKEY_derive
is initialized, otherwise depending on stack contents, the function
call may fail.

Fixes T205.

Signed-off-by: Jon Simons <jon@jonsimons.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>