summaryrefslogtreecommitdiffstats
path: root/include/crypto/ecdh.h
diff options
context:
space:
mode:
authorMeng Yu <yumeng18@huawei.com>2021-03-04 07:35:46 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2021-03-12 14:04:03 +0100
commit6763f5ea2d9ac9b5a34a374ee637b5e4f1f525dd (patch)
tree8a86d9ad01182558215fcf97f22f125a7688c74f /include/crypto/ecdh.h
parentcrypto: hisilicon/hpre - add algorithm type (diff)
downloadlinux-6763f5ea2d9ac9b5a34a374ee637b5e4f1f525dd.tar.xz
linux-6763f5ea2d9ac9b5a34a374ee637b5e4f1f525dd.zip
crypto: ecdh - move curve_id of ECDH from the key to algorithm name
1. crypto and crypto/atmel-ecc: Move curve id of ECDH from the key into the algorithm name instead in crypto and atmel-ecc, so ECDH algorithm name change form 'ecdh' to 'ecdh-nist-pxxx', and we cannot use 'curve_id' in 'struct ecdh'; 2. crypto/testmgr and net/bluetooth: Modify 'testmgr.c', 'testmgr.h' and 'net/bluetooth' to adapt the modification. Signed-off-by: Meng Yu <yumeng18@huawei.com> Reviewed-by: Zaibo Xu <xuzaibo@huawei.com> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/ecdh.h')
-rw-r--r--include/crypto/ecdh.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/crypto/ecdh.h b/include/crypto/ecdh.h
index a5b805b5526d..deaaa4822174 100644
--- a/include/crypto/ecdh.h
+++ b/include/crypto/ecdh.h
@@ -29,12 +29,10 @@
/**
* struct ecdh - define an ECDH private key
*
- * @curve_id: ECC curve the key is based on.
* @key: Private ECDH key
* @key_size: Size of the private ECDH key
*/
struct ecdh {
- unsigned short curve_id;
char *key;
unsigned short key_size;
};