Searched refs:dupkey (Results 1 - 12 of 12) sorted by relevance

/netbsd-current/crypto/external/bsd/openssl/dist/crypto/dsa/
H A Ddsa_backend.c84 DSA *dupkey = NULL; local
90 if ((dupkey = ossl_dsa_new(dsa->libctx)) == NULL)
94 && !ossl_ffc_params_copy(&dupkey->params, &dsa->params))
97 dupkey->flags = dsa->flags;
101 || !dsa_bn_dup_check(&dupkey->pub_key, dsa->pub_key)))
106 || !dsa_bn_dup_check(&dupkey->priv_key, dsa->priv_key)))
111 &dupkey->ex_data, &dsa->ex_data))
115 return dupkey;
118 DSA_free(dupkey);
H A Ddsa_ameth.c502 DSA *dupkey = NULL; local
506 dupkey = ossl_dsa_dup(dsa, OSSL_KEYMGMT_SELECT_ALL);
507 if (dupkey == NULL)
511 ret = EVP_PKEY_assign_DSA(to, dupkey);
513 DSA_free(dupkey);
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/dh/
H A Ddh_backend.c147 DH *dupkey = NULL; local
153 if ((dupkey = ossl_dh_new_ex(dh->libctx)) == NULL)
156 dupkey->length = DH_get_length(dh);
158 && !ossl_ffc_params_copy(&dupkey->params, &dh->params))
161 dupkey->flags = dh->flags;
165 || !dh_bn_dup_check(&dupkey->pub_key, dh->pub_key)))
170 || !dh_bn_dup_check(&dupkey->priv_key, dh->priv_key)))
175 &dupkey->ex_data, &dh->ex_data))
179 return dupkey;
182 DH_free(dupkey);
[all...]
H A Ddh_ameth.c545 DH *dupkey = NULL; local
549 dupkey = ossl_dh_dup(dh, OSSL_KEYMGMT_SELECT_ALL);
550 if (dupkey == NULL)
554 ret = EVP_PKEY_assign(to, from->type, dupkey);
556 DH_free(dupkey);
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/rsa/
H A Drsa_backend.c337 RSA *dupkey = NULL; local
346 if ((dupkey = ossl_rsa_new_with_ctx(rsa->libctx)) == NULL)
351 if (!rsa_bn_dup_check(&dupkey->n, rsa->n))
353 if (!rsa_bn_dup_check(&dupkey->e, rsa->e))
360 if (!rsa_bn_dup_check(&dupkey->d, rsa->d))
364 if (!rsa_bn_dup_check(&dupkey->p, rsa->p))
366 if (!rsa_bn_dup_check(&dupkey->q, rsa->q))
368 if (!rsa_bn_dup_check(&dupkey->dmp1, rsa->dmp1))
370 if (!rsa_bn_dup_check(&dupkey->dmq1, rsa->dmq1))
372 if (!rsa_bn_dup_check(&dupkey
[all...]
H A Drsa_ameth.c929 RSA *dupkey = NULL; local
933 dupkey = ossl_rsa_dup(rsa, OSSL_KEYMGMT_SELECT_ALL);
934 if (dupkey == NULL)
938 ret = EVP_PKEY_assign(to, from->type, dupkey);
940 RSA_free(dupkey);
/netbsd-current/external/bsd/ipf/dist/
H A Dradix_ipf.c203 * Search the dupkey list for a potential match.
205 for (cur = node; (cur != NULL) && (cur->root == 0); cur = cur->dupkey) {
223 * node nor the dupkey list.
270 * no list of alternatives present at dupkey, return a failure.
273 if (count != found->maskbitcount && found->dupkey == NULL)
281 if (found->dupkey != NULL) {
284 node = node->dupkey;
539 x = x->dupkey;
551 nodes[0].dupkey = x;
552 prev->dupkey
[all...]
H A Dradix_ipf.h27 struct ipf_rdx_node *dupkey; member in struct:ipf_rdx_node
/netbsd-current/sys/external/bsd/ipf/netinet/
H A Dradix_ipf.h27 struct ipf_rdx_node *dupkey; member in struct:ipf_rdx_node
H A Dradix_ipf.c193 * Search the dupkey list for a potential match.
195 for (cur = node; (cur != NULL) && (cur->root == 0); cur = cur->dupkey) {
213 * node nor the dupkey list.
258 * no list of alternatives present at dupkey, return a failure.
261 if (count != found->maskbitcount && found->dupkey == NULL)
269 if (found->dupkey != NULL) {
272 node = node->dupkey;
520 x = x->dupkey;
532 nodes[0].dupkey = x;
533 prev->dupkey
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/ec/
H A Dec_ameth.c633 EC_KEY *dupkey = NULL; local
637 dupkey = EC_KEY_dup(eckey);
638 if (dupkey == NULL)
645 ret = EVP_PKEY_assign_EC_KEY(to, dupkey);
647 EC_KEY_free(dupkey);
H A Decx_meth.c409 ECX_KEY *ecx = from->pkey.ecx, *dupkey = NULL; local
413 dupkey = ossl_ecx_key_dup(ecx, OSSL_KEYMGMT_SELECT_ALL);
414 if (dupkey == NULL)
418 ret = EVP_PKEY_assign(to, from->type, dupkey);
420 ossl_ecx_key_free(dupkey);

Completed in 133 milliseconds