Home
last modified time | relevance | path

Searched refs:yarrow_prng (Results 1 – 12 of 12) sorted by relevance

/external/dropbear/libtomcrypt/testprof/
Decc_test.c64 LTC_ARGCHK(yarrow_read(buf, sizes[x], &yarrow_prng) == sizes[x]); in ecc_test_shamir()
66 LTC_ARGCHK(yarrow_read(buf, sizes[x], &yarrow_prng) == sizes[x]); in ecc_test_shamir()
76 LTC_ARGCHK(yarrow_read(buf, sizes[x], &yarrow_prng) == sizes[x]); in ecc_test_shamir()
78 LTC_ARGCHK(yarrow_read(buf, sizes[x], &yarrow_prng) == sizes[x]); in ecc_test_shamir()
123 DO(ecc_make_key (&yarrow_prng, find_prng ("yarrow"), sizes[s], &usera)); in ecc_tests()
124 DO(ecc_make_key (&yarrow_prng, find_prng ("yarrow"), sizes[s], &userb)); in ecc_tests()
188 DO(ecc_make_key (&yarrow_prng, find_prng ("yarrow"), sizes[s], &usera)); in ecc_tests()
202 …DO(ecc_encrypt_key (buf[0], 32, buf[1], &y, &yarrow_prng, find_prng ("yarrow"), find_hash ("sha256… in ecc_tests()
221 DO(ecc_sign_hash (buf[0], 16, buf[1], &x, &yarrow_prng, find_prng ("yarrow"), &privKey)); in ecc_tests()
Drsa_test.c146 DO(rsa_make_key(&yarrow_prng, prng_idx, 1024/8, 65537, &key)); in rsa_test()
187 yarrow_read(in, rsa_msgsize, &yarrow_prng); in rsa_test()
192 … DO(rsa_encrypt_key(in, rsa_msgsize, out, &len, NULL, 0, &yarrow_prng, prng_idx, hash_idx, &key)); in rsa_test()
237 …DO(rsa_encrypt_key(in, rsa_msgsize, out, &len, lparam, sizeof(lparam), &yarrow_prng, prng_idx, has… in rsa_test()
264 …DO(rsa_encrypt_key_ex(in, rsa_msgsize, out, &len, NULL, 0, &yarrow_prng, prng_idx, 0, LTC_PKCS_1_V… in rsa_test()
280 DO(rsa_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 0, &key)); in rsa_test()
338 DO(rsa_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 8, &privKey)); in rsa_test()
354 …DO(rsa_sign_hash_ex(in, 20, out, &len, LTC_PKCS_1_V1_5, &yarrow_prng, prng_idx, hash_idx, 8, &priv… in rsa_test()
Dkatja_test.c24 DO(katja_make_key(&yarrow_prng, prng_idx, size/8, &key)); in katja_test()
64 yarrow_read(in, kat_msgsize, &yarrow_prng); in katja_test()
69 …DO(katja_encrypt_key(in, kat_msgsize, out, &len, NULL, 0, &yarrow_prng, prng_idx, hash_idx, &key)); in katja_test()
114 …DO(katja_encrypt_key(in, kat_msgsize, out, &len, lparam, sizeof(lparam), &yarrow_prng, prng_idx, h… in katja_test()
141 DO(katja_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 0, &key)); in katja_test()
199 DO(katja_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 8, &privKey)); in katja_test()
Ddsa_test.c13 DO(dsa_make_key(&yarrow_prng, find_prng("yarrow"), 20, 128, &key)); in dsa_test()
22 … DO(dsa_encrypt_key(msg, 16, out, &x, &yarrow_prng, find_prng("yarrow"), find_hash("sha1"), &key)); in dsa_test()
35 DO(dsa_sign_hash(msg, sizeof(msg), out, &x, &yarrow_prng, find_prng("yarrow"), &key)); in dsa_test()
Dmodes_test.c20 yarrow_read(pt, 64, &yarrow_prng); in modes_test()
21 yarrow_read(key, 16, &yarrow_prng); in modes_test()
22 yarrow_read(iv, 16, &yarrow_prng); in modes_test()
Dx86_prof.c3 prng_state yarrow_prng; variable
248 if ((err = rng_make_prng(128, find_prng("yarrow"), &yarrow_prng, NULL)) != CRYPT_OK) { in reg_algs()
273 yarrow_read(key, kl, &yarrow_prng); in time_keysched()
785 …if ((err = dsa_make_key(&yarrow_prng, find_prng("yarrow"), groups[x].group, groups[x].modulus, &ke… in time_dsa()
822 … if ((err = rsa_make_key(&yarrow_prng, find_prng("yarrow"), x/8, 65537, &key)) != CRYPT_OK) { in time_rsa()
846 …((err = rsa_encrypt_key(buf[0], 32, buf[1], &z, (const unsigned char *)"testprog", 8, &yarrow_prng, in time_rsa()
887 if ((err = rsa_sign_hash(buf[0], 20, buf[1], &z, &yarrow_prng, in time_rsa()
946 if ((err = katja_make_key(&yarrow_prng, find_prng("yarrow"), x/8, &key)) != CRYPT_OK) { in time_katja()
965 if ((err = katja_encrypt_key(buf[0], 32, buf[1], &z, "testprog", 8, &yarrow_prng, in time_katja()
1042 if ((err = ecc_make_key(&yarrow_prng, find_prng("yarrow"), x, &key)) != CRYPT_OK) { in time_ecc()
[all …]
Dstore_test.c54 yarrow_read(buf+z, y, &yarrow_prng); in store_test()
55 yarrow_read(buf+z+y, y, &yarrow_prng); in store_test()
Dpkcs_1_test.c41 …DO(pkcs_1_oaep_encode(buf[0], l3, lparam, lparamlen, modlen, &yarrow_prng, prng_idx, hash_idx, buf… in pkcs_1_test()
63 … DO(pkcs_1_pss_encode(buf[0], l3, saltlen, &yarrow_prng, prng_idx, hash_idx, modlen, buf[1], &l1)); in pkcs_1_test()
Dbase64_test.c9 yarrow_read(in, x, &yarrow_prng); in base64_test()
Dtomcrypt_test.h18 extern prng_state yarrow_prng;
Dder_tests.c550 if (yarrow_read(buf[0], z, &yarrow_prng) != z) {
573 if (yarrow_read(buf[0], z, &yarrow_prng) != z) {
609 yarrow_read(buf[0], zz, &yarrow_prng);
631 yarrow_read(buf[0], zz, &yarrow_prng);
669 yarrow_read(buf[0], 4, &yarrow_prng);
678 yarrow_read(buf[0], 4, &yarrow_prng);
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_prng.h3 struct yarrow_prng { struct
53 struct yarrow_prng yarrow;