Lines Matching defs:params

111 gf_populate_params(ECCurveName name, ECFieldType field_type, ECParams *params,
120 params->name = name;
121 curveParams = ecCurve_map[params->name];
123 params->fieldID.size = curveParams->size;
124 params->fieldID.type = field_type;
126 CHECK_OK(hexString2SECItem(NULL, &params->fieldID.u.prime,
129 CHECK_OK(hexString2SECItem(NULL, &params->fieldID.u.poly,
132 CHECK_OK(hexString2SECItem(NULL, &params->curve.a,
134 CHECK_OK(hexString2SECItem(NULL, &params->curve.b,
141 CHECK_OK(hexString2SECItem(NULL, &params->base, genenc, kmflag));
142 CHECK_OK(hexString2SECItem(NULL, &params->order,
144 params->cofactor = curveParams->cofactor;
156 ECParams *params, int kmflag)
165 printf("Encoded params in EC_DecodeParams: ");
186 params->arena = arena;
187 params->cofactor = 0;
188 params->type = ec_params_named;
189 params->name = ECCurve_noName;
192 params->curveOID.len = oid.len;
193 params->curveOID.data = (unsigned char *) PORT_ArenaAlloc(NULL, oid.len,
195 if (params->curveOID.data == NULL) goto cleanup;
196 memcpy(params->curveOID.data, oid.data, oid.len);
207 /* Populate params for c2pnb163v1 */
209 params, kmflag) );
213 /* Populate params for c2pnb163v2 */
215 params, kmflag) );
219 /* Populate params for c2pnb163v3 */
221 params, kmflag) );
225 /* Populate params for c2pnb176v1 */
227 params, kmflag) );
231 /* Populate params for c2tnb191v1 */
233 params, kmflag) );
237 /* Populate params for c2tnb191v2 */
239 params, kmflag) );
243 /* Populate params for c2tnb191v3 */
245 params, kmflag) );
249 /* Populate params for c2pnb208w1 */
251 params, kmflag) );
255 /* Populate params for c2tnb239v1 */
257 params, kmflag) );
261 /* Populate params for c2tnb239v2 */
263 params, kmflag) );
267 /* Populate params for c2tnb239v3 */
269 params, kmflag) );
273 /* Populate params for c2pnb272w1 */
275 params, kmflag) );
279 /* Populate params for c2pnb304w1 */
281 params, kmflag) );
285 /* Populate params for c2tnb359v1 */
287 params, kmflag) );
291 /* Populate params for c2pnb368w1 */
293 params, kmflag) );
297 /* Populate params for c2tnb431r1 */
299 params, kmflag) );
303 /* Populate params for sect113r1 */
305 params, kmflag) );
309 /* Populate params for sect113r2 */
311 params, kmflag) );
315 /* Populate params for sect131r1 */
317 params, kmflag) );
321 /* Populate params for sect131r2 */
323 params, kmflag) );
327 /* Populate params for sect163k1
331 params, kmflag) );
335 /* Populate params for sect163r1 */
337 params, kmflag) );
341 /* Populate params for sect163r2
345 params, kmflag) );
349 /* Populate params for sect193r1 */
351 params, kmflag) );
355 /* Populate params for sect193r2 */
357 params, kmflag) );
361 /* Populate params for sect233k1
365 params, kmflag) );
369 /* Populate params for sect233r1
373 params, kmflag) );
377 /* Populate params for sect239k1 */
379 params, kmflag) );
383 /* Populate params for sect283k1
387 params, kmflag) );
391 /* Populate params for sect283r1
395 params, kmflag) );
399 /* Populate params for sect409k1
403 params, kmflag) );
407 /* Populate params for sect409r1
411 params, kmflag) );
415 /* Populate params for sect571k1
419 params, kmflag) );
423 /* Populate params for sect571r1
427 params, kmflag) );
433 /* Populate params for prime192v1 aka secp192r1
437 params, kmflag) );
441 /* Populate params for prime192v2 */
443 params, kmflag) );
447 /* Populate params for prime192v3 */
449 params, kmflag) );
453 /* Populate params for prime239v1 */
455 params, kmflag) );
459 /* Populate params for prime239v2 */
461 params, kmflag) );
465 /* Populate params for prime239v3 */
467 params, kmflag) );
471 /* Populate params for prime256v1 aka secp256r1
475 params, kmflag) );
479 /* Populate params for secp112r1 */
481 params, kmflag) );
485 /* Populate params for secp112r2 */
487 params, kmflag) );
491 /* Populate params for secp128r1 */
493 params, kmflag) );
497 /* Populate params for secp128r2 */
499 params, kmflag) );
503 /* Populate params for secp160k1 */
505 params, kmflag) );
509 /* Populate params for secp160r1 */
511 params, kmflag) );
515 /* Populate params for secp160r1 */
517 params, kmflag) );
521 /* Populate params for secp192k1 */
523 params, kmflag) );
527 /* Populate params for secp224k1 */
529 params, kmflag) );
533 /* Populate params for secp224r1
537 params, kmflag) );
541 /* Populate params for secp256k1 */
543 params, kmflag) );
547 /* Populate params for secp384r1
551 params, kmflag) );
555 /* Populate params for secp521r1
559 params, kmflag) );
567 if (!params->cofactor) {
570 printf("Unrecognized curve, returning NULL params\n");
581 ECParams *params;
588 params = (ECParams *)PORT_ArenaZAlloc(NULL, sizeof(ECParams), kmflag);
589 if (!params) {
594 /* Copy the encoded params */
595 SECITEM_AllocItem(arena, &(params->DEREncoding), encodedParams->len,
597 memcpy(params->DEREncoding.data, encodedParams->data, encodedParams->len);
600 * the encoded params
602 rv = EC_FillParams(NULL, encodedParams, params, kmflag);
607 *ecparams = params;;