2020-02-12 09:12:22

by Geert Uytterhoeven

[permalink] [raw]
Subject: [PATCH trivial] s390/pkey/zcrypt: spelling s/crytp/crypt/

Fix typos in a comments.

Signed-off-by: Geert Uytterhoeven <[email protected]>
---
drivers/s390/crypto/zcrypt_ep11misc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/s390/crypto/zcrypt_ep11misc.c b/drivers/s390/crypto/zcrypt_ep11misc.c
index d4caf46ff9df1559..2afe2153b34e32e9 100644
--- a/drivers/s390/crypto/zcrypt_ep11misc.c
+++ b/drivers/s390/crypto/zcrypt_ep11misc.c
@@ -887,7 +887,7 @@ static int ep11_unwrapkey(u16 card, u16 domain,
/* empty pin tag */
*p++ = 0x04;
*p++ = 0;
- /* encrytped key value tag and bytes */
+ /* encrypted key value tag and bytes */
p += asn1tag_write(p, 0x04, enckey, enckeysize);

/* reply cprb and payload */
@@ -1095,7 +1095,7 @@ int ep11_clr2keyblob(u16 card, u16 domain, u32 keybitsize, u32 keygenflags,

/* Step 1: generate AES 256 bit random kek key */
rc = ep11_genaeskey(card, domain, 256,
- 0x00006c00, /* EN/DECRYTP, WRAP/UNWRAP */
+ 0x00006c00, /* EN/DECRYPT, WRAP/UNWRAP */
kek, &keklen);
if (rc) {
DEBUG_ERR(
--
2.17.1


2020-02-17 17:11:58

by Vasily Gorbik

[permalink] [raw]
Subject: Re: [PATCH trivial] s390/pkey/zcrypt: spelling s/crytp/crypt/

On Wed, Feb 12, 2020 at 09:46:22AM +0100, Geert Uytterhoeven wrote:
> Fix typos in a comments.
>
> Signed-off-by: Geert Uytterhoeven <[email protected]>
> ---
> drivers/s390/crypto/zcrypt_ep11misc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/s390/crypto/zcrypt_ep11misc.c b/drivers/s390/crypto/zcrypt_ep11misc.c
> index d4caf46ff9df1559..2afe2153b34e32e9 100644
> --- a/drivers/s390/crypto/zcrypt_ep11misc.c
> +++ b/drivers/s390/crypto/zcrypt_ep11misc.c
> @@ -887,7 +887,7 @@ static int ep11_unwrapkey(u16 card, u16 domain,
> /* empty pin tag */
> *p++ = 0x04;
> *p++ = 0;
> - /* encrytped key value tag and bytes */
> + /* encrypted key value tag and bytes */
> p += asn1tag_write(p, 0x04, enckey, enckeysize);
>
> /* reply cprb and payload */
> @@ -1095,7 +1095,7 @@ int ep11_clr2keyblob(u16 card, u16 domain, u32 keybitsize, u32 keygenflags,
>
> /* Step 1: generate AES 256 bit random kek key */
> rc = ep11_genaeskey(card, domain, 256,
> - 0x00006c00, /* EN/DECRYTP, WRAP/UNWRAP */
> + 0x00006c00, /* EN/DECRYPT, WRAP/UNWRAP */
> kek, &keklen);
> if (rc) {
> DEBUG_ERR(
> --
> 2.17.1
>
Applied, thanks