Lines Matching refs:DO
84 DO(rsa_import(openssl_private_rsa, sizeof(openssl_private_rsa), &key)); in rsa_compat_test()
88 DO(rsa_export(buf, &len, PK_PRIVATE, &key)); in rsa_compat_test()
95 DO(rsa_export(buf, &len, PK_PUBLIC, &key)); in rsa_compat_test()
103 DO(rsa_import(openssl_public_rsa_stripped, sizeof(openssl_public_rsa_stripped), &key)); in rsa_compat_test()
105 DO(rsa_export(buf, &len, PK_PUBLIC, &key)); in rsa_compat_test()
113 DO(rsa_import(openssl_public_rsa, sizeof(openssl_public_rsa), &key)); in rsa_compat_test()
115 DO(rsa_export(buf, &len, PK_PUBLIC, &key)); in rsa_compat_test()
146 DO(rsa_make_key(&yarrow_prng, prng_idx, 1024/8, 65537, &key)); 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()
195 DO(rsa_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat2, &key)); in rsa_test()
204 DO(rsa_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat, &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()
240 DO(rsa_decrypt_key(out, len, tmp, &len2, lparam, sizeof(lparam), hash_idx, &stat2, &key)); in rsa_test()
249 DO(rsa_decrypt_key(out, len, tmp, &len2, lparam, sizeof(lparam), hash_idx, &stat, &key)); 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()
267 DO(rsa_decrypt_key_ex(out, len, tmp, &len2, NULL, 0, 0, LTC_PKCS_1_V1_5, &stat, &key)); in rsa_test()
280 DO(rsa_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 0, &key)); in rsa_test()
284 DO(rsa_export(tmp, &len2, PK_PRIVATE, &key)); in rsa_test()
285 DO(rsa_import(tmp, len2, &privKey)); in rsa_test()
287 DO(rsa_export(tmp, &len2, PK_PUBLIC, &key)); in rsa_test()
288 DO(rsa_import(tmp, len2, &pubKey)); in rsa_test()
291 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &key)); in rsa_test()
294 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat2, &key)); in rsa_test()
307 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &privKey)); in rsa_test()
310 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat2, &privKey)); in rsa_test()
323 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &pubKey)); in rsa_test()
326 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat2, &pubKey)); in rsa_test()
338 DO(rsa_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 8, &privKey)); in rsa_test()
339 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 8, &stat, &pubKey)); in rsa_test()
342 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 8, &stat2, &pubKey)); 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()
355 DO(rsa_verify_hash_ex(out, len, in, 20, LTC_PKCS_1_V1_5, hash_idx, 8, &stat, &pubKey)); in rsa_test()
358 DO(rsa_verify_hash_ex(out, len, in, 20, LTC_PKCS_1_V1_5, hash_idx, 8, &stat2, &pubKey)); in rsa_test()