Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: sm2 - Fix crash caused by uninitialized context
In sm2_compute_z_digest() function, the newly allocated structure mpi_ec_ctx is used, but forget to initialize it, which will cause a crash when performing subsequent operations. Fixes: e5221fa ("KEYS: asymmetric: Move sm2 code into x509_public_key") Cc: [email protected] # v6.5 Signed-off-by: Tianjia Zhang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information