diff options
author | Roman Smirnov <r.smirnov@omp.ru> | 2024-04-01 15:16:23 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-04-12 15:07:51 +0800 |
commit | 322035a7beec0f4e578e98c24d8925ac816f2b92 (patch) | |
tree | 1a8803efae178cc6aa17fddf7f7c6cf2f6b2cf32 /crypto/jitterentropy.c | |
parent | 8580d769c67eceecce54781f7ec1e646dbe7ecb1 (diff) | |
download | linux-crypto-322035a7beec0f4e578e98c24d8925ac816f2b92.tar.gz linux-crypto-322035a7beec0f4e578e98c24d8925ac816f2b92.zip |
crypto: ecc - remove checks in crypto_ecdh_shared_secret() and ecc_make_pub_key()
With the current state of the code, ecc_get_curve() cannot return
NULL in crypto_ecdh_shared_secret() and ecc_make_pub_key(). This is
conditioned by the fact that they are only called from ecdh_compute_value(),
which implements the kpp_alg::{generate_public_key,compute_shared_secret}()
methods. Also ecdh implements the kpp_alg::init() method, which is called
before the other methods and sets ecdh_ctx::curve_id to a valid value.
Signed-off-by: Roman Smirnov <r.smirnov@omp.ru>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/jitterentropy.c')
0 files changed, 0 insertions, 0 deletions