Lines Matching refs:TEST_int_gt
700 if (!TEST_int_gt(EVP_PKEY_fromdata_init(pctx), 0) in make_key_fromdata()
701 || !TEST_int_gt(EVP_PKEY_fromdata(pctx, &tmp_pkey, EVP_PKEY_KEYPAIR, in make_key_fromdata()
996 if (!TEST_int_gt(EVP_PKEY_parameters_eq(just_params, just_params), 0) in test_EC_priv_pub()
997 || !TEST_int_gt(EVP_PKEY_parameters_eq(just_params, params_and_pub), in test_EC_priv_pub()
999 || !TEST_int_gt(EVP_PKEY_parameters_eq(just_params, params_and_priv), in test_EC_priv_pub()
1001 || !TEST_int_gt(EVP_PKEY_parameters_eq(just_params, params_and_keypair), in test_EC_priv_pub()
1003 || !TEST_int_gt(EVP_PKEY_eq(params_and_pub, params_and_pub), 0) in test_EC_priv_pub()
1004 || !TEST_int_gt(EVP_PKEY_eq(params_and_priv, params_and_priv), 0) in test_EC_priv_pub()
1005 || !TEST_int_gt(EVP_PKEY_eq(params_and_keypair, params_and_pub), 0) in test_EC_priv_pub()
1006 || !TEST_int_gt(EVP_PKEY_eq(params_and_keypair, params_and_priv), 0)) in test_EC_priv_pub()
1010 if (!TEST_int_gt(EVP_PKEY_get1_encoded_public_key(params_and_pub, &encoded), 0)) in test_EC_priv_pub()
1134 || !TEST_int_gt(EVP_PKEY_sign_init(ctx), 0) in test_EVP_PKEY_sign()
1135 || !TEST_int_gt(EVP_PKEY_sign(ctx, NULL, &sig_len, tbs, in test_EVP_PKEY_sign()
1143 || !TEST_int_gt(EVP_PKEY_sign(ctx, sig, &sig_len, tbs, sizeof(tbs)), in test_EVP_PKEY_sign()
1146 || !TEST_int_gt(EVP_PKEY_verify_init(ctx), 0) in test_EVP_PKEY_sign()
1147 || !TEST_int_gt(EVP_PKEY_verify(ctx, sig, sig_len, tbs, sizeof(tbs)), in test_EVP_PKEY_sign()
1263 if (!TEST_int_gt(BIO_get_md_ctx(mdbio, &md_ctx), 0)) in test_EVP_DigestSignInit()
1346 if (!TEST_int_gt(BIO_reset(mdbio), 0) in test_EVP_DigestSignInit()
1347 || !TEST_int_gt(BIO_get_md_ctx(mdbio, &md_ctx_verify), 0)) in test_EVP_DigestSignInit()
1363 if (!TEST_int_gt(EVP_DigestVerifyFinal(md_ctx_verify, sig, sig_len), 0)) in test_EVP_DigestSignInit()
1367 if (!TEST_int_gt(EVP_DigestVerifyFinal(md_ctx_verify, sig, sig_len), 0)) in test_EVP_DigestSignInit()
1413 || !TEST_int_gt(EVP_DigestVerifyFinal(md_ctx, kSignature, in test_EVP_DigestVerifyInit()
1420 || !TEST_int_gt(EVP_DigestVerifyFinal(md_ctx, kSignature, in test_EVP_DigestVerifyInit()
1688 || !TEST_int_gt(i2d_PKCS8PrivateKey_bio(membio, pkey, NULL, in test_EVP_PKCS82PKEY_wrong_tag()
1691 || !TEST_int_gt(BIO_get_mem_data(membio, &membuf), 0) in test_EVP_PKCS82PKEY_wrong_tag()
1718 || !TEST_int_gt(i2d_PKCS8PrivateKey_bio(membio, pkey, NULL, in test_privatekey_to_pkcs8()
1721 || !TEST_int_gt(membuf_len = BIO_get_mem_data(membio, &membuf), 0) in test_privatekey_to_pkcs8()
1729 || !TEST_int_gt(PEM_write_bio_PKCS8PrivateKey(membio, pkey, NULL, in test_privatekey_to_pkcs8()
1785 || !TEST_int_gt(EVP_PKEY_paramgen_init(pctx), 0) in test_EC_keygen_with_enc()
1786 || !TEST_int_gt(EVP_PKEY_CTX_set_group_name(pctx, "P-256"), 0) in test_EC_keygen_with_enc()
1787 || !TEST_int_gt(EVP_PKEY_CTX_set_ec_param_enc(pctx, enc), 0) in test_EC_keygen_with_enc()
1794 || !TEST_int_gt(EVP_PKEY_keygen_init(kctx), 0) in test_EC_keygen_with_enc()
1870 if (!TEST_int_gt(EVP_PKEY_CTX_set1_id(pctx, id, strlen(id)), 0)) in test_EVP_SM2_verify()
1876 if (!TEST_int_gt(EVP_DigestVerifyFinal(mctx, signature, sizeof(signature)), 0)) in test_EVP_SM2_verify()
1924 if (!TEST_int_gt(EVP_PKEY_CTX_set_ec_paramgen_curve_nid(pctx, NID_sm2), 0)) in test_EVP_SM2()
1934 if (!TEST_int_gt(EVP_PKEY_keygen_init(kctx), 0)) in test_EVP_SM2()
1958 if (!TEST_int_gt(EVP_PKEY_CTX_set1_id(sctx, sm2_id, sizeof(sm2_id)), 0)) in test_EVP_SM2()
1980 if (!TEST_int_gt(EVP_PKEY_CTX_set1_id(sctx, sm2_id, sizeof(sm2_id)), 0)) in test_EVP_SM2()
1986 if (!TEST_int_gt(EVP_DigestVerifyFinal(md_ctx_verify, sig, sig_len), 0)) in test_EVP_SM2()
1998 if (!TEST_int_gt(EVP_PKEY_CTX_set1_id(sctx, NULL, 0), 0)) in test_EVP_SM2()
2048 if (!TEST_int_gt(EVP_PKEY_decrypt(cctx, plaintext, &ptext_len, ciphertext, in test_EVP_SM2()
2343 if (!TEST_int_gt(EVP_PKEY_keygen_init(kctx), 0) in test_CMAC_keygen()
2344 || !TEST_int_gt(EVP_PKEY_CTX_ctrl(kctx, -1, EVP_PKEY_OP_KEYGEN, in test_CMAC_keygen()
2347 || !TEST_int_gt(EVP_PKEY_CTX_ctrl(kctx, -1, EVP_PKEY_OP_KEYGEN, in test_CMAC_keygen()
2350 || !TEST_int_gt(EVP_PKEY_keygen(kctx, &pkey), 0) in test_CMAC_keygen()
2401 if (!TEST_int_gt(EVP_PKEY_derive_init(pctx), 0) in test_HKDF()
2402 || !TEST_int_gt(EVP_PKEY_CTX_set_hkdf_md(pctx, EVP_sha256()), 0) in test_HKDF()
2403 || !TEST_int_gt(EVP_PKEY_CTX_set1_hkdf_salt(pctx, salt, in test_HKDF()
2405 || !TEST_int_gt(EVP_PKEY_CTX_set1_hkdf_key(pctx, key, in test_HKDF()
2407 || !TEST_int_gt(EVP_PKEY_CTX_add1_hkdf_info(pctx, info, in test_HKDF()
2409 || !TEST_int_gt(EVP_PKEY_derive(pctx, out, &outlen), 0) in test_HKDF()
2443 if (!TEST_int_gt(EVP_PKEY_derive_init(pctx), 0) in test_emptyikm_HKDF()
2444 || !TEST_int_gt(EVP_PKEY_CTX_set_hkdf_md(pctx, EVP_sha256()), 0) in test_emptyikm_HKDF()
2445 || !TEST_int_gt(EVP_PKEY_CTX_set1_hkdf_salt(pctx, salt, in test_emptyikm_HKDF()
2447 || !TEST_int_gt(EVP_PKEY_CTX_set1_hkdf_key(pctx, key, in test_emptyikm_HKDF()
2449 || !TEST_int_gt(EVP_PKEY_CTX_add1_hkdf_info(pctx, info, in test_emptyikm_HKDF()
2451 || !TEST_int_gt(EVP_PKEY_derive(pctx, out, &outlen), 0) in test_emptyikm_HKDF()
2552 || !TEST_int_gt(EVP_PKEY_sign_init(ctx), 0)) in test_EVP_PKEY_CTX_get_set_params()
2596 if (!TEST_int_gt(EVP_PKEY_CTX_set_signature_md(ctx, EVP_sha256()), 0) in test_EVP_PKEY_CTX_get_set_params()
2597 || !TEST_int_gt(EVP_PKEY_CTX_get_signature_md(ctx, &md), 0) in test_EVP_PKEY_CTX_get_set_params()
2672 if (!TEST_int_gt(EVP_PKEY_fromdata_init(pctx), 0) in test_DSA_get_set_params()
2673 || !TEST_int_gt(EVP_PKEY_fromdata(pctx, &pkey, EVP_PKEY_KEYPAIR, in test_DSA_get_set_params()
2733 if (!TEST_int_gt(EVP_PKEY_fromdata_init(pctx), 0) in test_RSA_get_set_params()
2734 || !TEST_int_gt(EVP_PKEY_fromdata(pctx, &pkey, EVP_PKEY_KEYPAIR, in test_RSA_get_set_params()
2779 if (!TEST_int_gt(EVP_PKEY_encrypt_init_ex(key_ctx, params),0)) in test_RSA_OAEP_set_get_params()
2990 if (!TEST_int_gt(EVP_PKEY_keygen_init(ctx), 0) in test_keygen_with_empty_template()
2991 || !TEST_int_gt(EVP_PKEY_keygen(ctx, &pkey), 0)) in test_keygen_with_empty_template()
3406 || !TEST_int_gt(EVP_PKEY_keygen_init(ctx), 0) in test_ecpub()
3407 || !TEST_int_gt(EVP_PKEY_CTX_set_ec_paramgen_curve_nid(ctx, nid), 0) in test_ecpub()
3460 && TEST_int_gt(EVP_PKEY_keygen_init(ctx), 0) in test_EVP_rsa_pss_with_keygen_bits()
3461 && TEST_int_gt(EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, 512), 0) in test_EVP_rsa_pss_with_keygen_bits()
3462 && TEST_int_gt(EVP_PKEY_CTX_set_rsa_pss_keygen_md(ctx, md), 0) in test_EVP_rsa_pss_with_keygen_bits()
3486 && TEST_int_gt(EVP_PKEY_CTX_set_rsa_pss_saltlen(pkey_ctx, test_value), 0) in test_EVP_rsa_pss_set_saltlen()
3487 && TEST_int_gt(EVP_PKEY_CTX_get_rsa_pss_saltlen(pkey_ctx, &saltlen), 0) in test_EVP_rsa_pss_set_saltlen()
3613 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_IVLEN, t->ivlen, NULL), 0)) in evp_init_seq_set_iv()
3679 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, in test_evp_init_seq()
3694 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, tag), 0)) { in test_evp_init_seq()
3955 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_IVLEN, t->ivlen1, NULL), 0)) { in test_gcm_reinit()
3981 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, tag), 0)) { in test_gcm_reinit()
3990 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_IVLEN, t->ivlen2, NULL), 0)) { in test_gcm_reinit()
4015 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, tag), 0)) { in test_gcm_reinit()