/external/dropbear/libtomcrypt/testprof/ |
dsa_test.c | 13 DO(dsa_make_key(&yarrow_prng, find_prng("yarrow"), 20, 128, &key)); 22 DO(dsa_encrypt_key(msg, 16, out, &x, &yarrow_prng, find_prng("yarrow"), find_hash("sha1"), &key)); 35 DO(dsa_sign_hash(msg, sizeof(msg), out, &x, &yarrow_prng, find_prng("yarrow"), &key));
|
base64_test.c | 9 yarrow_read(in, x, &yarrow_prng);
|
ecc_test.c | 64 LTC_ARGCHK(yarrow_read(buf, sizes[x], &yarrow_prng) == sizes[x]); 66 LTC_ARGCHK(yarrow_read(buf, sizes[x], &yarrow_prng) == sizes[x]); 76 LTC_ARGCHK(yarrow_read(buf, sizes[x], &yarrow_prng) == sizes[x]); 78 LTC_ARGCHK(yarrow_read(buf, sizes[x], &yarrow_prng) == sizes[x]); 123 DO(ecc_make_key (&yarrow_prng, find_prng ("yarrow"), sizes[s], &usera)); 124 DO(ecc_make_key (&yarrow_prng, find_prng ("yarrow"), sizes[s], &userb)); 188 DO(ecc_make_key (&yarrow_prng, find_prng ("yarrow"), sizes[s], &usera)); 202 DO(ecc_encrypt_key (buf[0], 32, buf[1], &y, &yarrow_prng, find_prng ("yarrow"), find_hash ("sha256"), &pubKey)); 221 DO(ecc_sign_hash (buf[0], 16, buf[1], &x, &yarrow_prng, find_prng ("yarrow"), &privKey));
|
modes_test.c | 20 yarrow_read(pt, 64, &yarrow_prng); 21 yarrow_read(key, 16, &yarrow_prng); 22 yarrow_read(iv, 16, &yarrow_prng);
|
store_test.c | 54 yarrow_read(buf+z, y, &yarrow_prng); 55 yarrow_read(buf+z+y, y, &yarrow_prng);
|
katja_test.c | 24 DO(katja_make_key(&yarrow_prng, prng_idx, size/8, &key)); 64 yarrow_read(in, kat_msgsize, &yarrow_prng); 69 DO(katja_encrypt_key(in, kat_msgsize, out, &len, NULL, 0, &yarrow_prng, prng_idx, hash_idx, &key)); 114 DO(katja_encrypt_key(in, kat_msgsize, out, &len, lparam, sizeof(lparam), &yarrow_prng, prng_idx, hash_idx, &key)); 141 DO(katja_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 0, &key)); 199 DO(katja_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 8, &privKey));
|
pkcs_1_test.c | 41 DO(pkcs_1_oaep_encode(buf[0], l3, lparam, lparamlen, modlen, &yarrow_prng, prng_idx, hash_idx, buf[1], &l1)); 63 DO(pkcs_1_pss_encode(buf[0], l3, saltlen, &yarrow_prng, prng_idx, hash_idx, modlen, buf[1], &l1));
|
tomcrypt_test.h | 18 extern prng_state yarrow_prng;
|
x86_prof.c | 3 prng_state yarrow_prng; variable 248 if ((err = rng_make_prng(128, find_prng("yarrow"), &yarrow_prng, NULL)) != CRYPT_OK) { 273 yarrow_read(key, kl, &yarrow_prng); 785 if ((err = dsa_make_key(&yarrow_prng, find_prng("yarrow"), groups[x].group, groups[x].modulus, &key)) != CRYPT_OK) { 822 if ((err = rsa_make_key(&yarrow_prng, find_prng("yarrow"), x/8, 65537, &key)) != CRYPT_OK) { 846 if ((err = rsa_encrypt_key(buf[0], 32, buf[1], &z, (const unsigned char *)"testprog", 8, &yarrow_prng, 887 if ((err = rsa_sign_hash(buf[0], 20, buf[1], &z, &yarrow_prng, 946 if ((err = katja_make_key(&yarrow_prng, find_prng("yarrow"), x/8, &key)) != CRYPT_OK) { 965 if ((err = katja_encrypt_key(buf[0], 32, buf[1], &z, "testprog", 8, &yarrow_prng, 1042 if ((err = ecc_make_key(&yarrow_prng, find_prng("yarrow"), x, &key)) != CRYPT_OK) [all...] |
rsa_test.c | 146 DO(rsa_make_key(&yarrow_prng, prng_idx, 1024/8, 65537, &key)); 187 yarrow_read(in, rsa_msgsize, &yarrow_prng); 192 DO(rsa_encrypt_key(in, rsa_msgsize, out, &len, NULL, 0, &yarrow_prng, prng_idx, hash_idx, &key)); 237 DO(rsa_encrypt_key(in, rsa_msgsize, out, &len, lparam, sizeof(lparam), &yarrow_prng, prng_idx, hash_idx, &key)); 264 DO(rsa_encrypt_key_ex(in, rsa_msgsize, out, &len, NULL, 0, &yarrow_prng, prng_idx, 0, LTC_PKCS_1_V1_5, &key)); 280 DO(rsa_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 0, &key)); 338 DO(rsa_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 8, &privKey)); 354 DO(rsa_sign_hash_ex(in, 20, out, &len, LTC_PKCS_1_V1_5, &yarrow_prng, prng_idx, hash_idx, 8, &privKey));
|
der_tests.c | 550 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); [all...] |
/external/dropbear/libtomcrypt/src/headers/ |
tomcrypt_prng.h | 3 struct yarrow_prng { struct 53 struct yarrow_prng yarrow;
|