/* -*-c-*-
*
- * $Id: cc-kem.c,v 1.1 2004/04/17 09:58:37 mdw Exp $
+ * $Id$
*
* Catcrypt key-encapsulation
*
/* --- The switch table --- */
-static const struct kemtab {
- const char *name;
- const kemops *encops;
- const kemops *decops;
-} kemtab[] = {
+const struct kemtab kemtab[] = {
{ "rsa", &rsa_encops, &rsa_decops },
{ "dh", &dh_encops, &dh_decops },
{ "ec", &ec_encops, &ec_decops },
octet *kd;
size_t n, cn, mn;
ghash *h;
- int rc = 0;
+ int rc = -1;
h = GH_INIT(k->h);
if (k->ops->doit(k, d, h))