]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit - crypto/testmgr.h
crypto: testmgr - fix initialization of 'secret_size'
authorHui Tang <tanghui20@huawei.com>
Mon, 10 May 2021 08:54:08 +0000 (16:54 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 May 2021 08:17:29 +0000 (16:17 +0800)
commit2d016672528a592ada5188e53ac746e1b8b7a978
tree70af544f767e871cb2a3af1f3fed60f7f1adcc0f
parentb01360384009ab066940b45f34880991ea7ccbfb
crypto: testmgr - fix initialization of 'secret_size'

Actual data length of the 'secret' is not equal to the 'secret_size'.

Since the 'curve_id' has removed in the 'secret', the 'secret_size'
should subtract the length of the 'curve_id'.

Fixes: 6763f5ea2d9a ("crypto: ecdh - move curve_id of ECDH from ...")
Signed-off-by: Hui Tang <tanghui20@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.h