chiark / gitweb /
group: Implement KCDSA group generation.
[catacomb-python] / algorithms.c
index 71b8e560f7ec51e6c7451d1d963b6f1d6c7ee829..be953b0757893906cb3aa01c4f2864b4d41a6c5e 100644 (file)
@@ -1430,22 +1430,6 @@ void algorithms_pyinit(void)
   INITTYPE(gprp, root);
 }
 
   INITTYPE(gprp, root);
 }
 
-#define GEN(func, base)                                                        \
-  static PyObject *func(void)                                          \
-  {                                                                    \
-    PyObject *d = PyDict_New();                                                \
-    PyObject *o;                                                       \
-    int i;                                                             \
-                                                                       \
-    for (i = 0; g##base##tab[i]; i++) {                                        \
-      o = gc##base##_pywrap((/*unconst*/ gc##base *)g##base##tab[i]);  \
-      PyDict_SetItemString(d,                                          \
-                          (/*unconst*/ char *)g##base##tab[i]->name,   \
-                          o);                                          \
-      Py_DECREF(o);                                                    \
-    }                                                                  \
-    return (d);                                                                \
-  }
 GEN(gcciphers, cipher)
 GEN(gchashes, hash)
 GEN(gcmacs, mac)
 GEN(gcciphers, cipher)
 GEN(gchashes, hash)
 GEN(gcmacs, mac)