Lines Matching refs:src
161 static int ffc_bn_cpy(BIGNUM **dst, const BIGNUM *src) in ffc_bn_cpy() argument
169 if (src == NULL) in ffc_bn_cpy()
171 else if (BN_get_flags(src, BN_FLG_STATIC_DATA) in ffc_bn_cpy()
172 && !BN_get_flags(src, BN_FLG_MALLOCED)) in ffc_bn_cpy()
173 a = (BIGNUM *)src; in ffc_bn_cpy()
174 else if ((a = BN_dup(src)) == NULL) in ffc_bn_cpy()
181 int ossl_ffc_params_copy(FFC_PARAMS *dst, const FFC_PARAMS *src) in ossl_ffc_params_copy() argument
183 if (!ffc_bn_cpy(&dst->p, src->p) in ossl_ffc_params_copy()
184 || !ffc_bn_cpy(&dst->g, src->g) in ossl_ffc_params_copy()
185 || !ffc_bn_cpy(&dst->q, src->q) in ossl_ffc_params_copy()
186 || !ffc_bn_cpy(&dst->j, src->j)) in ossl_ffc_params_copy()
189 dst->mdname = src->mdname; in ossl_ffc_params_copy()
190 dst->mdprops = src->mdprops; in ossl_ffc_params_copy()
192 dst->seedlen = src->seedlen; in ossl_ffc_params_copy()
193 if (src->seed != NULL) { in ossl_ffc_params_copy()
194 dst->seed = OPENSSL_memdup(src->seed, src->seedlen); in ossl_ffc_params_copy()
200 dst->nid = src->nid; in ossl_ffc_params_copy()
201 dst->pcounter = src->pcounter; in ossl_ffc_params_copy()
202 dst->h = src->h; in ossl_ffc_params_copy()
203 dst->gindex = src->gindex; in ossl_ffc_params_copy()
204 dst->flags = src->flags; in ossl_ffc_params_copy()
205 dst->keylength = src->keylength; in ossl_ffc_params_copy()