BN_dup
BIGNUM *BN_dup(const BIGNUM *a);
if ((tmp = BN_dup(bn)) == NULL)
LCRYPTO_ALIAS(BN_dup);
if ((recp->N = BN_dup(N)) == NULL)
BIGNUM *tmp = BN_dup(a);
if ((a = BN_dup(from->pkey.dh->p)) == NULL)
if ((a = BN_dup(from->pkey.dh->g)) == NULL)
if ((max_g = BN_dup(dh->p)) == NULL)
if ((a = BN_dup(from->pkey.dsa->p)) == NULL)
if ((a = BN_dup(from->pkey.dsa->q)) == NULL)
if ((a = BN_dup(from->pkey.dsa->g)) == NULL)
ret->p = BN_dup(p);
ret->q = BN_dup(q);
ret->g = BN_dup(g);
if ((dh->p = BN_dup(dsa->p)) == NULL)
if ((dh->q = BN_dup(dsa->q)) == NULL)
if ((dh->g = BN_dup(dsa->g)) == NULL)
if ((dh->pub_key = BN_dup(dsa->pub_key)) == NULL)
if ((dh->priv_key = BN_dup(dsa->priv_key)) == NULL)
if ((dest->priv_key = BN_dup(src->priv_key)) == NULL)
if ((key->priv_key = BN_dup(priv_key)) == NULL)
LCRYPTO_USED(BN_dup);
if ((ret->e = BN_dup(e)) == NULL)
if ((ret->mod = BN_dup(mod)) == NULL)
if ((dctx->pub_exp = BN_dup(sctx->pub_exp)) == NULL)
if ((p = BN_dup(DH_get0_p(dh_params))) == NULL)
if ((g = BN_dup(DH_get0_g(dh_params))) == NULL)
if ((dst = BN_dup(BN_value_one())) == NULL)
if ((dst = BN_dup(src)) == NULL)
x = BN_dup(n->number);
n->number = BN_dup(a->number);
if ((rsa_n_dup = BN_dup(rsa_n)) == NULL ||
(rsa_e_dup = BN_dup(rsa_e)) == NULL) {
if ((d_consttime = BN_dup(rsa_d)) == NULL) {