summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-06-09 12:05:53 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2026-07-05 13:22:35 +0800
commit4c7a4a34048eb3fd7fd5d1d7304278d742f99f1a (patch)
tree6d8f5523d1530f43a091e3ca3fdb96d86a4b6d0b /drivers
parent6727c44461f788bb49a37875fbc70654e8db30b2 (diff)
downloadlinux-next-4c7a4a34048eb3fd7fd5d1d7304278d742f99f1a.tar.gz
linux-next-4c7a4a34048eb3fd7fd5d1d7304278d742f99f1a.zip
crypto: atmel-i2c - improve comment in atmel_i2c_init_ecdh_cmd
Clarify that a P-256 public key is encoded as two 32-byte coordinates. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/crypto/atmel-i2c.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/crypto/atmel-i2c.c b/drivers/crypto/atmel-i2c.c
index ff19857894d0..24bded47a32b 100644
--- a/drivers/crypto/atmel-i2c.c
+++ b/drivers/crypto/atmel-i2c.c
@@ -138,9 +138,8 @@ int atmel_i2c_init_ecdh_cmd(struct atmel_i2c_cmd *cmd,
cmd->param2 = cpu_to_le16(DATA_SLOT_2);
/*
- * The device only supports NIST P256 ECC keys. The public key size will
- * always be the same. Use a macro for the key size to avoid unnecessary
- * computations.
+ * The device only supports P-256. Its public key is encoded as
+ * two 32-byte coordinates.
*/
copied = sg_copy_to_buffer(pubkey,
sg_nents_for_len(pubkey,