Lines Matching refs:rsatmp
691 RSA *rsatmp = NULL;
708 rsatmp = RSA_new_method(e);
709 RSA_set_ex_data(rsatmp, rsaHndidx, hptr);
710 rsatmp->flags |= RSA_FLAG_EXT_PKEY;
713 rsatmp->e = BN_new();
714 rsatmp->n = BN_new();
715 if(!rsatmp->e || !rsatmp->n)
717 bn_expand2(rsatmp->e, el / sizeof(BN_ULONG));
718 bn_expand2(rsatmp->n, el / sizeof(BN_ULONG));
719 if (rsatmp->e->dmax != (int)(el / sizeof(BN_ULONG)) ||
720 rsatmp->n->dmax != (int)(el / sizeof(BN_ULONG)))
723 (unsigned long *)rsatmp->n->d,
724 (unsigned long *)rsatmp->e->d);
732 rsatmp->e->top = el / sizeof(BN_ULONG);
733 bn_fix_top(rsatmp->e);
734 rsatmp->n->top = el / sizeof(BN_ULONG);
735 bn_fix_top(rsatmp->n);
738 EVP_PKEY_assign_RSA(res, rsatmp);
806 if (rsatmp)
807 RSA_free(rsatmp);