1 |
jpp |
1.1 |
From 4de5fa26873297f5c2eeed53e5c988437f837f55 Mon Sep 17 00:00:00 2001 |
2 |
|
|
From: Clemens Lang <cllang@redhat.com> |
3 |
|
|
Date: Thu, 17 Nov 2022 13:53:31 +0100 |
4 |
|
|
Subject: [PATCH] signature: Remove X9.31 padding from FIPS prov |
5 |
|
|
|
6 |
|
|
The current draft of FIPS 186-5 [1] no longer contains specifications |
7 |
|
|
for X9.31 signature padding. Instead, it contains the following |
8 |
|
|
information in Appendix E: |
9 |
|
|
|
10 |
|
|
> ANSI X9.31 was withdrawn, so X9.31 RSA signatures were removed from |
11 |
|
|
> this standard. |
12 |
|
|
|
13 |
|
|
Since this situation is unlikely to change in future revisions of the |
14 |
|
|
draft, and future FIPS 140-3 validations of the provider will require |
15 |
|
|
X9.31 to be disabled or marked as not approved with an explicit |
16 |
|
|
indicator, disallow this padding mode now. |
17 |
|
|
|
18 |
|
|
Remove the X9.31 tests from the acvp test, since they will always fail |
19 |
|
|
now. |
20 |
|
|
|
21 |
|
|
[1]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5-draft.pdf |
22 |
|
|
|
23 |
|
|
Signed-off-by: Clemens Lang <cllang@redhat.com> |
24 |
|
|
--- |
25 |
|
|
providers/implementations/signature/rsa_sig.c | 6 + |
26 |
|
|
test/acvp_test.inc | 214 ------------------ |
27 |
|
|
2 files changed, 6 insertions(+), 214 deletions(-) |
28 |
|
|
|
29 |
|
|
diff --git a/providers/implementations/signature/rsa_sig.c b/providers/implementations/signature/rsa_sig.c |
30 |
|
|
index 34f45175e8..49e7f9158a 100644 |
31 |
|
|
--- a/providers/implementations/signature/rsa_sig.c |
32 |
|
|
+++ b/providers/implementations/signature/rsa_sig.c |
33 |
|
|
@@ -1233,7 +1233,13 @@ static int rsa_set_ctx_params(void *vprsactx, const OSSL_PARAM params[]) |
34 |
|
|
err_extra_text = "No padding not allowed with RSA-PSS"; |
35 |
|
|
goto cont; |
36 |
|
|
case RSA_X931_PADDING: |
37 |
|
|
+#ifndef FIPS_MODULE |
38 |
|
|
err_extra_text = "X.931 padding not allowed with RSA-PSS"; |
39 |
|
|
+#else /* !defined(FIPS_MODULE) */ |
40 |
|
|
+ err_extra_text = "X.931 padding no longer allowed in FIPS mode," |
41 |
|
|
+ " since it was removed from FIPS 186-5"; |
42 |
|
|
+ goto bad_pad; |
43 |
|
|
+#endif /* !defined(FIPS_MODULE) */ |
44 |
|
|
cont: |
45 |
|
|
if (RSA_test_flags(prsactx->rsa, |
46 |
|
|
RSA_FLAG_TYPE_MASK) == RSA_FLAG_TYPE_RSA) |
47 |
|
|
diff --git a/test/acvp_test.inc b/test/acvp_test.inc |
48 |
|
|
index 73b24bdb0c..96a72073f9 100644 |
49 |
|
|
--- a/test/acvp_test.inc |
50 |
|
|
+++ b/test/acvp_test.inc |
51 |
|
|
@@ -1204,13 +1204,6 @@ static const struct rsa_siggen_st rsa_siggen_data[] = { |
52 |
|
|
ITM(rsa_siggen0_msg), |
53 |
|
|
NO_PSS_SALT_LEN, |
54 |
|
|
}, |
55 |
|
|
- { |
56 |
|
|
- "x931", |
57 |
|
|
- 2048, |
58 |
|
|
- "SHA384", |
59 |
|
|
- ITM(rsa_siggen0_msg), |
60 |
|
|
- NO_PSS_SALT_LEN, |
61 |
|
|
- }, |
62 |
|
|
{ |
63 |
|
|
"pss", |
64 |
|
|
2048, |
65 |
|
|
@@ -1622,202 +1615,6 @@ static const unsigned char rsa_sigverpss_1_sig[] = { |
66 |
|
|
0x5c, 0xea, 0x8a, 0x92, 0x31, 0xd2, 0x11, 0x4b, |
67 |
|
|
}; |
68 |
|
|
|
69 |
|
|
-static const unsigned char rsa_sigverx931_0_n[] = { |
70 |
|
|
- 0xa0, 0x16, 0x14, 0x80, 0x8b, 0x17, 0x2b, 0xad, |
71 |
|
|
- 0xd7, 0x07, 0x31, 0x6d, 0xfc, 0xba, 0x25, 0x83, |
72 |
|
|
- 0x09, 0xa0, 0xf7, 0x71, 0xc6, 0x06, 0x22, 0x87, |
73 |
|
|
- 0xd6, 0xbd, 0x13, 0xd9, 0xfe, 0x7c, 0xf7, 0xe6, |
74 |
|
|
- 0x48, 0xdb, 0x27, 0xd8, 0xa5, 0x49, 0x8e, 0x8c, |
75 |
|
|
- 0xea, 0xbe, 0xe0, 0x04, 0x6f, 0x3d, 0x3b, 0x73, |
76 |
|
|
- 0xdc, 0xc5, 0xd4, 0xdc, 0x85, 0xef, 0xea, 0x10, |
77 |
|
|
- 0x46, 0xf3, 0x88, 0xb9, 0x93, 0xbc, 0xa0, 0xb6, |
78 |
|
|
- 0x06, 0x02, 0x82, 0xb4, 0x2d, 0x54, 0xec, 0x79, |
79 |
|
|
- 0x50, 0x8a, 0xfc, 0xfa, 0x62, 0x45, 0xbb, 0xd7, |
80 |
|
|
- 0x26, 0xcd, 0x88, 0xfa, 0xe8, 0x0f, 0x26, 0x5b, |
81 |
|
|
- 0x1f, 0x21, 0x3f, 0x3b, 0x5d, 0x98, 0x3f, 0x02, |
82 |
|
|
- 0x8c, 0xa1, 0xbf, 0xc0, 0x70, 0x4d, 0xd1, 0x41, |
83 |
|
|
- 0xfd, 0xb9, 0x55, 0x12, 0x90, 0xc8, 0x6e, 0x0f, |
84 |
|
|
- 0x19, 0xa8, 0x5c, 0x31, 0xd6, 0x16, 0x0e, 0xdf, |
85 |
|
|
- 0x08, 0x84, 0xcd, 0x4b, 0xfd, 0x28, 0x8d, 0x7d, |
86 |
|
|
- 0x6e, 0xea, 0xc7, 0x95, 0x4a, 0xc3, 0x84, 0x54, |
87 |
|
|
- 0x7f, 0xb0, 0x20, 0x29, 0x96, 0x39, 0x4c, 0x3e, |
88 |
|
|
- 0x85, 0xec, 0x22, 0xdd, 0xb9, 0x14, 0xbb, 0x04, |
89 |
|
|
- 0x2f, 0x4c, 0x0c, 0xe3, 0xfa, 0xae, 0x47, 0x79, |
90 |
|
|
- 0x59, 0x8e, 0x4e, 0x7d, 0x4a, 0x17, 0xae, 0x16, |
91 |
|
|
- 0x38, 0x66, 0x4e, 0xff, 0x45, 0x7f, 0xac, 0x5e, |
92 |
|
|
- 0x75, 0x9f, 0x51, 0x18, 0xe6, 0xad, 0x6b, 0x8b, |
93 |
|
|
- 0x3d, 0x08, 0x4d, 0x9a, 0xd2, 0x11, 0xba, 0xa8, |
94 |
|
|
- 0xc3, 0xb5, 0x17, 0xb5, 0xdf, 0xe7, 0x39, 0x89, |
95 |
|
|
- 0x27, 0x7b, 0xeb, 0xf4, 0xe5, 0x7e, 0xa9, 0x7b, |
96 |
|
|
- 0x39, 0x40, 0x6f, 0xe4, 0x82, 0x14, 0x3d, 0x62, |
97 |
|
|
- 0xb6, 0xd4, 0x43, 0xd0, 0x0a, 0x2f, 0xc1, 0x73, |
98 |
|
|
- 0x3d, 0x99, 0x37, 0xbe, 0x62, 0x13, 0x6a, 0x8b, |
99 |
|
|
- 0xeb, 0xc5, 0x64, 0xd5, 0x2a, 0x8b, 0x4f, 0x7f, |
100 |
|
|
- 0x82, 0x48, 0x69, 0x3e, 0x08, 0x1b, 0xb5, 0x77, |
101 |
|
|
- 0xd3, 0xdc, 0x1b, 0x2c, 0xe5, 0x59, 0xf6, 0x33, |
102 |
|
|
- 0x47, 0xa0, 0x0f, 0xff, 0x8a, 0x6a, 0x1d, 0x66, |
103 |
|
|
- 0x24, 0x67, 0x36, 0x7d, 0x21, 0xda, 0xc1, 0xd4, |
104 |
|
|
- 0x11, 0x6c, 0xe8, 0x5f, 0xd7, 0x8a, 0x53, 0x5c, |
105 |
|
|
- 0xb2, 0xe2, 0xf9, 0x14, 0x29, 0x0f, 0xcf, 0x28, |
106 |
|
|
- 0x32, 0x4f, 0xc6, 0x17, 0xf6, 0xbc, 0x0e, 0xb8, |
107 |
|
|
- 0x99, 0x7c, 0x14, 0xa3, 0x40, 0x3f, 0xf3, 0xe4, |
108 |
|
|
- 0x31, 0xbe, 0x54, 0x64, 0x5a, 0xad, 0x1d, 0xb0, |
109 |
|
|
- 0x37, 0xcc, 0xd9, 0x0b, 0xa4, 0xbc, 0xe0, 0x07, |
110 |
|
|
- 0x37, 0xd1, 0xe1, 0x65, 0xc6, 0x53, 0xfe, 0x60, |
111 |
|
|
- 0x6a, 0x64, 0xa4, 0x01, 0x00, 0xf3, 0x5b, 0x9a, |
112 |
|
|
- 0x28, 0x61, 0xde, 0x7a, 0xd7, 0x0d, 0x56, 0x1e, |
113 |
|
|
- 0x4d, 0xa8, 0x6a, 0xb5, 0xf2, 0x86, 0x2a, 0x4e, |
114 |
|
|
- 0xaa, 0x37, 0x23, 0x5a, 0x3b, 0x69, 0x66, 0x81, |
115 |
|
|
- 0xc8, 0x8e, 0x1b, 0x31, 0x0f, 0x28, 0x31, 0x9a, |
116 |
|
|
- 0x2d, 0xe5, 0x79, 0xcc, 0xa4, 0xca, 0x60, 0x45, |
117 |
|
|
- 0xf7, 0x83, 0x73, 0x5a, 0x01, 0x29, 0xda, 0xf7, |
118 |
|
|
- |
119 |
|
|
-}; |
120 |
|
|
-static const unsigned char rsa_sigverx931_0_e[] = { |
121 |
|
|
- 0x01, 0x00, 0x01, |
122 |
|
|
-}; |
123 |
|
|
-static const unsigned char rsa_sigverx931_0_msg[] = { |
124 |
|
|
- 0x82, 0x2e, 0x41, 0x70, 0x9d, 0x1f, 0xe9, 0x47, |
125 |
|
|
- 0xec, 0xf1, 0x79, 0xcc, 0x05, 0xef, 0xdb, 0xcd, |
126 |
|
|
- 0xca, 0x8b, 0x8e, 0x61, 0x45, 0xad, 0xa6, 0xd9, |
127 |
|
|
- 0xd7, 0x4b, 0x15, 0xf4, 0x92, 0x3a, 0x2a, 0x52, |
128 |
|
|
- 0xe3, 0x44, 0x57, 0x2b, 0x74, 0x7a, 0x37, 0x41, |
129 |
|
|
- 0x50, 0xcb, 0xcf, 0x13, 0x49, 0xd6, 0x15, 0x54, |
130 |
|
|
- 0x97, 0xfd, 0xae, 0x9b, 0xc1, 0xbb, 0xfc, 0x5c, |
131 |
|
|
- 0xc1, 0x37, 0x58, 0x17, 0x63, 0x19, 0x9c, 0xcf, |
132 |
|
|
- 0xee, 0x9c, 0xe5, 0xbe, 0x06, 0xe4, 0x97, 0x47, |
133 |
|
|
- 0xd1, 0x93, 0xa1, 0x2c, 0x59, 0x97, 0x02, 0x01, |
134 |
|
|
- 0x31, 0x45, 0x8c, 0xe1, 0x5c, 0xac, 0xe7, 0x5f, |
135 |
|
|
- 0x6a, 0x23, 0xda, 0xbf, 0xe4, 0x25, 0xc6, 0x67, |
136 |
|
|
- 0xea, 0x5f, 0x73, 0x90, 0x1b, 0x06, 0x0f, 0x41, |
137 |
|
|
- 0xb5, 0x6e, 0x74, 0x7e, 0xfd, 0xd9, 0xaa, 0xbd, |
138 |
|
|
- 0xe2, 0x8d, 0xad, 0x99, 0xdd, 0x29, 0x70, 0xca, |
139 |
|
|
- 0x1b, 0x38, 0x21, 0x55, 0xde, 0x07, 0xaf, 0x00, |
140 |
|
|
- |
141 |
|
|
-}; |
142 |
|
|
-static const unsigned char rsa_sigverx931_0_sig[] = { |
143 |
|
|
- 0x29, 0xa9, 0x3a, 0x8e, 0x9e, 0x90, 0x1b, 0xdb, |
144 |
|
|
- 0xaf, 0x0b, 0x47, 0x5b, 0xb5, 0xc3, 0x8c, 0xc3, |
145 |
|
|
- 0x70, 0xbe, 0x73, 0xf9, 0x65, 0x8e, 0xc6, 0x1e, |
146 |
|
|
- 0x95, 0x0b, 0xdb, 0x24, 0x76, 0x79, 0xf1, 0x00, |
147 |
|
|
- 0x71, 0xcd, 0xc5, 0x6a, 0x7b, 0xd2, 0x8b, 0x18, |
148 |
|
|
- 0xc4, 0xdd, 0xf1, 0x2a, 0x31, 0x04, 0x3f, 0xfc, |
149 |
|
|
- 0x36, 0x06, 0x20, 0x71, 0x3d, 0x62, 0xf2, 0xb5, |
150 |
|
|
- 0x79, 0x0a, 0xd5, 0xd2, 0x81, 0xf1, 0xb1, 0x4f, |
151 |
|
|
- 0x9a, 0x17, 0xe8, 0x67, 0x64, 0x48, 0x09, 0x75, |
152 |
|
|
- 0xff, 0x2d, 0xee, 0x36, 0xca, 0xca, 0x1d, 0x74, |
153 |
|
|
- 0x99, 0xbe, 0x5c, 0x94, 0x31, 0xcc, 0x12, 0xf4, |
154 |
|
|
- 0x59, 0x7e, 0x17, 0x00, 0x4f, 0x7b, 0xa4, 0xb1, |
155 |
|
|
- 0xda, 0xdb, 0x3e, 0xa4, 0x34, 0x10, 0x4a, 0x19, |
156 |
|
|
- 0x0a, 0xd2, 0xa7, 0xa0, 0xc5, 0xe6, 0xef, 0x82, |
157 |
|
|
- 0xd4, 0x2e, 0x21, 0xbe, 0x15, 0x73, 0xac, 0xef, |
158 |
|
|
- 0x05, 0xdb, 0x6a, 0x8a, 0x1a, 0xcb, 0x8e, 0xa5, |
159 |
|
|
- 0xee, 0xfb, 0x28, 0xbf, 0x96, 0xa4, 0x2b, 0xd2, |
160 |
|
|
- 0x85, 0x2b, 0x20, 0xc3, 0xaf, 0x9a, 0x32, 0x04, |
161 |
|
|
- 0xa0, 0x49, 0x24, 0x47, 0xd0, 0x09, 0xf7, 0xcf, |
162 |
|
|
- 0x73, 0xb6, 0xf6, 0x70, 0xda, 0x3b, 0xf8, 0x5a, |
163 |
|
|
- 0x28, 0x2e, 0x14, 0x6c, 0x52, 0xbd, 0x2a, 0x7c, |
164 |
|
|
- 0x8e, 0xc1, 0xa8, 0x0e, 0xb1, 0x1e, 0x6b, 0x8d, |
165 |
|
|
- 0x76, 0xea, 0x70, 0x81, 0xa0, 0x02, 0x63, 0x74, |
166 |
|
|
- 0xbc, 0x7e, 0xb9, 0xac, 0x0e, 0x7b, 0x1b, 0x75, |
167 |
|
|
- 0x82, 0xe2, 0x98, 0x4e, 0x24, 0x55, 0xd4, 0xbd, |
168 |
|
|
- 0x14, 0xde, 0x58, 0x56, 0x3a, 0x5d, 0x4e, 0x57, |
169 |
|
|
- 0x0d, 0x54, 0x74, 0xe8, 0x86, 0x8c, 0xcb, 0x07, |
170 |
|
|
- 0x9f, 0x0b, 0xfb, 0xc2, 0x08, 0x5c, 0xd7, 0x05, |
171 |
|
|
- 0x3b, 0xc8, 0xd2, 0x15, 0x68, 0x8f, 0x3d, 0x3c, |
172 |
|
|
- 0x4e, 0x85, 0xa9, 0x25, 0x6f, 0xf5, 0x2e, 0xca, |
173 |
|
|
- 0xca, 0xa8, 0x27, 0x89, 0x61, 0x4e, 0x1f, 0x57, |
174 |
|
|
- 0x2d, 0x99, 0x10, 0x3f, 0xbc, 0x9e, 0x96, 0x5e, |
175 |
|
|
- 0x2f, 0x0a, 0x25, 0xa7, 0x5c, 0xea, 0x65, 0x2a, |
176 |
|
|
- 0x22, 0x35, 0xa3, 0xf9, 0x13, 0x89, 0x05, 0x2e, |
177 |
|
|
- 0x19, 0x73, 0x1d, 0x70, 0x74, 0x98, 0x15, 0x4b, |
178 |
|
|
- 0xab, 0x56, 0x52, 0xe0, 0x01, 0x42, 0x95, 0x6a, |
179 |
|
|
- 0x46, 0x2c, 0x78, 0xff, 0x26, 0xbc, 0x48, 0x10, |
180 |
|
|
- 0x38, 0x25, 0xab, 0x32, 0x7c, 0x79, 0x7c, 0x5d, |
181 |
|
|
- 0x6f, 0x45, 0x54, 0x74, 0x2d, 0x93, 0x56, 0x52, |
182 |
|
|
- 0x11, 0x34, 0x1e, 0xe3, 0x4b, 0x6a, 0x17, 0x4f, |
183 |
|
|
- 0x37, 0x14, 0x75, 0xac, 0xa3, 0xa1, 0xca, 0xda, |
184 |
|
|
- 0x38, 0x06, 0xa9, 0x78, 0xb9, 0x5d, 0xd0, 0x59, |
185 |
|
|
- 0x1b, 0x5d, 0x1e, 0xc2, 0x0b, 0xfb, 0x39, 0x37, |
186 |
|
|
- 0x44, 0x85, 0xb6, 0x36, 0x06, 0x95, 0xbc, 0x15, |
187 |
|
|
- 0x35, 0xb9, 0xe6, 0x27, 0x42, 0xe3, 0xc8, 0xec, |
188 |
|
|
- 0x30, 0x37, 0x20, 0x26, 0x9a, 0x11, 0x61, 0xc0, |
189 |
|
|
- 0xdb, 0xb2, 0x5a, 0x26, 0x78, 0x27, 0xb9, 0x13, |
190 |
|
|
- 0xc9, 0x1a, 0xa7, 0x67, 0x93, 0xe8, 0xbe, 0xcb, |
191 |
|
|
-}; |
192 |
|
|
- |
193 |
|
|
-#define rsa_sigverx931_1_n rsa_sigverx931_0_n |
194 |
|
|
-#define rsa_sigverx931_1_e rsa_sigverx931_0_e |
195 |
|
|
-static const unsigned char rsa_sigverx931_1_msg[] = { |
196 |
|
|
- 0x79, 0x02, 0xb9, 0xd2, 0x3e, 0x84, 0x02, 0xc8, |
197 |
|
|
- 0x2a, 0x94, 0x92, 0x14, 0x8d, 0xd5, 0xd3, 0x8d, |
198 |
|
|
- 0xb2, 0xf6, 0x00, 0x8b, 0x61, 0x2c, 0xd2, 0xf9, |
199 |
|
|
- 0xa8, 0xe0, 0x5d, 0xac, 0xdc, 0xa5, 0x34, 0xf3, |
200 |
|
|
- 0xda, 0x6c, 0xd4, 0x70, 0x92, 0xfb, 0x40, 0x26, |
201 |
|
|
- 0xc7, 0x9b, 0xe8, 0xd2, 0x10, 0x11, 0xcf, 0x7f, |
202 |
|
|
- 0x23, 0xd0, 0xed, 0x55, 0x52, 0x6d, 0xd3, 0xb2, |
203 |
|
|
- 0x56, 0x53, 0x8d, 0x7c, 0x4c, 0xb8, 0xcc, 0xb5, |
204 |
|
|
- 0xfd, 0xd0, 0x45, 0x4f, 0x62, 0x40, 0x54, 0x42, |
205 |
|
|
- 0x68, 0xd5, 0xe5, 0xdd, 0xf0, 0x76, 0x94, 0x59, |
206 |
|
|
- 0x1a, 0x57, 0x13, 0xb4, 0xc3, 0x70, 0xcc, 0xbd, |
207 |
|
|
- 0x4c, 0x2e, 0xc8, 0x6b, 0x9d, 0x68, 0xd0, 0x72, |
208 |
|
|
- 0x6a, 0x94, 0xd2, 0x18, 0xb5, 0x3b, 0x86, 0x45, |
209 |
|
|
- 0x95, 0xaa, 0x50, 0xda, 0x35, 0xeb, 0x69, 0x44, |
210 |
|
|
- 0x1f, 0xf3, 0x3a, 0x51, 0xbb, 0x1d, 0x08, 0x42, |
211 |
|
|
- 0x12, 0xd7, 0xd6, 0x21, 0xd8, 0x9b, 0x87, 0x55, |
212 |
|
|
-}; |
213 |
|
|
- |
214 |
|
|
-static const unsigned char rsa_sigverx931_1_sig[] = { |
215 |
|
|
- 0x3b, 0xba, 0xb3, 0xb1, 0xb2, 0x6a, 0x29, 0xb5, |
216 |
|
|
- 0xf9, 0x94, 0xf1, 0x00, 0x5c, 0x16, 0x67, 0x67, |
217 |
|
|
- 0x73, 0xd3, 0xde, 0x7e, 0x07, 0xfa, 0xaa, 0x95, |
218 |
|
|
- 0xeb, 0x5a, 0x55, 0xdc, 0xb2, 0xa9, 0x70, 0x5a, |
219 |
|
|
- 0xee, 0x8f, 0x8d, 0x69, 0x85, 0x2b, 0x00, 0xe3, |
220 |
|
|
- 0xdc, 0xe2, 0x73, 0x9b, 0x68, 0xeb, 0x93, 0x69, |
221 |
|
|
- 0x08, 0x03, 0x17, 0xd6, 0x50, 0x21, 0x14, 0x23, |
222 |
|
|
- 0x8c, 0xe6, 0x54, 0x3a, 0xd9, 0xfc, 0x8b, 0x14, |
223 |
|
|
- 0x81, 0xb1, 0x8b, 0x9d, 0xd2, 0xbe, 0x58, 0x75, |
224 |
|
|
- 0x94, 0x74, 0x93, 0xc9, 0xbb, 0x4e, 0xf6, 0x1f, |
225 |
|
|
- 0x73, 0x7d, 0x1a, 0x5f, 0xbd, 0xbf, 0x59, 0x37, |
226 |
|
|
- 0x5b, 0x98, 0x54, 0xad, 0x3a, 0xef, 0xa0, 0xef, |
227 |
|
|
- 0xcb, 0xc3, 0xe8, 0x84, 0xd8, 0x3d, 0xf5, 0x60, |
228 |
|
|
- 0xb8, 0xc3, 0x8d, 0x1e, 0x78, 0xa0, 0x91, 0x94, |
229 |
|
|
- 0xb7, 0xd7, 0xb1, 0xd4, 0xe2, 0xee, 0x81, 0x93, |
230 |
|
|
- 0xfc, 0x41, 0xf0, 0x31, 0xbb, 0x03, 0x52, 0xde, |
231 |
|
|
- 0x80, 0x20, 0x3a, 0x68, 0xe6, 0xc5, 0x50, 0x1b, |
232 |
|
|
- 0x08, 0x3f, 0x40, 0xde, 0xb3, 0xe5, 0x81, 0x99, |
233 |
|
|
- 0x7f, 0xdb, 0xb6, 0x5d, 0x61, 0x27, 0xd4, 0xfb, |
234 |
|
|
- 0xcd, 0xc5, 0x7a, 0xea, 0xde, 0x7a, 0x66, 0xef, |
235 |
|
|
- 0x55, 0x3f, 0x85, 0xea, 0x84, 0xc5, 0x0a, 0xf6, |
236 |
|
|
- 0x3c, 0x40, 0x38, 0xf7, 0x6c, 0x66, 0xe5, 0xbe, |
237 |
|
|
- 0x61, 0x41, 0xd3, 0xb1, 0x08, 0xe1, 0xb4, 0xf9, |
238 |
|
|
- 0x6e, 0xf6, 0x0e, 0x4a, 0x72, 0x6c, 0x61, 0x63, |
239 |
|
|
- 0x3e, 0x41, 0x33, 0x94, 0xd6, 0x27, 0xa4, 0xd9, |
240 |
|
|
- 0x3a, 0x20, 0x2b, 0x39, 0xea, 0xe5, 0x82, 0x48, |
241 |
|
|
- 0xd6, 0x5b, 0x58, 0x85, 0x44, 0xb0, 0xd2, 0xfd, |
242 |
|
|
- 0xfb, 0x3e, 0xeb, 0x78, 0xac, 0xbc, 0xba, 0x16, |
243 |
|
|
- 0x92, 0x0e, 0x20, 0xc1, 0xb2, 0xd1, 0x92, 0xa8, |
244 |
|
|
- 0x00, 0x88, 0xc0, 0x41, 0x46, 0x38, 0xb6, 0x54, |
245 |
|
|
- 0x70, 0x0c, 0x00, 0x62, 0x97, 0x6a, 0x8e, 0x66, |
246 |
|
|
- 0x5a, 0xa1, 0x6c, 0xf7, 0x6d, 0xc2, 0x27, 0x56, |
247 |
|
|
- 0x60, 0x5b, 0x0c, 0x52, 0xac, 0x5c, 0xae, 0x99, |
248 |
|
|
- 0x55, 0x11, 0x62, 0x52, 0x09, 0x48, 0x53, 0x90, |
249 |
|
|
- 0x3c, 0x0b, 0xd4, 0xdc, 0x7b, 0xe3, 0x4c, 0xe3, |
250 |
|
|
- 0xa8, 0x6d, 0xc5, 0xdf, 0xc1, 0x5c, 0x59, 0x25, |
251 |
|
|
- 0x99, 0x30, 0xde, 0x57, 0x6a, 0x84, 0x25, 0x34, |
252 |
|
|
- 0x3e, 0x64, 0x11, 0xdb, 0x7a, 0x82, 0x8e, 0x70, |
253 |
|
|
- 0xd2, 0x5c, 0x0e, 0x81, 0xa0, 0x24, 0x53, 0x75, |
254 |
|
|
- 0x98, 0xd6, 0x10, 0x01, 0x6a, 0x14, 0xed, 0xc3, |
255 |
|
|
- 0x6f, 0xc4, 0x18, 0xb8, 0xd2, 0x9f, 0x59, 0x53, |
256 |
|
|
- 0x81, 0x3a, 0x86, 0x31, 0xfc, 0x9e, 0xbf, 0x6c, |
257 |
|
|
- 0x52, 0x93, 0x86, 0x9c, 0xaa, 0x6c, 0x6f, 0x07, |
258 |
|
|
- 0x8a, 0x40, 0x33, 0x64, 0xb2, 0x70, 0x48, 0x85, |
259 |
|
|
- 0x05, 0x59, 0x65, 0x2d, 0x6b, 0x9a, 0xad, 0xab, |
260 |
|
|
- 0x20, 0x7e, 0x02, 0x6d, 0xde, 0xcf, 0x22, 0x0b, |
261 |
|
|
- 0xea, 0x6e, 0xbd, 0x1c, 0x39, 0x3a, 0xfd, 0xa4, |
262 |
|
|
- 0xde, 0x54, 0xae, 0xde, 0x5e, 0xf7, 0xb0, 0x6d, |
263 |
|
|
-}; |
264 |
|
|
- |
265 |
|
|
static const struct rsa_sigver_st rsa_sigver_data[] = { |
266 |
|
|
{ |
267 |
|
|
"pkcs1", /* pkcs1v1.5 */ |
268 |
|
|
@@ -1841,17 +1638,6 @@ static const struct rsa_sigver_st rsa_sigver_data[] = { |
269 |
|
|
NO_PSS_SALT_LEN, |
270 |
|
|
FAIL |
271 |
|
|
}, |
272 |
|
|
- { |
273 |
|
|
- "x931", |
274 |
|
|
- 3072, |
275 |
|
|
- "SHA256", |
276 |
|
|
- ITM(rsa_sigverx931_1_msg), |
277 |
|
|
- ITM(rsa_sigverx931_1_n), |
278 |
|
|
- ITM(rsa_sigverx931_1_e), |
279 |
|
|
- ITM(rsa_sigverx931_1_sig), |
280 |
|
|
- NO_PSS_SALT_LEN, |
281 |
|
|
- FAIL |
282 |
|
|
- }, |
283 |
|
|
{ |
284 |
|
|
"pss", |
285 |
|
|
4096, |
286 |
|
|
-- |
287 |
|
|
2.38.1 |
288 |
|
|
|