Skip to contentSkip to conversation

ecc: delete a useless function declaration

PATCH Superseded Meng Yu 2 participants 3 messages Apr 2, 2021 – Apr 6, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Meng Yu

author
#0 lore raw

PATCH 1/1 ecc: delete a useless function declaration

This function declaration has been added in 'ecc_curve.h', delete it in 'crypto/ecc.h'.

Fixes 14bb76768275(crypto: ecc - expose ecc curves)
---
 crypto/ecc.h | 8 --------
 1 file changed, 8 deletions(-)
crypto/ecc.h +0 -8
index 46aa9bc..a006132 100644
@@ -56,14 +56,6 @@ static inline void ecc_swap_digits(const u64 *in, u64 *out, unsigned int ndigits
 }
 
 /**
- * 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
  *
  * @curve_id:		id representing the curve to use
Signature · 1 line
2.8.1
#1 lore raw

Le 02/04/2021 à 11:55, Meng Yu a écrit :

Quoted 4 lines

This function declaration has been added in 'ecc_curve.h', delete it in 'crypto/ecc.h'.

Fixes 14bb76768275(crypto: ecc - expose ecc curves)

Fixes tag is wrong I think, should be 4e6602916bc6

Quoted 25 lines
---
  crypto/ecc.h | 8 --------
  1 file changed, 8 deletions(-)
crypto/ecc.h +0 -8
index 46aa9bc..a006132 100644
@@ -56,14 +56,6 @@ static inline void ecc_swap_digits(const u64 *in, u64 *out, unsigned int ndigits
  }
 
  /**
- * 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
   *
   * @curve_id:		id representing the curve to use
author
#2 lore raw
Quoted 10 lines · Christophe Leroy

Le 02/04/2021 à 11:55, Meng Yu a écrit :

Quoted 4 lines

This function declaration has been added in 'ecc_curve.h', delete it in 'crypto/ecc.h'.

Fixes 14bb76768275(crypto: ecc - expose ecc curves)

Fixes tag is wrong I think, should be 4e6602916bc6

Yes, you are right, thank you.

Quoted 26 lines
Quoted 21 lines

---
  crypto/ecc.h | 8 --------

  1 file changed, 8 deletions(-)
crypto/ecc.h +0 -0
index 46aa9bc..a006132 100644
@@ -56,14 +56,6 @@ static inline void ecc_swap_digits(const u64 *in, 

u64 *out, unsigned int ndigits
  }
  /**
- * 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
- */

crypto/ecc.h +0 -3
-const struct ecc_curve *ecc_get_curve(unsigned int curve_id);
-
-/**
Quoted 4 lines

   * ecc_is_key_valid() - Validate a given ECDH private key *
   * @curve_id:        id representing the curve to use

.