Skip to contentSkip to conversation

lib/crypto/aesgcm.c:add kernel docs for aesgcm_mac

PATCH In review Sagar Vashnav 2 participants 2 messages Oct 25, 2023 – Nov 17, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/crypto/aesgcm.c:add kernel docs for aesgcm_mac

Add kernel documentation for the aesgcm_mac.
This function generates the authentication tag using the AES-GCM algorithm.

---
 lib/crypto/aesgcm.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
lib/crypto/aesgcm.c +13 -0
index c632d6e17..eb55cc57a 100644
@@ -73,6 +73,19 @@ static void aesgcm_ghash(be128 *ghash, const be128 *key, const void *src,
 	}
 }
 
+/**
+ * aesgcm_mac - Generates the authentication tag using AES-GCM algorithm.
+ * @ctx: The data structure that will hold the AES-GCM key schedule
+ * @src: The input source data.
+ * @src_len: Length of the source data.
+ * @assoc: Points to the associated data.
+ * @assoc_len: Length of the associated data values.
+ * @ctr: Points to the counter value.
+ * @authtag: The output buffer for the authentication tag.
+ *
+ * It takes in the AES-GCM context, source data, associated data, counter value,
+ * and an output buffer for the authentication tag.
+ */
 static void aesgcm_mac(const struct aesgcm_ctx *ctx, const u8 *src, int src_len,
 		       const u8 *assoc, int assoc_len, __be32 *ctr, u8 *authtag)
 {
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 7 lines · Sagar Vashnav

Add kernel documentation for the aesgcm_mac.
This function generates the authentication tag using the AES-GCM algorithm.

---
 lib/crypto/aesgcm.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt