summaryrefslogtreecommitdiff
path: root/crypto/ecdh.c
diff options
context:
space:
mode:
authorHui Tang <tanghui20@huawei.com>2021-05-10 11:54:08 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2021-05-21 11:17:29 +0300
commit2d016672528a592ada5188e53ac746e1b8b7a978 (patch)
tree70af544f767e871cb2a3af1f3fed60f7f1adcc0f /crypto/ecdh.c
parentb01360384009ab066940b45f34880991ea7ccbfb (diff)
downloadlinux-2d016672528a592ada5188e53ac746e1b8b7a978.tar.xz
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>
Diffstat (limited to 'crypto/ecdh.c')
0 files changed, 0 insertions, 0 deletions