| /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 | 53 log_must cp $key_location /$TESTPOOL/pkey2 61 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 | 166 EVP_PKEY *pkey2 = NULL; in test_encode_decode() local 182 if (TEST_false(decode_cb(file, line, (void **)&pkey2, encoded, in test_encode_decode() 191 || !TEST_true(decode_cb(file, line, (void **)&pkey2, encoded, encoded_len, in test_encode_decode() 201 || !TEST_true(encode_cb(file, line, &encoded2, &encoded2_len, pkey2, selection, in test_encode_decode() 206 if (!TEST_int_eq(EVP_PKEY_parameters_eq(pkey, pkey2), 1) in test_encode_decode() 211 if (!TEST_int_eq(EVP_PKEY_eq(pkey, pkey2), 1) in test_encode_decode() 237 EVP_PKEY_free(pkey2); in test_encode_decode()
|
| H A D | evp_extra_test.c | 2581 EVP_PKEY *pkey2 = NULL; in test_EVP_PKCS82PKEY_wrong_tag() local 2598 || !TEST_ptr(pkey2 = EVP_PKCS82PKEY(p8inf)) in test_EVP_PKCS82PKEY_wrong_tag() 2606 EVP_PKEY_free(pkey2); in test_EVP_PKCS82PKEY_wrong_tag() 4534 EVP_PKEY *pkey1 = NULL, *pkey2 = NULL; in test_EVP_PKEY_set1_DH() local 4557 pkey2 = EVP_PKEY_new(); in test_EVP_PKEY_set1_DH() 4561 || !TEST_ptr(pkey2) in test_EVP_PKEY_set1_DH() 4575 if (!TEST_true(EVP_PKEY_set1_DH(pkey2, noqdh)) in test_EVP_PKEY_set1_DH() 4576 || !TEST_int_eq(EVP_PKEY_get_id(pkey2), EVP_PKEY_DH)) in test_EVP_PKEY_set1_DH() 4579 if (!TEST_true(EVP_PKEY_get_octet_string_param(pkey2, in test_EVP_PKEY_set1_DH() 4591 EVP_PKEY_free(pkey2); in test_EVP_PKEY_set1_DH() [all …]
|
| H A D | ectest.c | 2788 EVP_PKEY *pkey1 = NULL, *pkey2 = NULL; in custom_params_test() local 2955 if (!TEST_ptr(pkey2 = EVP_PKEY_new()) in custom_params_test() 2956 || !TEST_int_eq(EVP_PKEY_assign_EC_KEY(pkey2, eckey2), 1)) in custom_params_test() 2963 || !TEST_int_eq(EVP_PKEY_derive_set_peer(pctx1, pkey2), 1) in custom_params_test() 2968 if (!TEST_ptr(pctx2 = EVP_PKEY_CTX_new(pkey2, NULL)) in custom_params_test() 3013 || !TEST_int_eq(EVP_PKEY_fromdata(pctx2, &pkey2, EVP_PKEY_PUBLIC_KEY, in custom_params_test() 3023 || !TEST_int_eq(EVP_PKEY_derive_set_peer_ex(dctx, pkey2, 1), 1) in custom_params_test() 3052 EVP_PKEY_free(pkey2); in custom_params_test()
|
| H A D | evp_extra_test2.c | 1390 EVP_PKEY *pkey = NULL, *pkey2 = NULL; in test_dsa_fromdata_digest_prop() local 1410 || !TEST_int_eq(EVP_PKEY_paramgen(gctx, &pkey2), expected)) in test_dsa_fromdata_digest_prop() 1415 EVP_PKEY_free(pkey2); in test_dsa_fromdata_digest_prop()
|