Lines Matching refs:stat
129 int hash_idx, prng_idx, stat, stat2; in rsa_test() local
204 DO(rsa_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat, &key)); in rsa_test()
205 if (!(stat == 1 && stat2 == 0)) { in rsa_test()
249 DO(rsa_decrypt_key(out, len, tmp, &len2, lparam, sizeof(lparam), hash_idx, &stat, &key)); in rsa_test()
250 if (!(stat == 1 && stat2 == 0)) { 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()
268 if (!(stat == 1 && stat2 == 0)) { in rsa_test()
269 fprintf(stderr, "rsa_decrypt_key_ex failed, %d, %d", stat, stat2); in rsa_test()
291 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &key)); in rsa_test()
296 if (!(stat == 1 && stat2 == 0)) { in rsa_test()
297 fprintf(stderr, "rsa_verify_hash (unsalted, origKey) failed, %d, %d", stat, stat2); in rsa_test()
307 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &privKey)); in rsa_test()
312 if (!(stat == 1 && stat2 == 0)) { in rsa_test()
313 fprintf(stderr, "rsa_verify_hash (unsalted, privKey) failed, %d, %d", stat, stat2); in rsa_test()
323 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &pubKey)); in rsa_test()
328 if (!(stat == 1 && stat2 == 0)) { in rsa_test()
329 fprintf(stderr, "rsa_verify_hash (unsalted, pubkey) failed, %d, %d", stat, stat2); in rsa_test()
339 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 8, &stat, &pubKey)); in rsa_test()
344 if (!(stat == 1 && stat2 == 0)) { in rsa_test()
345 fprintf(stderr, "rsa_verify_hash (salted) failed, %d, %d", stat, stat2); 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()
360 if (!(stat == 1 && stat2 == 0)) { in rsa_test()
361 fprintf(stderr, "rsa_verify_hash_ex failed, %d, %d", stat, stat2); in rsa_test()