Skip to content
Commit e7d2b41e authored by Stephan Müller's avatar Stephan Müller Committed by Herbert Xu
Browse files

crypto: ecdh - check validity of Z before export



SP800-56A rev3 section 5.7.1.2 step 2 mandates that the validity of the
calculated shared secret is verified before the data is returned to the
caller. Thus, the export function and the validity check functions are
reversed. In addition, the sensitive variables of priv and rand_z are
zeroized.

Signed-off-by: default avatarStephan Mueller <smueller@chronox.de>
Reviewed-by: default avatarVitaly Chikunov <vt@altlinux.org>
Acked-by: default avatarNeil Horman <nhorman@redhat.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent ef19f826
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment