Re: [PATCH v6 1/4] crypto: Add support for ECDSA signature verification

From: Stefan Berger
Date: Mon Feb 01 2021 - 08:05:52 EST


On 2/1/21 2:24 AM, yumeng wrote:


在 2021/2/1 7:32, Stefan Berger 写道:
+/**
+ * ecc_get_curve()  - Get a curve given its curve_id
+ *
+ * @curve_id:  Id of the curve
+ *
+ * Returns pointer to the curve data, NULL if curve is not available
+ */
+const struct ecc_curve *ecc_get_curve(unsigned int curve_id);
+
  /**
   * ecc_is_key_valid() - Validate a given ECDH private key


Shall we move this definition to 'include/crypto'? Other drivers may also want to use it.

Maybe the driver that starts using would move it?