Lines Matching defs:group
163 ECPKPARAMETERS *ec_asn1_group2pkparameters(const EC_GROUP *group,
179 nid = EC_GROUP_get_curve_name(group);
207 * group order. */
240 EC_GROUP *group = NULL;
251 group = ec_asn1_pkparameters2group(params);
252 if (group == NULL) {
260 *groupp = group;
265 return group;
268 static int i2d_ECPKParameters(const EC_GROUP *group, uint8_t **outp) {
270 ECPKPARAMETERS *tmp = ec_asn1_group2pkparameters(group, NULL);
308 EC_GROUP_free(ret->group);
309 ret->group = ec_asn1_pkparameters2group(priv_key->parameters);
312 if (ret->group == NULL) {
332 if (BN_cmp(ret->priv_key, EC_GROUP_get0_order(ret->group)) >= 0) {
338 ret->pub_key = EC_POINT_new(ret->group);
357 if (!EC_POINT_oct2point(ret->group, ret->pub_key, pub_oct, pub_oct_len,
363 if (!EC_POINT_mul(ret->group, ret->pub_key, ret->priv_key, NULL, NULL,
397 if (key == NULL || key->group == NULL || key->priv_key == NULL) {
410 buf_len = BN_num_bytes(&key->group->order);
430 key->group, priv_key->parameters)) == NULL) {
444 tmp_len = EC_POINT_point2oct(key->group, key->pub_key, key->conv_form, NULL,
457 if (!EC_POINT_point2oct(key->group, key->pub_key, key->conv_form, buffer,
489 return i2d_ECPKParameters(key->group, outp);
510 if (!d2i_ECPKParameters(&ret->group, inp, len)) {
527 if (keyp == NULL || *keyp == NULL || (*keyp)->group == NULL) {
533 (ret->pub_key = EC_POINT_new(ret->group)) == NULL) {
537 if (!EC_POINT_oct2point(ret->group, ret->pub_key, *inp, len, NULL)) {
556 buf_len = EC_POINT_point2oct(key->group, key->pub_key, key->conv_form, NULL,
572 if (!EC_POINT_point2oct(key->group, key->pub_key, key->conv_form, *outp,