Home | History | Annotate | Download | only in ec

Lines Matching refs:params

692                                            ECPKPARAMETERS *params)
695 ECPKPARAMETERS *ret = params;
747 static EC_GROUP *ec_asn1_parameters2group(const ECPARAMETERS *params)
755 if (!params->fieldID || !params->fieldID->fieldType ||
756 !params->fieldID->p.ptr)
763 if (!params->curve || !params->curve->a ||
764 !params->curve->a->data || !params->curve->b ||
765 !params->curve->b->data)
770 a = BN_bin2bn(params->curve->a->data, params->curve->a->length, NULL);
776 b = BN_bin2bn(params->curve->b->data, params->curve->b->length, NULL);
784 tmp = OBJ_obj2nid(params->fieldID->fieldType);
795 char_two = params->fieldID->p.char_two;
882 if (!params->fieldID->p.prime)
887 p = ASN1_INTEGER_to_BN(params->fieldID->p.prime, NULL);
923 if (params->curve->seed != NULL)
927 if (!(ret->seed = OPENSSL_malloc(params->curve->seed->length)))
933 memcpy(ret->seed, params->curve->seed->data,
934 params->curve->seed->length);
935 ret->seed_len = params->curve->seed->length;
938 if (!params->order || !params->base || !params->base->data)
948 (params->base->data[0] & ~0x01));
951 if (!EC_POINT_oct2point(ret, point, params->base->data,
952 params->base->length, NULL))
959 if ((a = ASN1_INTEGER_to_BN(params->order, a)) == NULL)
976 if (params->cofactor == NULL)
985 if ((b = ASN1_INTEGER_to_BN(params->cofactor, b)) == NULL)
1017 EC_GROUP *ec_asn1_pkparameters2group(const ECPKPARAMETERS *params)
1022 if (params == NULL)
1029 if (params->type == 0)
1031 tmp = OBJ_obj2nid(params->value.named_curve);
1040 else if (params->type == 1)
1043 ret = ec_asn1_parameters2group(params->value.parameters);
1051 else if (params->type == 2)
1069 ECPKPARAMETERS *params = NULL;
1071 if ((params = d2i_ECPKPARAMETERS(NULL, in, len)) == NULL)
1074 ECPKPARAMETERS_free(params);
1078 if ((group = ec_asn1_pkparameters2group(params)) == NULL)
1081 ECPKPARAMETERS_free(params);
1091 ECPKPARAMETERS_free(params);