Logo Search packages:      
Sourcecode: openssl version File versions  Download package

void EC_GROUP_free ( EC_GROUP group)

Frees a EC_GROUP object

Parameters:
groupEC_GROUP object to be freed.

Definition at line 123 of file ec_lib.c.

References EC_GROUP_free(), and EC_POINT_free().

Referenced by EC_GROUP_dup(), EC_GROUP_free(), EC_KEY_copy(), EC_KEY_free(), and EC_KEY_set_group().

      {
      if (!group) return;

      if (group->meth->group_finish != 0)
            group->meth->group_finish(group);

      EC_EX_DATA_free_all_data(&group->extra_data);

      if (group->generator != NULL)
            EC_POINT_free(group->generator);
      BN_free(&group->order);
      BN_free(&group->cofactor);

      if (group->seed)
            OPENSSL_free(group->seed);

      OPENSSL_free(group);
      }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index