]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
crypto: ecc - Export additional helper functions
authorDaniele Alessandrelli <daniele.alessandrelli@intel.com>
Wed, 20 Oct 2021 10:35:36 +0000 (11:35 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 Oct 2021 13:04:03 +0000 (21:04 +0800)
commiteaffe377e168d25c52091cf31f5a7a6511897857
treece6b9492f254eb5bd5250472a2951ee566e04dc8
parenta745d3ace3fd65ada44d61dafa64a2a69679ac35
crypto: ecc - Export additional helper functions

Export the following additional ECC helper functions:
- ecc_alloc_point()
- ecc_free_point()
- vli_num_bits()
- ecc_point_is_zero()

This is done to allow future ECC device drivers to re-use existing code,
thus simplifying their implementation.

Functions are exported using EXPORT_SYMBOL() (instead of
EXPORT_SYMBOL_GPL()) to be consistent with the functions already
exported by crypto/ecc.c.

Exported functions are documented in include/crypto/internal/ecc.h.

Signed-off-by: Daniele Alessandrelli <daniele.alessandrelli@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ecc.c
include/crypto/internal/ecc.h