* [PATCH] crypto testmgr: fix wrong key length
@ 2021-10-22 12:44 Lei He
2021-10-29 13:12 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Lei He @ 2021-10-22 12:44 UTC (permalink / raw)
To: herbert; +Cc: linux-crypto, linux-kernel, helei.sig11, zhenweipi
Fix wrong test data at testmgr.h, it seems to be caused
by ignoring the last '\0' when calling sizeof.
Signed-off-by: Lei He <helei.sig11@bytedance.com>
---
crypto/testmgr.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/testmgr.h b/crypto/testmgr.h
index e6fca34b5b25..779720bf9364 100644
--- a/crypto/testmgr.h
+++ b/crypto/testmgr.h
@@ -1201,7 +1201,7 @@ static const struct akcipher_testvec pkcs1pad_rsa_tv_template[] = {
"\xd1\x86\x48\x55\xce\x83\xee\x8e\x51\xc7\xde\x32\x12\x47\x7d\x46"
"\xb8\x35\xdf\x41\x02\x01\x00\x02\x01\x00\x02\x01\x00\x02\x01\x00"
"\x02\x01\x00",
- .key_len = 804,
+ .key_len = 803,
/*
* m is SHA256 hash of following message:
* "\x49\x41\xbe\x0a\x0c\xc9\xf6\x35\x51\xe4\x27\x56\x13\x71\x4b\xd0"
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto testmgr: fix wrong key length
2021-10-22 12:44 [PATCH] crypto testmgr: fix wrong key length Lei He
@ 2021-10-29 13:12 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2021-10-29 13:12 UTC (permalink / raw)
To: Lei He; +Cc: linux-crypto, linux-kernel, zhenweipi
On Fri, Oct 22, 2021 at 08:44:43PM +0800, Lei He wrote:
> Fix wrong test data at testmgr.h, it seems to be caused
> by ignoring the last '\0' when calling sizeof.
>
> Signed-off-by: Lei He <helei.sig11@bytedance.com>
> ---
> crypto/testmgr.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-29 13:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22 12:44 [PATCH] crypto testmgr: fix wrong key length Lei He
2021-10-29 13:12 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).