* [PATCH] crypto: ecc - Add comment to ecc_digits_from_bytes about input byte array
@ 2024-06-07 22:34 Stefan Berger
2024-06-16 5:58 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Berger @ 2024-06-07 22:34 UTC (permalink / raw)
To: keyrings, linux-crypto, herbert, davem
Cc: linux-kernel, jarkko, Stefan Berger
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(+)
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);
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: ecc - Add comment to ecc_digits_from_bytes about input byte array
2024-06-07 22:34 [PATCH] crypto: ecc - Add comment to ecc_digits_from_bytes about input byte array Stefan Berger
@ 2024-06-16 5:58 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2024-06-16 5:58 UTC (permalink / raw)
To: Stefan Berger; +Cc: keyrings, linux-crypto, davem, linux-kernel, jarkko
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.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-16 6:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-07 22:34 [PATCH] crypto: ecc - Add comment to ecc_digits_from_bytes about input byte array Stefan Berger
2024-06-16 5:58 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®