]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: ccree - Fix typo in comment
authorYu Jiaoliang <yujiaoliang@vivo.com>
Thu, 19 Sep 2024 07:35:20 +0000 (15:35 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 5 Oct 2024 05:22:05 +0000 (13:22 +0800)
Corrected typos in comment:
Asynchronize->Asynchronous,
encryped->encrypted,
decryped->decrypted,
fallabck->fallback.

Signed-off-by: Yu Jiaoliang <yujiaoliang@vivo.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_aead.c
drivers/crypto/ccree/cc_cipher.c
drivers/crypto/ccree/cc_hash.c

index 5ef39d682389775df4315c4799ebd09c22dd66fc..81533681f7fb59abf1123d2d045f3d74eda17348 100644 (file)
@@ -2226,7 +2226,7 @@ static int cc_rfc4543_gcm_encrypt(struct aead_request *req)
 
        memset(areq_ctx, 0, sizeof(*areq_ctx));
 
-       //plaintext is not encryped with rfc4543
+       //plaintext is not encrypted with rfc4543
        areq_ctx->plaintext_authenticate_only = true;
 
        /* No generated IV required */
@@ -2277,7 +2277,7 @@ static int cc_rfc4543_gcm_decrypt(struct aead_request *req)
 
        memset(areq_ctx, 0, sizeof(*areq_ctx));
 
-       //plaintext is not decryped with rfc4543
+       //plaintext is not decrypted with rfc4543
        areq_ctx->plaintext_authenticate_only = true;
 
        /* No generated IV required */
index 3fb667a17bbb1dd461bd0e11f5277425a53c6d20..d39c067672fd61cf1703a321c91376ce75e45388 100644 (file)
@@ -179,7 +179,7 @@ static int cc_cipher_init(struct crypto_tfm *tfm)
                }
                max_key_buf_size <<= 1;
 
-               /* Alloc fallabck tfm or essiv when key size != 256 bit */
+               /* Alloc fallback tfm or essiv when key size != 256 bit */
                ctx_p->fallback_tfm =
                        crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK | CRYPTO_ALG_ASYNC);
 
index f418162932fe394dce84ee9673204cfb58f24a2c..d0612bec4d58d78e28efb9826382091fa62dd1de 100644 (file)
@@ -1577,7 +1577,7 @@ struct cc_hash_template {
 
 /* hash descriptors */
 static struct cc_hash_template driver_hash[] = {
-       //Asynchronize hash template
+       //Asynchronous hash template
        {
                .name = "sha1",
                .driver_name = "sha1-ccree",