| /freebsd/contrib/ofed/opensm/opensm/ |
| H A D | osm_pkey.c | 320 IN const ib_net16_t * pkey2) in match_pkey() argument 324 if (!(ib_pkey_is_full_member(*pkey1) || ib_pkey_is_full_member(*pkey2))) in match_pkey() 329 if (ib_pkey_get_base(*pkey1) != ib_pkey_get_base(*pkey2)) in match_pkey() 340 ib_net16_t *pkey1, *pkey2; in osm_physp_share_this_pkey() local 351 pkey2 = cl_map_get(&(osm_physp_get_pkey_tbl(p_physp2))->keys, in osm_physp_share_this_pkey() 353 if (!pkey2) in osm_physp_share_this_pkey() 354 pkey2 = cl_map_get(&(osm_physp_get_pkey_tbl(p_physp2))->keys, in osm_physp_share_this_pkey() 359 pkey2 = cl_map_get(&(osm_physp_get_pkey_tbl(p_physp2))->keys, in osm_physp_share_this_pkey() 362 return (pkey1 && pkey2 && match_pkey(pkey1, pkey2)); in osm_physp_share_this_pkey() 369 ib_net16_t *pkey1, *pkey2; in osm_physp_find_common_pkey() local [all …]
|
| /freebsd/crypto/openssl/fuzz/ |
| H A D | decoder.c | 50 EVP_PKEY *pkey2; in FuzzerTestOneInput() local 56 pkey2 = EVP_PKEY_dup(pkey); in FuzzerTestOneInput() 57 OPENSSL_assert(pkey2 != NULL); in FuzzerTestOneInput() 58 EVP_PKEY_eq(pkey, pkey2); in FuzzerTestOneInput() 59 EVP_PKEY_free(pkey2); in FuzzerTestOneInput()
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/ |
| H A D | zfs_load-key_location.ksh | 57 log_must cp $key_location /$TESTPOOL/pkey2 65 log_must zfs load-key -L file:///$TESTPOOL/pkey2 $TESTPOOL/$TESTFS1
|
| /freebsd/crypto/openssl/test/ |
| H A D | ml_dsa_test.c | 330 EVP_PKEY *pkey = NULL, *pkey2 = NULL, *pkey3 = NULL, *pkey_pub = NULL; in ml_dsa_keygen_drbg_test() local 335 || !TEST_ptr(pkey2 = do_gen_key("ML-DSA-44", NULL, 0)) in ml_dsa_keygen_drbg_test() 337 || !TEST_int_eq(EVP_PKEY_eq(pkey, pkey2), 0) in ml_dsa_keygen_drbg_test() 358 EVP_PKEY_free(pkey2); in ml_dsa_keygen_drbg_test()
|
| H A D | endecode_test.c | 164 EVP_PKEY *pkey2 = NULL; in test_encode_decode() local 180 if (TEST_false(decode_cb(file, line, (void **)&pkey2, encoded, in test_encode_decode() 189 || !TEST_true(decode_cb(file, line, (void **)&pkey2, encoded, encoded_len, in test_encode_decode() 199 || !TEST_true(encode_cb(file, line, &encoded2, &encoded2_len, pkey2, selection, in test_encode_decode() 204 if (!TEST_int_eq(EVP_PKEY_parameters_eq(pkey, pkey2), 1) in test_encode_decode() 209 if (!TEST_int_eq(EVP_PKEY_eq(pkey, pkey2), 1) in test_encode_decode() 235 EVP_PKEY_free(pkey2); in test_encode_decode()
|
| H A D | evp_extra_test.c | 2340 EVP_PKEY *pkey2 = NULL; in test_EVP_PKCS82PKEY_wrong_tag() local 2357 || !TEST_ptr(pkey2 = EVP_PKCS82PKEY(p8inf)) in test_EVP_PKCS82PKEY_wrong_tag() 2365 EVP_PKEY_free(pkey2); in test_EVP_PKCS82PKEY_wrong_tag() 4141 EVP_PKEY *pkey1 = NULL, *pkey2 = NULL; in test_EVP_PKEY_set1_DH() local 4164 pkey2 = EVP_PKEY_new(); in test_EVP_PKEY_set1_DH() 4168 || !TEST_ptr(pkey2) in test_EVP_PKEY_set1_DH() 4182 if (!TEST_true(EVP_PKEY_set1_DH(pkey2, noqdh)) in test_EVP_PKEY_set1_DH() 4183 || !TEST_int_eq(EVP_PKEY_get_id(pkey2), EVP_PKEY_DH)) in test_EVP_PKEY_set1_DH() 4186 if (!TEST_true(EVP_PKEY_get_octet_string_param(pkey2, in test_EVP_PKEY_set1_DH() 4198 EVP_PKEY_free(pkey2); in test_EVP_PKEY_set1_DH() [all …]
|
| H A D | evp_extra_test2.c | 3211 EVP_PKEY *pkey = NULL, *pkey2 = NULL; in test_dsa_fromdata_digest_prop() local 3231 || !TEST_int_eq(EVP_PKEY_paramgen(gctx, &pkey2), expected)) in test_dsa_fromdata_digest_prop() 3236 EVP_PKEY_free(pkey2); in test_dsa_fromdata_digest_prop()
|
| H A D | ectest.c | 3203 EVP_PKEY *pkey1 = NULL, *pkey2 = NULL; in custom_params_test() local 3370 if (!TEST_ptr(pkey2 = EVP_PKEY_new()) in custom_params_test() 3371 || !TEST_int_eq(EVP_PKEY_assign_EC_KEY(pkey2, eckey2), 1)) in custom_params_test() 3378 || !TEST_int_eq(EVP_PKEY_derive_set_peer(pctx1, pkey2), 1) in custom_params_test() 3383 if (!TEST_ptr(pctx2 = EVP_PKEY_CTX_new(pkey2, NULL)) in custom_params_test() 3428 || !TEST_int_eq(EVP_PKEY_fromdata(pctx2, &pkey2, EVP_PKEY_PUBLIC_KEY, in custom_params_test() 3438 || !TEST_int_eq(EVP_PKEY_derive_set_peer_ex(dctx, pkey2, 1), 1) in custom_params_test() 3467 EVP_PKEY_free(pkey2); in custom_params_test()
|