/external/dropbear/libtomcrypt/testprof/ |
katja_test.c | 9 int hash_idx, prng_idx, stat, stat2, size; local 14 prng_idx = find_prng("yarrow"); 15 if (hash_idx == -1 || prng_idx == -1) { 24 DO(katja_make_key(&yarrow_prng, prng_idx, size/8, &key)); 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 | 8 int res1, res2, res3, prng_idx, hash_idx, err; local 14 prng_idx = find_prng("yarrow"); 16 if (hash_idx == -1 || prng_idx == -1) { 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));
|
rsa_test.c | 129 int hash_idx, prng_idx, stat, stat2; local 138 prng_idx = find_prng("yarrow"); 139 if (hash_idx == -1 || prng_idx == -1) { 146 DO(rsa_make_key(&yarrow_prng, prng_idx, 1024/8, 65537, &key)); 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)) [all...] |