Lines Matching refs:curve

72     X9_62_CURVE *curve;  member
149 ASN1_SIMPLE(ECPARAMETERS, curve, X9_62_CURVE),
310 static int ec_asn1_group2curve(const EC_GROUP *group, X9_62_CURVE *curve) in ec_asn1_group2curve() argument
317 if (!group || !curve || !curve->a || !curve->b) in ec_asn1_group2curve()
347 if (!ASN1_OCTET_STRING_set(curve->a, a_buf, len) in ec_asn1_group2curve()
348 || !ASN1_OCTET_STRING_set(curve->b, b_buf, len)) { in ec_asn1_group2curve()
355 if (!curve->seed) in ec_asn1_group2curve()
356 if ((curve->seed = ASN1_BIT_STRING_new()) == NULL) { in ec_asn1_group2curve()
360 ossl_asn1_string_set_bits_left(curve->seed, 0); in ec_asn1_group2curve()
361 if (!ASN1_BIT_STRING_set(curve->seed, group->seed, in ec_asn1_group2curve()
367 ASN1_BIT_STRING_free(curve->seed); in ec_asn1_group2curve()
368 curve->seed = NULL; in ec_asn1_group2curve()
410 if (!ec_asn1_group2curve(group, ret->curve)) { in EC_GROUP_get_ecparameters()
543 if (params->curve == NULL in EC_GROUP_new_from_ecparameters()
544 || params->curve->a == NULL || params->curve->a->data == NULL in EC_GROUP_new_from_ecparameters()
545 || params->curve->b == NULL || params->curve->b->data == NULL) { in EC_GROUP_new_from_ecparameters()
549 a = BN_bin2bn(params->curve->a->data, params->curve->a->length, NULL); in EC_GROUP_new_from_ecparameters()
554 b = BN_bin2bn(params->curve->b->data, params->curve->b->length, NULL); in EC_GROUP_new_from_ecparameters()
687 if (params->curve->seed != NULL) { in EC_GROUP_new_from_ecparameters()
694 if (params->curve->seed->length == 0) { in EC_GROUP_new_from_ecparameters()
699 if ((ret->seed = OPENSSL_malloc(params->curve->seed->length)) == NULL) in EC_GROUP_new_from_ecparameters()
701 memcpy(ret->seed, params->curve->seed->data, in EC_GROUP_new_from_ecparameters()
702 params->curve->seed->length); in EC_GROUP_new_from_ecparameters()
703 ret->seed_len = params->curve->seed->length; in EC_GROUP_new_from_ecparameters()
821 if (params->curve->seed == NULL) { in EC_GROUP_new_from_ecparameters()