Lines Matching +full:0 +full:x6b

36 #define PRNG_MODE_AUTO	  0
41 module_param_named(mode, prng_mode, int, 0);
42 MODULE_PARM_DESC(prng_mode, "PRNG mode: 0 - auto, 1 - TDES, 2 - SHA512");
51 module_param_named(chunksize, prng_chunk_size, int, 0);
61 module_param_named(reseed_limit, prng_reseed_limit, int, 0);
109 0x0F, 0x2B, 0x8E, 0x63, 0x8C, 0x8E, 0xD2, 0x52,
110 0x64, 0xB7, 0xA0, 0x7B, 0x75, 0x28, 0xB8, 0xF4,
111 0x75, 0x5F, 0xD2, 0xA6, 0x8D, 0x97, 0x11, 0xFF,
112 0x49, 0xD8, 0x23, 0xF3, 0x7E, 0x21, 0xEC, 0xA0 };
127 * stckf value is bit 51 (counting starts at the left with bit nr 0) so
137 int n, ret = 0; in generate_entropy()
140 0x6A, 0x09, 0xE6, 0x67, 0xF3, 0xBC, 0xC9, 0x08, in generate_entropy()
141 0xBB, 0x67, 0xAE, 0x85, 0x84, 0xCA, 0xA7, 0x3B, in generate_entropy()
142 0x3C, 0x6E, 0xF3, 0x72, 0xFE, 0x94, 0xF8, 0x2B, in generate_entropy()
143 0xA5, 0x4F, 0xF5, 0x3A, 0x5F, 0x1D, 0x36, 0xF1, in generate_entropy()
144 0x51, 0x0E, 0x52, 0x7F, 0xAD, 0xE6, 0x82, 0xD1, in generate_entropy()
145 0x9B, 0x05, 0x68, 0x8C, 0x2B, 0x3E, 0x6C, 0x1F, in generate_entropy()
146 0x1F, 0x83, 0xD9, 0xAB, 0xFB, 0x41, 0xBD, 0x6B, in generate_entropy()
147 0x5B, 0xE0, 0xCD, 0x19, 0x13, 0x7E, 0x21, 0x79, in generate_entropy()
149 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in generate_entropy()
150 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00 }; in generate_entropy()
164 for (n = 0; n < 512; n++) { in generate_entropy()
192 for (i = 0; i < 16; i++) { in prng_tdes_add_entropy()
204 int i = 0; in prng_tdes_seed()
218 prng_data->prngws.reseed_counter = 0; in prng_tdes_seed()
244 return 0; in prng_tdes_instantiate()
260 /* NIST DRBG testvector for Hash Drbg, Sha-512, Count #0 */ in prng_sha512_selftest()
262 0x6b, 0x50, 0xa7, 0xd8, 0xf8, 0xa5, 0x5d, 0x7a, in prng_sha512_selftest()
263 0x3d, 0xf8, 0xbb, 0x40, 0xbc, 0xc3, 0xb7, 0x22, in prng_sha512_selftest()
264 0xd8, 0x70, 0x8d, 0xe6, 0x7f, 0xda, 0x01, 0x0b, in prng_sha512_selftest()
265 0x03, 0xc4, 0xc8, 0x4d, 0x72, 0x09, 0x6f, 0x8c, in prng_sha512_selftest()
266 0x3e, 0xc6, 0x49, 0xcc, 0x62, 0x56, 0xd9, 0xfa, in prng_sha512_selftest()
267 0x31, 0xdb, 0x7a, 0x29, 0x04, 0xaa, 0xf0, 0x25 }; in prng_sha512_selftest()
269 0x00, 0xad, 0xe3, 0x6f, 0x9a, 0x01, 0xc7, 0x76, in prng_sha512_selftest()
270 0x61, 0x34, 0x35, 0xf5, 0x4e, 0x24, 0x74, 0x22, in prng_sha512_selftest()
271 0x21, 0x9a, 0x29, 0x89, 0xc7, 0x93, 0x2e, 0x60, in prng_sha512_selftest()
272 0x1e, 0xe8, 0x14, 0x24, 0x8d, 0xd5, 0x03, 0xf1, in prng_sha512_selftest()
273 0x65, 0x5d, 0x08, 0x22, 0x72, 0xd5, 0xad, 0x95, in prng_sha512_selftest()
274 0xe1, 0x23, 0x1e, 0x8a, 0xa7, 0x13, 0xd9, 0x2b, in prng_sha512_selftest()
275 0x5e, 0xbc, 0xbb, 0x80, 0xab, 0x8d, 0xe5, 0x79, in prng_sha512_selftest()
276 0xab, 0x5b, 0x47, 0x4e, 0xdd, 0xee, 0x6b, 0x03, in prng_sha512_selftest()
277 0x8f, 0x0f, 0x5c, 0x5e, 0xa9, 0x1a, 0x83, 0xdd, in prng_sha512_selftest()
278 0xd3, 0x88, 0xb2, 0x75, 0x4b, 0xce, 0x83, 0x36, in prng_sha512_selftest()
279 0x57, 0x4b, 0xf1, 0x5c, 0xca, 0x7e, 0x09, 0xc0, in prng_sha512_selftest()
280 0xd3, 0x89, 0xc6, 0xe0, 0xda, 0xc4, 0x81, 0x7e, in prng_sha512_selftest()
281 0x5b, 0xf9, 0xe1, 0x01, 0xc1, 0x92, 0x05, 0xea, in prng_sha512_selftest()
282 0xf5, 0x2f, 0xc6, 0xc6, 0xc7, 0x8f, 0xbc, 0xf4 }; in prng_sha512_selftest()
284 0x00, 0xf4, 0xa3, 0xe5, 0xa0, 0x72, 0x63, 0x95, in prng_sha512_selftest()
285 0xc6, 0x4f, 0x48, 0xd0, 0x8b, 0x5b, 0x5f, 0x8e, in prng_sha512_selftest()
286 0x6b, 0x96, 0x1f, 0x16, 0xed, 0xbc, 0x66, 0x94, in prng_sha512_selftest()
287 0x45, 0x31, 0xd7, 0x47, 0x73, 0x22, 0xa5, 0x86, in prng_sha512_selftest()
288 0xce, 0xc0, 0x4c, 0xac, 0x63, 0xb8, 0x39, 0x50, in prng_sha512_selftest()
289 0xbf, 0xe6, 0x59, 0x6c, 0x38, 0x58, 0x99, 0x1f, in prng_sha512_selftest()
290 0x27, 0xa7, 0x9d, 0x71, 0x2a, 0xb3, 0x7b, 0xf9, in prng_sha512_selftest()
291 0xfb, 0x17, 0x86, 0xaa, 0x99, 0x81, 0xaa, 0x43, in prng_sha512_selftest()
292 0xe4, 0x37, 0xd3, 0x1e, 0x6e, 0xe5, 0xe6, 0xee, in prng_sha512_selftest()
293 0xc2, 0xed, 0x95, 0x4f, 0x53, 0x0e, 0x46, 0x8a, in prng_sha512_selftest()
294 0xcc, 0x45, 0xa5, 0xdb, 0x69, 0x0d, 0x81, 0xc9, in prng_sha512_selftest()
295 0x32, 0x92, 0xbc, 0x8f, 0x33, 0xe6, 0xf6, 0x09, in prng_sha512_selftest()
296 0x7c, 0x8e, 0x05, 0x19, 0x0d, 0xf1, 0xb6, 0xcc, in prng_sha512_selftest()
297 0xf3, 0x02, 0x21, 0x90, 0x25, 0xec, 0xed, 0x0e }; in prng_sha512_selftest()
299 0x95, 0xb7, 0xf1, 0x7e, 0x98, 0x02, 0xd3, 0x57, in prng_sha512_selftest()
300 0x73, 0x92, 0xc6, 0xa9, 0xc0, 0x80, 0x83, 0xb6, in prng_sha512_selftest()
301 0x7d, 0xd1, 0x29, 0x22, 0x65, 0xb5, 0xf4, 0x2d, in prng_sha512_selftest()
302 0x23, 0x7f, 0x1c, 0x55, 0xbb, 0x9b, 0x10, 0xbf, in prng_sha512_selftest()
303 0xcf, 0xd8, 0x2c, 0x77, 0xa3, 0x78, 0xb8, 0x26, in prng_sha512_selftest()
304 0x6a, 0x00, 0x99, 0x14, 0x3b, 0x3c, 0x2d, 0x64, in prng_sha512_selftest()
305 0x61, 0x1e, 0xee, 0xb6, 0x9a, 0xcd, 0xc0, 0x55, in prng_sha512_selftest()
306 0x95, 0x7c, 0x13, 0x9e, 0x8b, 0x19, 0x0c, 0x7a, in prng_sha512_selftest()
307 0x06, 0x95, 0x5f, 0x2c, 0x79, 0x7c, 0x27, 0x78, in prng_sha512_selftest()
308 0xde, 0x94, 0x03, 0x96, 0xa5, 0x01, 0xf4, 0x0e, in prng_sha512_selftest()
309 0x91, 0x39, 0x6a, 0xcf, 0x8d, 0x7e, 0x45, 0xeb, in prng_sha512_selftest()
310 0xdb, 0xb5, 0x3b, 0xbf, 0x8c, 0x97, 0x52, 0x30, in prng_sha512_selftest()
311 0xd2, 0xf0, 0xff, 0x91, 0x06, 0xc7, 0x61, 0x19, in prng_sha512_selftest()
312 0xae, 0x49, 0x8e, 0x7f, 0xbc, 0x03, 0xd9, 0x0f, in prng_sha512_selftest()
313 0x8e, 0x4c, 0x51, 0x62, 0x7a, 0xed, 0x5c, 0x8d, in prng_sha512_selftest()
314 0x42, 0x63, 0xd5, 0xd2, 0xb9, 0x78, 0x87, 0x3a, in prng_sha512_selftest()
315 0x0d, 0xe5, 0x96, 0xee, 0x6d, 0xc7, 0xf7, 0xc2, in prng_sha512_selftest()
316 0x9e, 0x37, 0xee, 0xe8, 0xb3, 0x4c, 0x90, 0xdd, in prng_sha512_selftest()
317 0x1c, 0xf6, 0xa9, 0xdd, 0xb2, 0x2b, 0x4c, 0xbd, in prng_sha512_selftest()
318 0x08, 0x6b, 0x14, 0xb3, 0x5d, 0xe9, 0x3d, 0xa2, in prng_sha512_selftest()
319 0xd5, 0xcb, 0x18, 0x06, 0x69, 0x8c, 0xbd, 0x7b, in prng_sha512_selftest()
320 0xbb, 0x67, 0xbf, 0xe3, 0xd3, 0x1f, 0xd2, 0xd1, in prng_sha512_selftest()
321 0xdb, 0xd2, 0xa1, 0xe0, 0x58, 0xa3, 0xeb, 0x99, in prng_sha512_selftest()
322 0xd7, 0xe5, 0x1f, 0x1a, 0x93, 0x8e, 0xed, 0x5e, in prng_sha512_selftest()
323 0x1c, 0x1d, 0xe2, 0x3a, 0x6b, 0x43, 0x45, 0xd3, in prng_sha512_selftest()
324 0x19, 0x14, 0x09, 0xf9, 0x2f, 0x39, 0xb3, 0x67, in prng_sha512_selftest()
325 0x0d, 0x8d, 0xbf, 0xb6, 0x35, 0xd8, 0xe6, 0xa3, in prng_sha512_selftest()
326 0x69, 0x32, 0xd8, 0x10, 0x33, 0xd1, 0x44, 0x8d, in prng_sha512_selftest()
327 0x63, 0xb4, 0x03, 0xdd, 0xf8, 0x8e, 0x12, 0x1b, in prng_sha512_selftest()
328 0x6e, 0x81, 0x9a, 0xc3, 0x81, 0x22, 0x6c, 0x13, in prng_sha512_selftest()
329 0x21, 0xe4, 0xb0, 0x86, 0x44, 0xf6, 0x72, 0x7c, in prng_sha512_selftest()
330 0x36, 0x8c, 0x5a, 0x9f, 0x7a, 0x4b, 0x3e, 0xe2 }; in prng_sha512_selftest()
335 memset(&ws, 0, sizeof(ws)); in prng_sha512_selftest()
339 &ws, NULL, 0, seed, sizeof(seed)); in prng_sha512_selftest()
342 if (memcmp(ws.V, V0, sizeof(V0)) != 0 in prng_sha512_selftest()
343 || memcmp(ws.C, C0, sizeof(C0)) != 0) { in prng_sha512_selftest()
352 &ws, buf, sizeof(buf), NULL, 0); in prng_sha512_selftest()
354 &ws, buf, sizeof(buf), NULL, 0); in prng_sha512_selftest()
357 if (memcmp(buf, random, sizeof(random)) != 0) { in prng_sha512_selftest()
364 return 0; in prng_sha512_selftest()
402 cpacf_trng(NULL, 0, seed, seedlen); in prng_sha512_instantiate()
422 &prng_data->prnows, NULL, 0, seed, seedlen); in prng_sha512_instantiate()
431 prng_data->prev, prng_chunk_size, NULL, 0); in prng_sha512_instantiate()
434 return 0; in prng_sha512_instantiate()
458 cpacf_trng(NULL, 0, seed, seedlen); in prng_sha512_reseed()
469 &prng_data->prnows, NULL, 0, seed, seedlen); in prng_sha512_reseed()
472 return 0; in prng_sha512_reseed()
489 &prng_data->prnows, buf, nbytes, NULL, 0); in prng_sha512_generate()
515 int chunk, n, ret = 0; in prng_tdes_read()
524 if (ret == 0) in prng_tdes_read()
533 if (ret == 0) in prng_tdes_read()
593 int n, ret = 0; in prng_sha512_read()
607 if (ret == 0) in prng_sha512_read()
616 if (ret == 0) in prng_sha512_read()
631 if (n < 0) { in prng_sha512_read()
640 prng_data->rest = 0; in prng_sha512_read()
854 prng_chunk_size = (prng_chunk_size + 0x3f) & ~0x3f; in prng_init()
856 if (prng_reseed_limit == 0) in prng_init()
885 prng_chunk_size = (prng_chunk_size + 0x07) & ~0x07; in prng_init()
887 if (prng_reseed_limit == 0) in prng_init()