11 #if defined( __MVS__ ) || defined( __VMCMS__ )
13 #pragma convlit( suspend )
15 #if defined( __ILEC400__ )
36 printf(
"static const RSA_KEY FAR_BSS rsaTestKey = {\n" );
39 for( i = 0; i <
length; i++ )
40 {
if( !( i % 8 ) ) printf(
"\n\t " );
41 printf(
"0x%02X, ", buffer[ i ] ); }
44 for( i = 0; i <
length; i++ )
45 {
if( !( i % 8 ) ) printf(
"\n\t " );
46 printf(
"0x%02X, ", buffer[ i ] ); }
49 for( i = 0; i <
length; i++ )
50 {
if( !( i % 8 ) ) printf(
"\n\t " );
51 printf(
"0x%02X, ", buffer[ i ] ); }
54 for( i = 0; i <
length; i++ )
55 {
if( !( i % 8 ) ) printf(
"\n\t " );
56 printf(
"0x%02X, ", buffer[ i ] ); }
59 for( i = 0; i <
length; i++ )
60 {
if( !( i % 8 ) ) printf(
"\n\t " );
61 printf(
"0x%02X, ", buffer[ i ] ); }
64 for( i = 0; i <
length; i++ )
65 {
if( !( i % 8 ) ) printf(
"\n\t " );
66 printf(
"0x%02X, ", buffer[ i ] ); }
69 for( i = 0; i <
length; i++ )
70 {
if( !( i % 8 ) ) printf(
"\n\t " );
71 printf(
"0x%02X, ", buffer[ i ] ); }
74 for( i = 0; i <
length; i++ )
75 {
if( !( i % 8 ) ) printf(
"\n\t " );
76 printf(
"0x%02X, ", buffer[ i ] ); }
88 printf(
"static const DLP_KEY FAR_BSS dlpTestKey = {\n" );
91 for( i = 0; i <
length; i++ )
92 {
if( !( i % 8 ) ) printf(
"\n\t " );
93 printf(
"0x%02X, ", buffer[ i ] ); }
96 for( i = 0; i <
length; i++ )
97 {
if( !( i % 8 ) ) printf(
"\n\t " );
98 printf(
"0x%02X, ", buffer[ i ] ); }
101 for( i = 0; i <
length; i++ )
102 {
if( !( i % 8 ) ) printf(
"\n\t " );
103 printf(
"0x%02X, ", buffer[ i ] ); }
106 for( i = 0; i <
length; i++ )
107 {
if( !( i % 8 ) ) printf(
"\n\t " );
108 printf(
"0x%02X, ", buffer[ i ] ); }
111 for( i = 0; i <
length; i++ )
112 {
if( !( i % 8 ) ) printf(
"\n\t " );
113 printf(
"0x%02X, ", buffer[ i ] ); }
120 const int nLen;
const BYTE n[ 256 ];
121 const int eLen;
const BYTE e[ 3 ];
122 const int dLen;
const BYTE d[ 256 ];
123 const int pLen;
const BYTE p[ 128 ];
124 const int qLen;
const BYTE q[ 128 ];
125 const int uLen;
const BYTE u[ 128 ];
126 const int e1Len;
const BYTE e1[ 128 ];
127 const int e2Len;
const BYTE e2[ 128 ];
133 { 0x9C, 0x4D, 0x98, 0x18, 0x67, 0xF9, 0x45, 0xBC,
134 0xB6, 0x75, 0x53, 0x5D, 0x2C, 0xFA, 0x55, 0xE4,
135 0x51, 0x54, 0x9F, 0x0C, 0x16, 0xB1, 0xAF, 0x89,
136 0xF6, 0xF3, 0xE7, 0x78, 0xB1, 0x2B, 0x07, 0xFB,
137 0xDC, 0xDE, 0x64, 0x23, 0x34, 0x87, 0xDA, 0x0B,
138 0xE5, 0xB3, 0x17, 0x16, 0xA4, 0xE3, 0x7F, 0x23,
139 0xDF, 0x96, 0x16, 0x28, 0xA6, 0xD2, 0xF0, 0x0A,
140 0x59, 0xEE, 0x06, 0xB3, 0x76, 0x6C, 0x64, 0x19,
141 0xD9, 0x76, 0x41, 0x25, 0x66, 0xD1, 0x93, 0x51,
142 0x52, 0x06, 0x6B, 0x71, 0x50, 0x0E, 0xAB, 0x30,
143 0xA5, 0xC8, 0x41, 0xFC, 0x30, 0xBC, 0x32, 0xD7,
144 0x4B, 0x22, 0xF2, 0x45, 0x4C, 0x94, 0x68, 0xF1,
145 0x92, 0x8A, 0x4C, 0xF9, 0xD4, 0x5E, 0x87, 0x92,
146 0xA8, 0x54, 0x93, 0x92, 0x94, 0x48, 0xA4, 0xA3,
147 0xEE, 0x19, 0x7F, 0x6E, 0xD3, 0x14, 0xB1, 0x48,
148 0xCE, 0x93, 0xD1, 0xEA, 0x4C, 0xE1, 0x9D, 0xEF },
152 { 0x01, 0x00, 0x01 },
156 { 0x37, 0xE2, 0x66, 0x67, 0x13, 0x85, 0xC4, 0xB1,
157 0x5C, 0x6B, 0x46, 0x8B, 0x21, 0xF1, 0xBF, 0x94,
158 0x0A, 0xA0, 0x3E, 0xDD, 0x8B, 0x9F, 0xAC, 0x2B,
159 0x9F, 0xE8, 0x44, 0xF2, 0x9A, 0x25, 0xD0, 0x8C,
160 0xF4, 0xC3, 0x6E, 0xFA, 0x47, 0x65, 0xEB, 0x48,
161 0x25, 0xB0, 0x8A, 0xA8, 0xC5, 0xFB, 0xB1, 0x11,
162 0x9A, 0x77, 0x87, 0x24, 0xB1, 0xC0, 0xE9, 0xA2,
163 0x49, 0xD5, 0x19, 0x00, 0x41, 0x6F, 0x2F, 0xBA,
164 0x9F, 0x28, 0x47, 0xF9, 0xB8, 0xBA, 0xFF, 0xF4,
165 0x8B, 0x20, 0xC9, 0xC9, 0x39, 0xAB, 0x52, 0x0E,
166 0x8A, 0x5A, 0xAF, 0xB3, 0xA3, 0x93, 0x4D, 0xBB,
167 0xFE, 0x62, 0x9B, 0x02, 0xCC, 0xA7, 0xB4, 0xAE,
168 0x86, 0x65, 0x88, 0x19, 0xD7, 0x44, 0xA7, 0xE4,
169 0x18, 0xB6, 0xCE, 0x01, 0xCD, 0xDF, 0x36, 0x81,
170 0xD5, 0xE1, 0x62, 0xF8, 0xD0, 0x27, 0xF1, 0x86,
171 0xA8, 0x58, 0xA7, 0xEB, 0x39, 0x79, 0x56, 0x41 },
175 { 0xCF, 0xDA, 0xF9, 0x99, 0x6F, 0x05, 0x95, 0x84,
176 0x09, 0x90, 0xB3, 0xAB, 0x39, 0xB7, 0xDD, 0x1D,
177 0x7B, 0xFC, 0xFD, 0x10, 0x35, 0xA0, 0x18, 0x1D,
178 0x9A, 0x11, 0x30, 0x90, 0xD4, 0x3B, 0xF0, 0x5A,
179 0xC1, 0xA6, 0xF4, 0x53, 0xD0, 0x94, 0xA0, 0xED,
180 0xE0, 0xE4, 0xE0, 0x8E, 0x44, 0x18, 0x42, 0x42,
181 0xE1, 0x2C, 0x0D, 0xF7, 0x30, 0xE2, 0xB8, 0x09,
182 0x73, 0x50, 0x28, 0xF6, 0x55, 0x85, 0x57, 0x03 },
186 { 0xC0, 0x81, 0xC4, 0x82, 0x6E, 0xF6, 0x1C, 0x92,
187 0x83, 0xEC, 0x17, 0xFB, 0x30, 0x98, 0xED, 0x6E,
188 0x89, 0x92, 0xB2, 0xA1, 0x21, 0x0D, 0xC1, 0x95,
189 0x49, 0x99, 0xD3, 0x79, 0xD3, 0xBD, 0x94, 0x93,
190 0xB9, 0x28, 0x68, 0xFF, 0xDE, 0xEB, 0xE8, 0xD2,
191 0x0B, 0xED, 0x7C, 0x08, 0xD0, 0xD5, 0x59, 0xE3,
192 0xC1, 0x76, 0xEA, 0xC1, 0xCD, 0xB6, 0x8B, 0x39,
193 0x4E, 0x29, 0x59, 0x5F, 0xFA, 0xCE, 0x83, 0xA5 },
197 { 0x4B, 0x87, 0x97, 0x1F, 0x27, 0xED, 0xAA, 0xAF,
198 0x42, 0xF4, 0x57, 0x82, 0x3F, 0xEC, 0x80, 0xED,
199 0x1E, 0x91, 0xF8, 0xB4, 0x33, 0xDA, 0xEF, 0xC3,
200 0x03, 0x53, 0x0F, 0xCE, 0xB9, 0x5F, 0xE4, 0x29,
201 0xCC, 0xEE, 0x6A, 0x5E, 0x11, 0x0E, 0xFA, 0x66,
202 0x85, 0xDC, 0xFC, 0x48, 0x31, 0x0C, 0x00, 0x97,
203 0xC6, 0x0A, 0xF2, 0x34, 0x60, 0x6B, 0xF7, 0x68,
204 0x09, 0x4E, 0xCF, 0xB1, 0x9E, 0x33, 0x9A, 0x41 },
208 { 0x6B, 0x2A, 0x0D, 0xF8, 0x22, 0x7A, 0x71, 0x8C,
209 0xE2, 0xD5, 0x9D, 0x1C, 0x91, 0xA4, 0x8F, 0x37,
210 0x0D, 0x5E, 0xF1, 0x26, 0x73, 0x4F, 0x78, 0x3F,
211 0x82, 0xD8, 0x8B, 0xFE, 0x8F, 0xBD, 0xDB, 0x7D,
212 0x1F, 0x4C, 0xB1, 0xB9, 0xA8, 0xD7, 0x88, 0x65,
213 0x3C, 0xC7, 0x24, 0x53, 0x95, 0x1E, 0x20, 0xC3,
214 0x94, 0x8E, 0x7F, 0x20, 0xCC, 0x2E, 0x88, 0x0E,
215 0x2F, 0x4A, 0xCB, 0xE3, 0xBD, 0x52, 0x02, 0xFB },
219 { 0x10, 0x27, 0xD3, 0xD2, 0x0E, 0x75, 0xE1, 0x17,
220 0xFA, 0xB2, 0x49, 0xA0, 0xEF, 0x07, 0x26, 0x85,
221 0xEC, 0x4D, 0xBF, 0x67, 0xFE, 0x5A, 0x25, 0x30,
222 0xDE, 0x28, 0x66, 0xB3, 0x06, 0xAE, 0x16, 0x55,
223 0xFF, 0x68, 0x00, 0xC7, 0xD8, 0x71, 0x7B, 0xEC,
224 0x84, 0xCB, 0xBD, 0x69, 0x0F, 0xFD, 0x97, 0xB9,
225 0xA1, 0x76, 0xD5, 0x64, 0xC6, 0x5A, 0xD7, 0x7C,
226 0x4B, 0xAE, 0xF4, 0xAD, 0x35, 0x63, 0x37, 0x71 }
232 { 0xBC, 0xB9, 0x69, 0xBE, 0x8A, 0xDE, 0x29, 0x4B,
233 0xFC, 0x0C, 0xCA, 0x10, 0xBC, 0x16, 0x30, 0x9B,
234 0x78, 0xE2, 0xDB, 0x18, 0x61, 0x4F, 0x2C, 0xD8,
235 0x88, 0xFD, 0xC8, 0x59, 0xD0, 0x24, 0x95, 0x79,
236 0x95, 0x33, 0x8E, 0x41, 0xAB, 0x8E, 0x36, 0x6A,
237 0xB1, 0xAA, 0xE7, 0xA0, 0x06, 0x70, 0xA8, 0x47,
238 0xC3, 0xA7, 0xFB, 0x3F, 0xA6, 0x62, 0xC2, 0xD1,
239 0x9B, 0xA2, 0x7A, 0x93, 0x65, 0x02, 0x31, 0x5C,
240 0x61, 0x18, 0xF3, 0x61, 0x4E, 0x11, 0x1F, 0x77,
241 0xDB, 0x86, 0x11, 0x73, 0xA3, 0x7A, 0x30, 0x46,
242 0x10, 0xE3, 0x23, 0xE2, 0x9E, 0x41, 0x23, 0xA2,
243 0x32, 0x25, 0x1D, 0x9B, 0x15, 0x64, 0x52, 0x88,
244 0x97, 0x70, 0x3D, 0x83, 0x0A, 0xAC, 0x47, 0x2E,
245 0x0E, 0xFE, 0x56, 0xBA, 0x2E, 0x3A, 0xEB, 0xE7,
246 0x56, 0xDC, 0x60, 0xA2, 0xEA, 0xBF, 0xFC, 0xD0,
247 0xAD, 0xED, 0xB3, 0xC2, 0x6B, 0x0E, 0xAE, 0x00,
248 0x2A, 0x19, 0xE1, 0xFD, 0x85, 0x14, 0x53, 0xA6,
249 0xD4, 0xBE, 0x7D, 0xF0, 0xC8, 0x39, 0xFF, 0x07,
250 0x58, 0x79, 0x52, 0x1E, 0xE4, 0xF9, 0xC9, 0xE1,
251 0x82, 0xD1, 0xF6, 0x1B, 0x8B, 0x69, 0x26, 0x2E,
252 0x9F, 0x8D, 0xDE, 0xB5, 0x9A, 0x9C, 0xAF, 0x7A,
253 0x61, 0x00, 0xFC, 0x7B, 0xC1, 0x47, 0x34, 0xBB,
254 0x49, 0x1C, 0x99, 0x4D, 0x63, 0xC3, 0x47, 0xE8,
255 0xE9, 0x75, 0x08, 0xD0, 0xE2, 0x9D, 0xA6, 0x56,
256 0x64, 0x7D, 0xCE, 0x62, 0x7B, 0xE9, 0x4E, 0xE5,
257 0x25, 0xA2, 0xAF, 0x36, 0xC4, 0x95, 0x17, 0xA5,
258 0xE9, 0x52, 0x0D, 0xF6, 0x29, 0x1E, 0xAE, 0xC5,
259 0x6C, 0x43, 0x00, 0x02, 0xE3, 0x03, 0xE5, 0x2C,
260 0x12, 0x63, 0x7E, 0x5E, 0x97, 0x93, 0x7D, 0x35,
261 0xBB, 0x58, 0xD0, 0xD1, 0x74, 0x3B, 0xC0, 0x2D,
262 0x86, 0x66, 0x1B, 0x81, 0x45, 0x64, 0xE5, 0xE0,
263 0xAC, 0x39, 0x22, 0xEA, 0x25, 0x5B, 0x7D, 0x41 },
267 { 0x01, 0x00, 0x01 },
271 { 0x4A, 0x93, 0x15, 0xD7, 0x06, 0x76, 0xDD, 0x68,
272 0xBA, 0x33, 0xAF, 0x91, 0x47, 0x51, 0x99, 0x69,
273 0x86, 0x2E, 0x56, 0x97, 0x5E, 0xB4, 0x73, 0xAB,
274 0x29, 0x0E, 0xE7, 0xA1, 0x9D, 0xDF, 0x26, 0xF5,
275 0xC1, 0x60, 0x7B, 0x01, 0x36, 0x32, 0x5F, 0x0C,
276 0x70, 0x22, 0x71, 0x9E, 0xC9, 0x8C, 0xB0, 0xE2,
277 0x92, 0xCD, 0x09, 0x3A, 0x50, 0x9C, 0x4C, 0x11,
278 0x99, 0xE7, 0x6D, 0x7A, 0x5A, 0xFA, 0xAF, 0xD8,
279 0xAA, 0x41, 0xBA, 0xC2, 0xA3, 0x9F, 0x9E, 0x88,
280 0xB5, 0x45, 0x58, 0x16, 0x12, 0xEE, 0x50, 0xAF,
281 0x0F, 0x33, 0x42, 0x55, 0xE5, 0x65, 0x26, 0x18,
282 0x8C, 0xAA, 0x1F, 0xF5, 0xCD, 0x51, 0x34, 0x4F,
283 0xE7, 0x4F, 0xA1, 0xEE, 0xEB, 0x43, 0xC2, 0x68,
284 0xCF, 0xE1, 0xEF, 0x11, 0x68, 0xFD, 0x3D, 0x84,
285 0xCF, 0xCD, 0x0B, 0x9E, 0xB5, 0x16, 0xA2, 0x67,
286 0x2F, 0xA3, 0x73, 0x5A, 0x0B, 0x05, 0xE4, 0xF9,
287 0x5B, 0x60, 0xE1, 0xEF, 0x7A, 0x12, 0x3C, 0xFC,
288 0xF7, 0xD6, 0x34, 0x09, 0x77, 0x6D, 0xF3, 0x70,
289 0x34, 0x16, 0x35, 0x26, 0xB4, 0xF8, 0x5F, 0x05,
290 0xB9, 0xB2, 0x7F, 0x07, 0x17, 0x62, 0x9E, 0x1C,
291 0x96, 0xCC, 0x9B, 0xF3, 0x19, 0xE5, 0xDA, 0x86,
292 0x0A, 0x91, 0x06, 0x8B, 0xB6, 0xCF, 0x21, 0xD8,
293 0x68, 0x9C, 0x5F, 0xF1, 0xA7, 0xF4, 0x80, 0x7B,
294 0x09, 0xC5, 0x64, 0x1D, 0x3D, 0xDD, 0x68, 0x66,
295 0x55, 0x6C, 0xDD, 0xED, 0x48, 0x43, 0x3B, 0x19,
296 0x84, 0x6F, 0x8E, 0x87, 0x3E, 0x6D, 0xEB, 0xE5,
297 0x28, 0x22, 0xEA, 0xE1, 0x3F, 0x44, 0xDF, 0x40,
298 0xE3, 0xED, 0xDB, 0x0D, 0x6C, 0x96, 0x5C, 0x41,
299 0xD7, 0x32, 0xF7, 0x12, 0x4A, 0xA3, 0x01, 0xD2,
300 0x23, 0x79, 0x0D, 0xE6, 0xAF, 0x33, 0x8D, 0xDE,
301 0x88, 0x32, 0x14, 0x56, 0x60, 0x03, 0x9A, 0x93,
302 0x05, 0x2E, 0xFC, 0xB4, 0x3F, 0xB9, 0xA2, 0x31 },
306 { 0xEE, 0x5B, 0x04, 0xEB, 0x5C, 0x16, 0x87, 0x89,
307 0x6C, 0xF7, 0xD4, 0xDC, 0x42, 0x6D, 0xCD, 0xCA,
308 0x3C, 0x9B, 0x7C, 0x4A, 0x94, 0x1F, 0xAD, 0xFA,
309 0xCC, 0x6F, 0xE1, 0x7E, 0xA0, 0x50, 0x48, 0xBF,
310 0xA7, 0x6A, 0x66, 0x66, 0x81, 0x1E, 0x79, 0xF9,
311 0xE8, 0x45, 0xBB, 0xF4, 0xC9, 0xE1, 0x85, 0x38,
312 0xDB, 0xF2, 0x7F, 0x77, 0x66, 0x42, 0xB4, 0xAD,
313 0xFA, 0xFC, 0xFF, 0xE4, 0x7D, 0xC6, 0xB0, 0x4B,
314 0xB2, 0xAD, 0x2A, 0x16, 0x2E, 0x22, 0x97, 0x8D,
315 0x98, 0xEF, 0x7C, 0x96, 0xA3, 0x7B, 0xF0, 0x5F,
316 0x40, 0x4E, 0xE7, 0x66, 0x06, 0x60, 0x25, 0x5B,
317 0x36, 0x2E, 0x6A, 0x37, 0xEF, 0xC7, 0xF6, 0xDC,
318 0x34, 0xC6, 0xC4, 0x40, 0x92, 0xC1, 0x20, 0x91,
319 0x5C, 0xB8, 0xEB, 0xBD, 0xA5, 0xF5, 0x7B, 0x54,
320 0x93, 0x20, 0x49, 0x02, 0x4F, 0xA4, 0x0A, 0x7F,
321 0xD4, 0x76, 0x6F, 0x6D, 0x92, 0x8B, 0xD0, 0xDD },
325 { 0xCA, 0xB1, 0xD9, 0xF4, 0x19, 0x4B, 0xDC, 0x6E,
326 0xF8, 0x88, 0xED, 0x8C, 0x93, 0x3F, 0x56, 0x79,
327 0xA4, 0x2E, 0x54, 0x3B, 0xD5, 0x69, 0xCD, 0x4F,
328 0xE0, 0x0C, 0x2B, 0x82, 0xEC, 0xFF, 0x7C, 0x05,
329 0x83, 0x7D, 0x68, 0xB6, 0x7B, 0x51, 0x8B, 0x00,
330 0x3F, 0x90, 0x63, 0x62, 0xA9, 0xFC, 0xA0, 0xBC,
331 0x47, 0xD9, 0x7B, 0x0E, 0xC3, 0x3A, 0x0C, 0x89,
332 0x96, 0x23, 0xAC, 0xBA, 0x09, 0xCF, 0x2D, 0xC2,
333 0x0A, 0x0C, 0xA1, 0xDD, 0x63, 0x82, 0x4B, 0xDC,
334 0x88, 0x0D, 0x9B, 0xF4, 0x9C, 0x0F, 0x5F, 0xA6,
335 0xB4, 0xA2, 0xFE, 0xFB, 0x08, 0xB7, 0x0E, 0xED,
336 0xA5, 0x04, 0x13, 0xAB, 0x6B, 0x66, 0xF1, 0x85,
337 0xD0, 0xB1, 0xAB, 0xDC, 0x2F, 0x7E, 0x61, 0xB1,
338 0x28, 0x87, 0xBD, 0xC6, 0xA3, 0xD5, 0xA0, 0x04,
339 0xD4, 0x9F, 0x49, 0xF9, 0xA9, 0xB4, 0xB1, 0x33,
340 0x8C, 0xFA, 0x62, 0xDE, 0x9A, 0x16, 0x85, 0xB5 },
344 { 0x5F, 0x6C, 0x5D, 0x2D, 0x73, 0x9C, 0x2B, 0x8C,
345 0x1C, 0x8B, 0x96, 0x6C, 0x84, 0xDB, 0x21, 0x86,
346 0xF1, 0xEA, 0x75, 0xE1, 0xC5, 0x96, 0x23, 0x38,
347 0x82, 0x02, 0x77, 0x8B, 0xFA, 0x79, 0xE3, 0xA2,
348 0x88, 0x0C, 0x38, 0x9C, 0x56, 0x44, 0xAA, 0x1C,
349 0x20, 0xB2, 0x9E, 0x9D, 0xD9, 0xAE, 0x95, 0x6B,
350 0x43, 0xB1, 0x4C, 0x38, 0x88, 0x9C, 0x12, 0x4E,
351 0x7C, 0x1F, 0xD1, 0x41, 0x6E, 0x11, 0xAA, 0x48,
352 0x7A, 0xAC, 0x56, 0xF0, 0x6B, 0xA3, 0x35, 0xE4,
353 0x6B, 0xC0, 0xF4, 0x33, 0x74, 0xC0, 0x1E, 0xC4,
354 0x04, 0x44, 0xF0, 0x24, 0x32, 0x83, 0xB0, 0xC7,
355 0xAC, 0x5C, 0x6D, 0x29, 0x87, 0x1A, 0xA7, 0x03,
356 0x7B, 0x61, 0x69, 0x18, 0xA1, 0x26, 0x00, 0x0A,
357 0x96, 0x3A, 0x56, 0x1A, 0xA0, 0xFC, 0xE2, 0x4C,
358 0x51, 0xE0, 0x8F, 0xE5, 0x68, 0x69, 0xEE, 0xE8,
359 0xA9, 0x1B, 0x24, 0x0D, 0x55, 0x55, 0x98, 0x72 },
363 { 0x71, 0xC3, 0x9F, 0xA5, 0x76, 0x5E, 0x8A, 0x72,
364 0x5D, 0x40, 0x2C, 0xA8, 0xB4, 0x4C, 0x14, 0x5C,
365 0xE2, 0x70, 0x93, 0xF2, 0x44, 0xA0, 0x9A, 0x39,
366 0x8A, 0x3A, 0x1C, 0x36, 0x83, 0xED, 0xCD, 0xCB,
367 0x2B, 0xEC, 0xEC, 0xD3, 0x1F, 0xED, 0x9B, 0xEA,
368 0x5B, 0xA2, 0x6D, 0x03, 0x79, 0x17, 0xDA, 0xAE,
369 0x38, 0xCC, 0x95, 0x6A, 0x37, 0xB4, 0xBE, 0xE8,
370 0x0B, 0x53, 0x96, 0x0F, 0x48, 0xB8, 0xFC, 0x8C,
371 0x24, 0xCB, 0xE1, 0xBA, 0x94, 0x6A, 0x8E, 0x4B,
372 0x57, 0x23, 0x77, 0x23, 0xAF, 0x04, 0x08, 0xC6,
373 0x6D, 0xBB, 0x3B, 0x56, 0xC6, 0xD4, 0x3D, 0x00,
374 0x3B, 0xEC, 0x0B, 0x66, 0x87, 0x5B, 0xB9, 0xC7,
375 0x80, 0xA9, 0x1E, 0x22, 0x73, 0xE9, 0x19, 0xD2,
376 0x47, 0x9F, 0x3B, 0x65, 0x59, 0x40, 0xC1, 0x8C,
377 0xAC, 0x6C, 0x4C, 0x6C, 0x7D, 0xF6, 0x9D, 0xCC,
378 0x45, 0x6C, 0x01, 0xE3, 0x1A, 0x7F, 0x01, 0x41 },
382 { 0x32, 0x07, 0x93, 0xF4, 0x5C, 0x0A, 0x0D, 0x6E,
383 0x96, 0x89, 0xB5, 0x98, 0x6C, 0xFF, 0xC5, 0x28,
384 0x61, 0x0D, 0xCE, 0x5C, 0xB6, 0x60, 0x56, 0xFC,
385 0xD0, 0x20, 0x30, 0xDD, 0x30, 0x02, 0x1F, 0x6A,
386 0x7C, 0xFA, 0x07, 0x4E, 0x83, 0x41, 0xAD, 0x3D,
387 0x72, 0x73, 0x01, 0x14, 0xE9, 0x40, 0x21, 0xAC,
388 0x57, 0x4F, 0xA6, 0xC0, 0x0E, 0x0F, 0xD5, 0xE8,
389 0x5F, 0xD6, 0x8E, 0x5B, 0x9C, 0xF0, 0x36, 0x2B,
390 0x1E, 0xAF, 0xDF, 0x83, 0xF5, 0x7B, 0xC3, 0x9D,
391 0xBB, 0x37, 0x20, 0xB7, 0x4F, 0x8D, 0xBB, 0xDE,
392 0x39, 0xD7, 0xC1, 0x77, 0xD4, 0xBE, 0xDA, 0x40,
393 0x6D, 0xEA, 0x83, 0xB0, 0x5B, 0xE2, 0x1C, 0xDB,
394 0x1A, 0x97, 0xC0, 0x03, 0xA8, 0xF5, 0x58, 0xC7,
395 0x91, 0x69, 0x6F, 0xBE, 0x07, 0xD2, 0x42, 0x9C,
396 0xEE, 0x9E, 0x22, 0x74, 0x2D, 0x1F, 0x1C, 0x5D,
397 0xCC, 0xFE, 0x40, 0x49, 0x11, 0x5F, 0x5D, 0xC1 }
411 { 0x04, 0x4C, 0xDD, 0x5D, 0xB6, 0xED, 0x23, 0xAE,
412 0xB2, 0xA7, 0x59, 0xE6, 0xF8, 0x3D, 0xA6, 0x27,
413 0x85, 0xF2, 0xFE, 0xE2, 0xE8, 0xF3, 0xDA, 0xA3,
414 0x7B, 0xD6, 0x48, 0xD4, 0x44, 0xCA, 0x6E, 0x10,
415 0x97, 0x6C, 0x1D, 0x6C, 0x39, 0xA7, 0x0C, 0x88,
416 0x8E, 0x1F, 0xDD, 0xF7, 0x59, 0x69, 0xDA, 0x36,
417 0xDD, 0xB8, 0x3E, 0x1A, 0xD2, 0x91, 0x3E, 0x30,
418 0xB1, 0xB5, 0xC2, 0xBC, 0xA9, 0xA3, 0xA5, 0xDE,
419 0xC7, 0xCF, 0x51, 0x2C, 0x1B, 0x89, 0xD0, 0x71,
420 0xE3, 0x71, 0xBB, 0x50, 0x86, 0x26, 0x32, 0x9F,
421 0xF5, 0x4A, 0x9C, 0xB1, 0x78, 0x7B, 0x47, 0x1F,
422 0x19, 0xC7, 0x26, 0x22, 0x15, 0x62, 0x71, 0xAB,
423 0xD7, 0x25, 0xA5, 0xE4, 0x68, 0x71, 0x93, 0x5D,
424 0x1F, 0x29, 0x01, 0x05, 0x9C, 0x57, 0x3A, 0x09,
425 0xB0, 0xB8, 0xE4, 0xD2, 0x37, 0x90, 0x36, 0x2F,
426 0xBF, 0x1E, 0x74, 0xB4, 0x6B, 0xE4, 0x66, 0x07 },
430 { 0xFD, 0xD9, 0xC8, 0x5F, 0x73, 0x62, 0xC9, 0x79,
431 0xEF, 0xD5, 0x09, 0x07, 0x02, 0xE7, 0xF2, 0x90,
432 0x97, 0x13, 0x26, 0x1D },
436 { 0x02, 0x4E, 0xDD, 0x0D, 0x7F, 0x4D, 0xB1, 0x42,
437 0x01, 0x50, 0xE7, 0x9A, 0x65, 0x73, 0x8B, 0x31,
438 0x24, 0x6B, 0xC6, 0x74, 0xA7, 0x68, 0x26, 0x11,
439 0x06, 0x3C, 0x96, 0xA9, 0xA6, 0x23, 0x12, 0x79,
440 0xC4, 0xEE, 0x21, 0x88, 0xDD, 0xE3, 0xF0, 0x37,
441 0xCE, 0x3E, 0x54, 0x53, 0x57, 0x03, 0x30, 0xE4,
442 0xD3, 0xAB, 0x39, 0x4E, 0x39, 0xDC, 0xA2, 0x88,
443 0x82, 0xF6, 0xE8, 0xBA, 0xAC, 0xF5, 0x7D, 0x2F,
444 0x23, 0x9A, 0x09, 0x94, 0xB2, 0x89, 0xA2, 0xC9,
445 0x7C, 0xBE, 0x4D, 0x48, 0x0E, 0x59, 0x51, 0xB8,
446 0x7D, 0x99, 0x88, 0x79, 0xA8, 0x13, 0x0E, 0x12,
447 0x56, 0x9D, 0x4B, 0x2E, 0xE0, 0xE1, 0x37, 0x78,
448 0x6F, 0xCC, 0x4D, 0x97, 0xA9, 0x02, 0x0E, 0xD2,
449 0x43, 0x83, 0xEC, 0x4F, 0xC2, 0x70, 0xEF, 0x16,
450 0xDE, 0xBF, 0xBA, 0xD1, 0x6C, 0x8A, 0x36, 0xEE,
451 0x42, 0x41, 0xE9, 0xE7, 0x66, 0xAE, 0x46, 0x3B },
455 { 0xD9, 0x41, 0x29, 0xF7, 0x40, 0x32, 0x09, 0x71,
456 0xB8, 0xE2, 0xB8, 0xCB, 0x74, 0x46, 0x0B, 0xD4,
457 0xF2, 0xAB, 0x54, 0xA1 },
461 { 0x01, 0x7E, 0x16, 0x5B, 0x65, 0x51, 0x0A, 0xDA,
462 0x82, 0x1A, 0xD9, 0xF4, 0x1E, 0x66, 0x6D, 0x7D,
463 0x23, 0xA6, 0x28, 0x2F, 0xE6, 0xC2, 0x03, 0x8E,
464 0x8C, 0xAB, 0xC2, 0x08, 0x87, 0xC9, 0xE8, 0x51,
465 0x0A, 0x37, 0x1E, 0xD4, 0x41, 0x7F, 0xA2, 0xC5,
466 0x48, 0x26, 0xB7, 0xF6, 0xC2, 0x6F, 0xB2, 0xF8,
467 0xF9, 0x43, 0x43, 0xF9, 0xDA, 0xAB, 0xA2, 0x59,
468 0x27, 0xBA, 0xC9, 0x1C, 0x8C, 0xAB, 0xC4, 0x90,
469 0x27, 0xE1, 0x10, 0x39, 0x6F, 0xD2, 0xCD, 0x7C,
470 0xD1, 0x0B, 0xFA, 0x28, 0xD2, 0x7A, 0x7B, 0x52,
471 0x8A, 0xA0, 0x5A, 0x0F, 0x10, 0xF7, 0xBA, 0xFD,
472 0x33, 0x0C, 0x3C, 0xCE, 0xE5, 0xF2, 0xF6, 0x92,
473 0xED, 0x04, 0xBF, 0xD3, 0xF8, 0x3D, 0x39, 0xCC,
474 0xAA, 0xCC, 0x0B, 0xB2, 0x6B, 0xD8, 0xB2, 0x8A,
475 0x5C, 0xCE, 0xDA, 0xF9, 0xE1, 0xA7, 0x23, 0x50,
476 0xDC, 0xCE, 0xA4, 0xD5, 0xA5, 0x4F, 0x08, 0x0F }
484 #define CRYPT_IATTRIBUTE_KEY_SPKI 8015
487 0x30, 0x82, 0x01, 0x21,
488 0x30, 0x82, 0x01, 0x17,
489 0x06, 0x07, 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02, 0x01,
490 0x30, 0x82, 0x01, 0x0A,
491 0x02, 0x81, 0x81, 0x00,
492 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
493 0xC9, 0x0F, 0xDA, 0xA2, 0x21, 0x68, 0xC2, 0x34,
494 0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1,
495 0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74,
496 0x02, 0x0B, 0xBE, 0xA6, 0x3B, 0x13, 0x9B, 0x22,
497 0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD,
498 0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B,
499 0x30, 0x2B, 0x0A, 0x6D, 0xF2, 0x5F, 0x14, 0x37,
500 0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45,
501 0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6,
502 0xF4, 0x4C, 0x42, 0xE9, 0xA6, 0x37, 0xED, 0x6B,
503 0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED,
504 0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5,
505 0xAE, 0x9F, 0x24, 0x11, 0x7C, 0x4B, 0x1F, 0xE6,
506 0x49, 0x28, 0x66, 0x51, 0xEC, 0xE6, 0x53, 0x81,
507 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
511 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
512 0xE4, 0x87, 0xED, 0x51, 0x10, 0xB4, 0x61, 0x1A,
513 0x62, 0x63, 0x31, 0x45, 0xC0, 0x6E, 0x0E, 0x68,
514 0x94, 0x81, 0x27, 0x04, 0x45, 0x33, 0xE6, 0x3A,
515 0x01, 0x05, 0xDF, 0x53, 0x1D, 0x89, 0xCD, 0x91,
516 0x28, 0xA5, 0x04, 0x3C, 0xC7, 0x1A, 0x02, 0x6E,
517 0xF7, 0xCA, 0x8C, 0xD9, 0xE6, 0x9D, 0x21, 0x8D,
518 0x98, 0x15, 0x85, 0x36, 0xF9, 0x2F, 0x8A, 0x1B,
519 0xA7, 0xF0, 0x9A, 0xB6, 0xB6, 0xA8, 0xE1, 0x22,
520 0xF2, 0x42, 0xDA, 0xBB, 0x31, 0x2F, 0x3F, 0x63,
521 0x7A, 0x26, 0x21, 0x74, 0xD3, 0x1B, 0xF6, 0xB5,
522 0x85, 0xFF, 0xAE, 0x5B, 0x7A, 0x03, 0x5B, 0xF6,
523 0xF7, 0x1C, 0x35, 0xFD, 0xAD, 0x44, 0xCF, 0xD2,
524 0xD7, 0x4F, 0x92, 0x08, 0xBE, 0x25, 0x8F, 0xF3,
525 0x24, 0x94, 0x33, 0x28, 0xF6, 0x73, 0x29, 0xC0,
526 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
552 { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
553 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE,
554 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF },
557 { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
558 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE,
559 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC },
562 { 0x64, 0x21, 0x05, 0x19, 0xE5, 0x9C, 0x80, 0xE7,
563 0x0F, 0xA7, 0xE9, 0xAB, 0x72, 0x24, 0x30, 0x49,
564 0xFE, 0xB8, 0xDE, 0xEC, 0xC1, 0x46, 0xB9, 0xB1 },
567 { 0x18, 0x8D, 0xA8, 0x0E, 0xB0, 0x30, 0x90, 0xF6,
568 0x7C, 0xBF, 0x20, 0xEB, 0x43, 0xA1, 0x88, 0x00,
569 0xF4, 0xFF, 0x0A, 0xFD, 0x82, 0xFF, 0x10, 0x12 },
572 { 0x07, 0x19, 0x2B, 0x95, 0xFF, 0xC8, 0xDA, 0x78,
573 0x63, 0x10, 0x11, 0xED, 0x6B, 0x24, 0xCD, 0xD5,
574 0x73, 0xF9, 0x77, 0xA1, 0x1E, 0x79, 0x48, 0x11 },
577 { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
578 0xFF, 0xFF, 0xFF, 0xFF, 0x99, 0xDE, 0xF8, 0x36,
579 0x14, 0x6B, 0xC9, 0xB1, 0xB4, 0xD2, 0x28, 0x31 },
591 { 0x43, 0x4F, 0x79, 0x78, 0xE7, 0x00, 0x55, 0x7F,
592 0x6C, 0xC7, 0x2B, 0xCA, 0x3B, 0xC5, 0xB7, 0xB2,
593 0xC3, 0x06, 0xEA, 0xD0, 0xBD, 0x57, 0x76, 0xD1 },
596 { 0x67, 0xD4, 0xA9, 0x61, 0x1C, 0x2F, 0x81, 0x0E,
597 0x4E, 0x6C, 0xA4, 0x92, 0xC8, 0x4E, 0xBC, 0x9B,
598 0x7C, 0x8D, 0xF9, 0x98, 0x19, 0x2F, 0x8B, 0xA8 },
601 { 0x40, 0x79, 0x26, 0x9F, 0x12, 0x89, 0x90, 0xE9,
602 0x41, 0x11, 0xBF, 0x25, 0xDA, 0xD0, 0x58, 0x51,
603 0x49, 0x6B, 0x6C, 0xCF, 0x90, 0x9A, 0x76, 0x8D }
613 { 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x01,
614 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
615 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
616 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF },
619 { 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x01,
620 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
621 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
622 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC },
625 { 0x5A, 0xC6, 0x35, 0xD8, 0xAA, 0x3A, 0x93, 0xE7,
626 0xB3, 0xEB, 0xBD, 0x55, 0x76, 0x98, 0x86, 0xBC,
627 0x65, 0x1D, 0x06, 0xB0, 0xCC, 0x53, 0xB0, 0xF6,
628 0x3B, 0xCE, 0x3C, 0x3E, 0x27, 0xD2, 0x60, 0x4B },
631 { 0x6B, 0x17, 0xD1, 0xF2, 0xE1, 0x2C, 0x42, 0x47,
632 0xF8, 0xBC, 0xE6, 0xE5, 0x63, 0xA4, 0x40, 0xF2,
633 0x77, 0x03, 0x7D, 0x81, 0x2D, 0xEB, 0x33, 0xA0,
634 0xF4, 0xA1, 0x39, 0x45, 0xD8, 0x98, 0xC2, 0x96 },
637 { 0x4F, 0xE3, 0x42, 0xE2, 0xFE, 0x1A, 0x7F, 0x9B,
638 0x8E, 0xE7, 0xEB, 0x4A, 0x7C, 0x0F, 0x9E, 0x16,
639 0x2B, 0xCE, 0x33, 0x57, 0x6B, 0x31, 0x5E, 0xCE,
640 0xCB, 0xB6, 0x40, 0x68, 0x37, 0xBF, 0x51, 0xF5 },
643 { 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00,
644 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
645 0xBC, 0xE6, 0xFA, 0xAD, 0xA7, 0x17, 0x9E, 0x84,
646 0xF3, 0xB9, 0xCA, 0xC2, 0xFC, 0x63, 0x25, 0x51 },
658 { 0x26, 0x0C, 0xAB, 0x1F, 0xF2, 0x5E, 0x8F, 0x54,
659 0x1C, 0x52, 0x66, 0x4A, 0x1B, 0x23, 0x8F, 0x68,
660 0x0D, 0xEB, 0xCB, 0x0B, 0x4A, 0x4E, 0x4C, 0x88,
661 0xCA, 0x53, 0x1F, 0x32, 0xAB, 0x0F, 0x72, 0x56 },
664 { 0x94, 0x56, 0xD7, 0x00, 0x6A, 0x50, 0x06, 0xC0,
665 0x87, 0x9B, 0x73, 0x0D, 0x3F, 0x16, 0x37, 0x42,
666 0xE8, 0x8A, 0xA0, 0x7F, 0x9F, 0x87, 0xD5, 0x29,
667 0xCF, 0x3C, 0x83, 0xC7, 0xC3, 0xE3, 0x93, 0x58 },
670 { 0xC6, 0x91, 0x9E, 0xD5, 0xF2, 0x84, 0xE0, 0x30,
671 0xD5, 0x7B, 0xA8, 0x13, 0x51, 0x0B, 0x50, 0x1C,
672 0x7D, 0x8E, 0x14, 0x66, 0xE2, 0xF1, 0x49, 0x97,
673 0x06, 0x49, 0x61, 0x67, 0xFA, 0xA3, 0xEA, 0x05 }
692 printf(
"A key object with the label '%s' already exists inside the\n"
693 "device. To perform this test, you need to delete the "
694 "existing object so\nthat cryptlib can create a new one, "
695 "line %d.\n", label, __LINE__ );
700 printf(
"Attempt to set object label failed with status %d, "
701 "line %d.\n", status, __LINE__ );
717 #define xsetMessageData( msgDataPtr, dataPtr, dataLength ) \
719 ( msgDataPtr )->data = ( dataPtr ); \
720 ( msgDataPtr )->length = ( dataLength ); \
737 printf(
"crypt%sCreateContext() failed with error code %d, "
738 "line %d.\n", isDevice ?
"Device" :
"", status, __LINE__ );
741 if( !setLabel( *cryptContext,
"DH key" ) )
750 xsetMessageData( &msgData, (
void * ) dh1024SPKI,
751 sizeof( dh1024SPKI ) );
753 &msgData, CRYPT_IATTRIBUTE_KEY_SPKI );
757 printf(
"DH key load failed, status = %d, line %d.\n", status,
766 static int loadRSAPublicKey(
const CRYPT_DEVICE cryptDevice,
768 const C_STR cryptContextLabel,
773 const RSA_KEY *rsaKeyTemplate = useLargeKey ? \
774 &rsa2048TestKey : &rsa1024TestKey;
785 printf(
"crypt%sCreateContext() failed with error code %d, "
786 "line %d.\n", isDevice ?
"Device" :
"", status, __LINE__ );
789 if( isDevice && !setLabel( *cryptContext, cryptContextLabel ) )
809 const C_STR cryptContextLabel,
810 const C_STR decryptContextLabel,
815 const RSA_KEY *rsaKeyTemplate = useLargeKey ? \
816 &rsa2048TestKey : &rsa1024TestKey;
818 BOOLEAN loadLargeKey = useLargeKey;
838 if( cryptQueryInfo.
keySize != ( rsa1024TestKey.nLen >> 3 ) )
840 if( cryptQueryInfo.
keySize != ( rsa2048TestKey.nLen >> 3 ) )
842 printf(
"Device requires a %d-bit key, which doesn't "
843 "correspond to any built-in\ncryptlib key.\n",
848 rsaKeyTemplate = &rsa2048TestKey;
854 if( cryptContext != NULL )
856 status = loadRSAPublicKey( cryptDevice, cryptContext,
857 cryptContextLabel, rsaKey, isDevice,
863 puts(
" Warning: Device doesn't support public-key operations, "
864 "using a cryptlib\n native context instead." );
866 cryptContextLabel, rsaKey,
FALSE,
872 printf(
"Public key load failed with error code %d, line %d.\n",
876 if( decryptContext == NULL )
894 if( cryptContext != NULL )
901 printf(
"crypt%sCreateContext() failed with error code %d, "
902 "line %d.\n", isDevice ?
"Device" :
"", status, __LINE__ );
905 if( !setLabel( *decryptContext, decryptContextLabel ) )
909 if( cryptContext != NULL )
937 if( cryptContext != NULL )
947 decryptContextLabel );
948 printf(
"Private key load failed with error code %d, line %d.\n",
976 const C_STR signContextLabel,
977 const C_STR sigCheckContextLabel )
988 if( signContext != NULL )
999 printf(
"cryptCreateContext() failed with error code %d, "
1000 "line %d.\n", status, __LINE__ );
1003 if( !setLabel( *signContext, signContextLabel ) )
1023 printf(
"Private key load failed with error code %d, line %d.\n",
1027 if( sigCheckContext == NULL )
1044 if( signContext != NULL )
1051 printf(
"cryptCreateContext() failed with error code %d, line %d.\n",
1055 if( !setLabel( *sigCheckContext, sigCheckContextLabel ) )
1058 if( signContext != NULL )
1080 if( signContext != NULL )
1090 sigCheckContextLabel );
1091 printf(
"Public key load failed with error code %d, line %d.\n",
1118 if( cryptContext != NULL )
1125 printf(
"cryptCreateContext() failed with error code %d, "
1126 "line %d.\n", status, __LINE__ );
1148 printf(
"Public key load failed with error code %d, line %d.\n",
1152 if( decryptContext == NULL )
1165 if( cryptContext != NULL )
1167 printf(
"cryptCreateContext() failed with error code %d, line %d.\n",
1174 if( cryptContext != NULL )
1192 if( cryptContext != NULL )
1194 if( decryptContext != NULL )
1196 printf(
"Private key load failed with error code %d, line %d.\n",
1221 printf(
"cryptCreateContext() failed with error code %d, line %d.\n",
1242 printf(
"DH #1 key load failed with error code %d, line %d.\n",
1246 if( cryptContext2 == NULL )
1257 printf(
"cryptCreateContext() failed with error code %d, line %d.\n",
1264 if( cryptContext1 != NULL )
1280 printf(
"DH #2 key load failed with error code %d, line %d.\n",
1294 const ECC_KEY *eccKeyData = &eccP256TestKey;
1302 if( signContext != NULL )
1309 printf(
"cryptCreateContext() failed with error code %d, "
1310 "line %d.\n", status, __LINE__ );
1321 if( eccKeyData->
pLen > 0 )
1341 printf(
"Private key load failed with error code %d, line %d.\n",
1345 if( sigCheckContext == NULL )
1358 if( signContext != NULL )
1360 printf(
"cryptCreateContext() failed with error code %d, line %d.\n",
1367 if( signContext != NULL )
1374 if( eccKeyData->
pLen > 0 )
1392 if( signContext != NULL )
1395 printf(
"Public key load failed with error code %d, line %d.\n",
1414 printf(
"cryptDestroyContext() failed with error code %d, "
1415 "line %d.\n", status, __LINE__ );
1418 printf(
"cryptDestroyContext() failed with error code %d, "
1419 "line %d.\n", status, __LINE__ );