• Home
  • Raw
  • Download

Lines Matching refs:TEST_int_gt

701     if (!TEST_int_gt(EVP_PKEY_fromdata_init(pctx), 0)  in make_key_fromdata()
702 || !TEST_int_gt(EVP_PKEY_fromdata(pctx, &tmp_pkey, EVP_PKEY_KEYPAIR, in make_key_fromdata()
999 if (!TEST_int_gt(EVP_PKEY_parameters_eq(just_params, just_params), 0) in test_EC_priv_pub()
1000 || !TEST_int_gt(EVP_PKEY_parameters_eq(just_params, params_and_pub), in test_EC_priv_pub()
1002 || !TEST_int_gt(EVP_PKEY_parameters_eq(just_params, params_and_priv), in test_EC_priv_pub()
1004 || !TEST_int_gt(EVP_PKEY_parameters_eq(just_params, params_and_keypair), in test_EC_priv_pub()
1006 || !TEST_int_gt(EVP_PKEY_eq(params_and_pub, params_and_pub), 0) in test_EC_priv_pub()
1007 || !TEST_int_gt(EVP_PKEY_eq(params_and_priv, params_and_priv), 0) in test_EC_priv_pub()
1008 || !TEST_int_gt(EVP_PKEY_eq(params_and_keypair, params_and_pub), 0) in test_EC_priv_pub()
1009 || !TEST_int_gt(EVP_PKEY_eq(params_and_keypair, params_and_priv), 0)) in test_EC_priv_pub()
1013 if (!TEST_int_gt(EVP_PKEY_get1_encoded_public_key(params_and_pub, &encoded), 0)) in test_EC_priv_pub()
1157 || !TEST_int_gt(EVP_PKEY_sign_init(ctx), 0) in test_EVP_PKEY_sign()
1158 || !TEST_int_gt(EVP_PKEY_sign(ctx, NULL, &sig_len, tbs, in test_EVP_PKEY_sign()
1166 || !TEST_int_gt(EVP_PKEY_sign(ctx, sig, &sig_len, tbs, sizeof(tbs)), in test_EVP_PKEY_sign()
1169 || !TEST_int_gt(EVP_PKEY_verify_init(ctx), 0) in test_EVP_PKEY_sign()
1170 || !TEST_int_gt(EVP_PKEY_verify(ctx, sig, sig_len, tbs, sizeof(tbs)), in test_EVP_PKEY_sign()
1286 if (!TEST_int_gt(BIO_get_md_ctx(mdbio, &md_ctx), 0)) in test_EVP_DigestSignInit()
1369 if (!TEST_int_gt(BIO_reset(mdbio), 0) in test_EVP_DigestSignInit()
1370 || !TEST_int_gt(BIO_get_md_ctx(mdbio, &md_ctx_verify), 0)) in test_EVP_DigestSignInit()
1386 if (!TEST_int_gt(EVP_DigestVerifyFinal(md_ctx_verify, sig, sig_len), 0)) in test_EVP_DigestSignInit()
1390 if (!TEST_int_gt(EVP_DigestVerifyFinal(md_ctx_verify, sig, sig_len), 0)) in test_EVP_DigestSignInit()
1436 || !TEST_int_gt(EVP_DigestVerifyFinal(md_ctx, kSignature, in test_EVP_DigestVerifyInit()
1443 || !TEST_int_gt(EVP_DigestVerifyFinal(md_ctx, kSignature, in test_EVP_DigestVerifyInit()
1711 || !TEST_int_gt(i2d_PKCS8PrivateKey_bio(membio, pkey, NULL, in test_EVP_PKCS82PKEY_wrong_tag()
1714 || !TEST_int_gt(BIO_get_mem_data(membio, &membuf), 0) in test_EVP_PKCS82PKEY_wrong_tag()
1741 || !TEST_int_gt(i2d_PKCS8PrivateKey_bio(membio, pkey, NULL, in test_privatekey_to_pkcs8()
1744 || !TEST_int_gt(membuf_len = BIO_get_mem_data(membio, &membuf), 0) in test_privatekey_to_pkcs8()
1752 || !TEST_int_gt(PEM_write_bio_PKCS8PrivateKey(membio, pkey, NULL, in test_privatekey_to_pkcs8()
1808 || !TEST_int_gt(EVP_PKEY_paramgen_init(pctx), 0) in test_EC_keygen_with_enc()
1809 || !TEST_int_gt(EVP_PKEY_CTX_set_group_name(pctx, "P-256"), 0) in test_EC_keygen_with_enc()
1810 || !TEST_int_gt(EVP_PKEY_CTX_set_ec_param_enc(pctx, enc), 0) in test_EC_keygen_with_enc()
1817 || !TEST_int_gt(EVP_PKEY_keygen_init(kctx), 0) in test_EC_keygen_with_enc()
1893 if (!TEST_int_gt(EVP_PKEY_CTX_set1_id(pctx, id, strlen(id)), 0)) in test_EVP_SM2_verify()
1899 if (!TEST_int_gt(EVP_DigestVerifyFinal(mctx, signature, sizeof(signature)), 0)) in test_EVP_SM2_verify()
1947 if (!TEST_int_gt(EVP_PKEY_CTX_set_ec_paramgen_curve_nid(pctx, NID_sm2), 0)) in test_EVP_SM2()
1957 if (!TEST_int_gt(EVP_PKEY_keygen_init(kctx), 0)) in test_EVP_SM2()
1981 if (!TEST_int_gt(EVP_PKEY_CTX_set1_id(sctx, sm2_id, sizeof(sm2_id)), 0)) in test_EVP_SM2()
2003 if (!TEST_int_gt(EVP_PKEY_CTX_set1_id(sctx, sm2_id, sizeof(sm2_id)), 0)) in test_EVP_SM2()
2009 if (!TEST_int_gt(EVP_DigestVerifyFinal(md_ctx_verify, sig, sig_len), 0)) in test_EVP_SM2()
2021 if (!TEST_int_gt(EVP_PKEY_CTX_set1_id(sctx, NULL, 0), 0)) in test_EVP_SM2()
2065 if (!TEST_int_gt(EVP_PKEY_decrypt_init(cctx), 0)) in test_EVP_SM2()
2071 if (!TEST_int_gt(EVP_PKEY_decrypt(cctx, plaintext, &ptext_len, ciphertext, in test_EVP_SM2()
2366 if (!TEST_int_gt(EVP_PKEY_keygen_init(kctx), 0) in test_CMAC_keygen()
2367 || !TEST_int_gt(EVP_PKEY_CTX_ctrl(kctx, -1, EVP_PKEY_OP_KEYGEN, in test_CMAC_keygen()
2370 || !TEST_int_gt(EVP_PKEY_CTX_ctrl(kctx, -1, EVP_PKEY_OP_KEYGEN, in test_CMAC_keygen()
2373 || !TEST_int_gt(EVP_PKEY_keygen(kctx, &pkey), 0) in test_CMAC_keygen()
2424 if (!TEST_int_gt(EVP_PKEY_derive_init(pctx), 0) in test_HKDF()
2425 || !TEST_int_gt(EVP_PKEY_CTX_set_hkdf_md(pctx, EVP_sha256()), 0) in test_HKDF()
2426 || !TEST_int_gt(EVP_PKEY_CTX_set1_hkdf_salt(pctx, salt, in test_HKDF()
2428 || !TEST_int_gt(EVP_PKEY_CTX_set1_hkdf_key(pctx, key, in test_HKDF()
2430 || !TEST_int_gt(EVP_PKEY_CTX_add1_hkdf_info(pctx, info, in test_HKDF()
2432 || !TEST_int_gt(EVP_PKEY_derive(pctx, out, &outlen), 0) in test_HKDF()
2466 if (!TEST_int_gt(EVP_PKEY_derive_init(pctx), 0) in test_emptyikm_HKDF()
2467 || !TEST_int_gt(EVP_PKEY_CTX_set_hkdf_md(pctx, EVP_sha256()), 0) in test_emptyikm_HKDF()
2468 || !TEST_int_gt(EVP_PKEY_CTX_set1_hkdf_salt(pctx, salt, in test_emptyikm_HKDF()
2470 || !TEST_int_gt(EVP_PKEY_CTX_set1_hkdf_key(pctx, key, in test_emptyikm_HKDF()
2472 || !TEST_int_gt(EVP_PKEY_CTX_add1_hkdf_info(pctx, info, in test_emptyikm_HKDF()
2474 || !TEST_int_gt(EVP_PKEY_derive(pctx, out, &outlen), 0) in test_emptyikm_HKDF()
2575 || !TEST_int_gt(EVP_PKEY_sign_init(ctx), 0)) in test_EVP_PKEY_CTX_get_set_params()
2619 if (!TEST_int_gt(EVP_PKEY_CTX_set_signature_md(ctx, EVP_sha256()), 0) in test_EVP_PKEY_CTX_get_set_params()
2620 || !TEST_int_gt(EVP_PKEY_CTX_get_signature_md(ctx, &md), 0) in test_EVP_PKEY_CTX_get_set_params()
2695 if (!TEST_int_gt(EVP_PKEY_fromdata_init(pctx), 0) in test_DSA_get_set_params()
2696 || !TEST_int_gt(EVP_PKEY_fromdata(pctx, &pkey, EVP_PKEY_KEYPAIR, in test_DSA_get_set_params()
2756 if (!TEST_int_gt(EVP_PKEY_fromdata_init(pctx), 0) in test_RSA_get_set_params()
2757 || !TEST_int_gt(EVP_PKEY_fromdata(pctx, &pkey, EVP_PKEY_KEYPAIR, in test_RSA_get_set_params()
2802 if (!TEST_int_gt(EVP_PKEY_encrypt_init_ex(key_ctx, params),0)) in test_RSA_OAEP_set_get_params()
3013 if (!TEST_int_gt(EVP_PKEY_keygen_init(ctx), 0) in test_keygen_with_empty_template()
3014 || !TEST_int_gt(EVP_PKEY_keygen(ctx, &pkey), 0)) in test_keygen_with_empty_template()
3429 || !TEST_int_gt(EVP_PKEY_keygen_init(ctx), 0) in test_ecpub()
3430 || !TEST_int_gt(EVP_PKEY_CTX_set_ec_paramgen_curve_nid(ctx, nid), 0) in test_ecpub()
3483 && TEST_int_gt(EVP_PKEY_keygen_init(ctx), 0) in test_EVP_rsa_pss_with_keygen_bits()
3484 && TEST_int_gt(EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, 512), 0) in test_EVP_rsa_pss_with_keygen_bits()
3485 && TEST_int_gt(EVP_PKEY_CTX_set_rsa_pss_keygen_md(ctx, md), 0) in test_EVP_rsa_pss_with_keygen_bits()
3509 && TEST_int_gt(EVP_PKEY_CTX_set_rsa_pss_saltlen(pkey_ctx, test_value), 0) in test_EVP_rsa_pss_set_saltlen()
3510 && TEST_int_gt(EVP_PKEY_CTX_get_rsa_pss_saltlen(pkey_ctx, &saltlen), 0) in test_EVP_rsa_pss_set_saltlen()
3636 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_IVLEN, t->ivlen, NULL), 0)) in evp_init_seq_set_iv()
3702 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, in test_evp_init_seq()
3717 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, tag), 0)) { in test_evp_init_seq()
3978 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_IVLEN, t->ivlen1, NULL), 0)) { in test_gcm_reinit()
4004 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, tag), 0)) { in test_gcm_reinit()
4013 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_IVLEN, t->ivlen2, NULL), 0)) { in test_gcm_reinit()
4038 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, tag), 0)) { in test_gcm_reinit()