+void free_cached_groups()
+{
+ R3410_ec_params *params;
+
+ /* Search nid in 2012 paramset */
+ params = R3410_2012_512_paramset;
+ while (params->nid != NID_undef) {
+ EC_GROUP_free(params->group);
+ params->group = NULL;
+ params++;
+ }
+
+ /* Search nid in 2001 paramset */
+ params = R3410_2001_paramset;
+ while (params->nid != NID_undef) {
+ EC_GROUP_free(params->group);
+ params->group = NULL;
+ params++;
+ }
+}
+