Skip to content

Commit 39ef085

Browse files
Lei Heherbertx
authored andcommitted
crypto: testmgr - fix wrong key length for pkcs1pad
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 68b6dea commit 39ef085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/testmgr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ static const struct akcipher_testvec pkcs1pad_rsa_tv_template[] = {
12011201
"\xd1\x86\x48\x55\xce\x83\xee\x8e\x51\xc7\xde\x32\x12\x47\x7d\x46"
12021202
"\xb8\x35\xdf\x41\x02\x01\x00\x02\x01\x00\x02\x01\x00\x02\x01\x00"
12031203
"\x02\x01\x00",
1204-
.key_len = 804,
1204+
.key_len = 803,
12051205
/*
12061206
* m is SHA256 hash of following message:
12071207
* "\x49\x41\xbe\x0a\x0c\xc9\xf6\x35\x51\xe4\x27\x56\x13\x71\x4b\xd0"

0 commit comments

Comments
 (0)