Home | History | Annotate | Download | only in testprof

Lines Matching defs:hash_idx

129    int           hash_idx, prng_idx, stat, stat2;
137 hash_idx = find_hash("sha1");
139 if (hash_idx == -1 || prng_idx == -1) {
192 DO(rsa_encrypt_key(in, rsa_msgsize, out, &len, NULL, 0, &yarrow_prng, prng_idx, hash_idx, &key));
195 DO(rsa_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat2, &key));
204 DO(rsa_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat, &key));
237 DO(rsa_encrypt_key(in, rsa_msgsize, out, &len, lparam, sizeof(lparam), &yarrow_prng, prng_idx, hash_idx, &key));
240 DO(rsa_decrypt_key(out, len, tmp, &len2, lparam, sizeof(lparam), hash_idx, &stat2, &key));
249 DO(rsa_decrypt_key(out, len, tmp, &len2, lparam, sizeof(lparam), hash_idx, &stat, &key));
280 DO(rsa_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 0, &key));
291 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &key));
294 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat2, &key));
307 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &privKey));
310 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat2, &privKey));
323 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &pubKey));
326 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat2, &pubKey));
338 DO(rsa_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 8, &privKey));
339 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 8, &stat, &pubKey));
342 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 8, &stat2, &pubKey));
354 DO(rsa_sign_hash_ex(in, 20, out, &len, LTC_PKCS_1_V1_5, &yarrow_prng, prng_idx, hash_idx, 8, &privKey));
355 DO(rsa_verify_hash_ex(out, len, in, 20, LTC_PKCS_1_V1_5, hash_idx, 8, &stat, &pubKey));
358 DO(rsa_verify_hash_ex(out, len, in, 20, LTC_PKCS_1_V1_5, hash_idx, 8, &stat2, &pubKey));