crypto: cleanup comments
PATCH 1/1 crypto: cleanup comments
From: Tom Rix <[email protected]>
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
--- crypto/asymmetric_keys/signature.c | 2 +- crypto/asymmetric_keys/x509_parser.h | 2 +- crypto/async_tx/async_xor.c | 8 ++++---- crypto/async_tx/raid6test.c | 4 ++-- crypto/cfb.c | 2 +- crypto/dh.c | 2 +- crypto/sm2.c | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-)
crypto/asymmetric_keys/signature.c +1 -1
@@ -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. */
crypto/asymmetric_keys/x509_parser.h +1 -1
@@ -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;
crypto/async_tx/async_xor.c +4 -4
@@ -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.
crypto/async_tx/raid6test.c +2 -2
@@ -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);
crypto/cfb.c +1 -1
@@ -1,4 +1,4 @@ -//SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0 /* * CFB: Cipher FeedBack mode *
crypto/dh.c +1 -1
@@ -104,7 +104,7 @@ static int dh_set_secret(struct crypto_kpp *tfm, const void *buf,/* * SP800-56A public key verification: * -* * If Q is provided as part of the domain paramenters, a full validation +* * If Q is provided as part of the domain parameters, a full validation * according to SP800-56A section 5.6.2.3.1 is performed. * * * If Q is not provided, a partial validation according to SP800-56A section
crypto/sm2.c +1 -1
@@ -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
Signature · 1 line
2.26.3
Quoted 136 lines · On Mon, Feb 21, 2022 at 02:31:18PM -0800, [email protected] wrote:
From: Tom Rix <[email protected]>
For spdx
/* */ for *.h, // for *.c
Space before spdx tagReplacements
paramenters to parameters
aymmetric to asymmetric
sigature to signature
boudary to boundary
compliled to compiled
eninges to engines
explicity to explicitlySigned-off-by Tom Rix <[email protected]>--- crypto/asymmetric_keys/signature.c | 2 +- crypto/asymmetric_keys/x509_parser.h | 2 +- crypto/async_tx/async_xor.c | 8 ++++---- crypto/async_tx/raid6test.c | 4 ++-- crypto/cfb.c | 2 +- crypto/dh.c | 2 +- crypto/sm2.c | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-)crypto/asymmetric_keys/signature.c +1
-1@@ -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. */ crypto/asymmetric_keys/x509_parser.h +1
-1@@ -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;crypto/async_tx/async_xor.c +4
-4@@ -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. crypto/async_tx/raid6test.c +2
-2@@ -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);crypto/cfb.c +1
-1@@ -1,4 +1,4 @@ -//SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0 /* * CFB: Cipher FeedBack mode * crypto/dh.c +1
-1@@ -104,7 +104,7 @@ static int dh_set_secret(struct crypto_kpp *tfm, const void *buf,/* * SP800-56A public key verification: * -* * If Q is provided as part of the domain paramenters, a full validation +* * If Q is provided as part of the domain parameters, a full validation * according to SP800-56A section 5.6.2.3.1 is performed. * * * If Q is not provided, a partial validation according to SP800-56A section crypto/sm2.c +1
-1@@ -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 Signature · 1 line
2.26.3
BR, Jarkko
Herbert Xu
maintainerQuoted 16 lines · On Mon, Feb 21, 2022 at 02:31:18PM -0800, [email protected] wrote:
From: Tom Rix <[email protected]>
For spdx
/* */ for *.h, // for *.c
Space before spdx tagReplacements
paramenters to parameters
aymmetric to asymmetric
sigature to signature
boudary to boundary
compliled to compiled
eninges to engines
explicity to explicitlySigned-off-by Tom Rix <[email protected]>
Quoted 9 lines
--- crypto/asymmetric_keys/signature.c | 2 +- crypto/asymmetric_keys/x509_parser.h | 2 +- crypto/async_tx/async_xor.c | 8 ++++---- crypto/async_tx/raid6test.c | 4 ++-- crypto/cfb.c | 2 +- crypto/dh.c | 2 +- crypto/sm2.c | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-)
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