diff mbox series

crypto: ecc - Add comment to ecc_digits_from_bytes about input byte array

Message ID 20240607223417.587821-1-stefanb@linux.ibm.com (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show
Series crypto: ecc - Add comment to ecc_digits_from_bytes about input byte array | expand

Commit Message

Stefan Berger June 7, 2024, 10:34 p.m. UTC
Add comment to ecc_digits_from_bytes kdoc that the first byte is expected
to hold the most significant bits of the large integer that is converted
into an array of digits.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
---
 include/crypto/internal/ecc.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Herbert Xu June 16, 2024, 5:58 a.m. UTC | #1
On Fri, Jun 07, 2024 at 06:34:17PM -0400, Stefan Berger wrote:
> Add comment to ecc_digits_from_bytes kdoc that the first byte is expected
> to hold the most significant bits of the large integer that is converted
> into an array of digits.
> 
> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
> ---
>  include/crypto/internal/ecc.h | 3 +++
>  1 file changed, 3 insertions(+)

Patch applied.  Thanks.
diff mbox series

Patch

diff --git a/include/crypto/internal/ecc.h b/include/crypto/internal/ecc.h
index f7e75e1e71f3..0717a53ae732 100644
--- a/include/crypto/internal/ecc.h
+++ b/include/crypto/internal/ecc.h
@@ -63,6 +63,9 @@  static inline void ecc_swap_digits(const void *in, u64 *out, unsigned int ndigit
  * @nbytes    Size of input byte array
  * @out       Output digits array
  * @ndigits:  Number of digits to create from byte array
+ *
+ * The first byte in the input byte array is expected to hold the most
+ * significant bits of the large integer.
  */
 void ecc_digits_from_bytes(const u8 *in, unsigned int nbytes,
 			   u64 *out, unsigned int ndigits);