crypto: cleanup comments
authorTom Rix <trix@redhat.com>
Mon, 21 Feb 2022 22:31:18 +0000 (14:31 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 2 Mar 2022 22:49:20 +0000 (10:49 +1200)
For spdx
/* */ for *.h, // for *.c
Space before spdx tag

Replacements
paramenters to parameters
aymmetric to asymmetric
sigature to signature
boudary to boundary
compliled to compiled
eninges to engines
explicity to explicitly

Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/asymmetric_keys/signature.c
crypto/asymmetric_keys/x509_parser.h
crypto/async_tx/async_xor.c
crypto/async_tx/raid6test.c
crypto/cfb.c
crypto/sm2.c

index 4aff3eebec177b2deafb03ca8ad8d9c506d8b9f6..2deff81f8af50bfed8159b72d119e95d35dbe510 100644 (file)
@@ -35,7 +35,7 @@ void public_key_signature_free(struct public_key_signature *sig)
 EXPORT_SYMBOL_GPL(public_key_signature_free);
 
 /**
- * query_asymmetric_key - Get information about an aymmetric key.
+ * query_asymmetric_key - Get information about an asymmetric key.
  * @params: Various parameters.
  * @info: Where to put the information.
  */
index c233f136fb354db9987bf72fcba9b6560b6b30bf..668f5c9f0b54aa60dc0fcea16f3450ba33385bae 100644 (file)
@@ -22,7 +22,7 @@ struct x509_certificate {
        time64_t        valid_to;
        const void      *tbs;                   /* Signed data */
        unsigned        tbs_size;               /* Size of signed data */
-       unsigned        raw_sig_size;           /* Size of sigature */
+       unsigned        raw_sig_size;           /* Size of signature */
        const void      *raw_sig;               /* Signature data */
        const void      *raw_serial;            /* Raw serial number in ASN.1 */
        unsigned        raw_serial_size;
index d8a91521144e0a58d0e8797d07cd13b09ec7f7a1..1a3855284091d8735f3cb0d67b36d0cea63c8189 100644 (file)
@@ -170,8 +170,8 @@ dma_xor_aligned_offsets(struct dma_device *device, unsigned int offset,
  *
  * xor_blocks always uses the dest as a source so the
  * ASYNC_TX_XOR_ZERO_DST flag must be set to not include dest data in
- * the calculation.  The assumption with dma eninges is that they only
- * use the destination buffer as a source when it is explicity specified
+ * the calculation.  The assumption with dma engines is that they only
+ * use the destination buffer as a source when it is explicitly specified
  * in the source list.
  *
  * src_list note: if the dest is also a source it must be at index zero.
@@ -261,8 +261,8 @@ EXPORT_SYMBOL_GPL(async_xor_offs);
  *
  * xor_blocks always uses the dest as a source so the
  * ASYNC_TX_XOR_ZERO_DST flag must be set to not include dest data in
- * the calculation.  The assumption with dma eninges is that they only
- * use the destination buffer as a source when it is explicity specified
+ * the calculation.  The assumption with dma engines is that they only
+ * use the destination buffer as a source when it is explicitly specified
  * in the source list.
  *
  * src_list note: if the dest is also a source it must be at index zero.
index 66db82e5a3b13675f95b0f3283e8b0a415980ca3..c9d218e53bcb0a2aafc7a71d9ebd7a118a601a55 100644 (file)
@@ -217,7 +217,7 @@ static int raid6_test(void)
                err += test(12, &tests);
        }
 
-       /* the 24 disk case is special for ioatdma as it is the boudary point
+       /* the 24 disk case is special for ioatdma as it is the boundary point
         * at which it needs to switch from 8-source ops to 16-source
         * ops for continuation (assumes DMA_HAS_PQ_CONTINUE is not set)
         */
@@ -241,7 +241,7 @@ static void raid6_test_exit(void)
 }
 
 /* when compiled-in wait for drivers to load first (assumes dma drivers
- * are also compliled-in)
+ * are also compiled-in)
  */
 late_initcall(raid6_test);
 module_exit(raid6_test_exit);
index 0d664dfb47bcd956b20e2bce80399235698614ea..5c36b7b65e2aac01f5ada0603a9595a3943110e1 100644 (file)
@@ -1,4 +1,4 @@
-//SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0
 /*
  * CFB: Cipher FeedBack mode
  *
index ae3f77a66070317e4f667dac7889e42969a1e5eb..f3e1592965c01e8bd693dd58ecd0e70ea67e9c93 100644 (file)
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * SM2 asymmetric public-key algorithm
  * as specified by OSCCA GM/T 0003.1-2012 -- 0003.5-2012 SM2 and