]> Git Repo - linux.git/commit
crypto: ecdh - check validity of Z before export
authorStephan Müller <[email protected]>
Mon, 20 Jul 2020 17:07:48 +0000 (19:07 +0200)
committerHerbert Xu <[email protected]>
Fri, 31 Jul 2020 08:08:58 +0000 (18:08 +1000)
commite7d2b41e5c773c1e00f0f30519b9790ba7e4a58c
treeccf050a858e5391e96a11fc5c25c7d4d29a0d7c0
parentef19f826eceabdef3a710958cbf3549355267645
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: Stephan Mueller <[email protected]>
Reviewed-by: Vitaly Chikunov <[email protected]>
Acked-by: Neil Horman <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
crypto/ecc.c
This page took 0.052277 seconds and 4 git commands to generate.