Muffle GCC warnings in various ways.
[u/mdw/catacomb] / symm / seal.c
index df7cd1b..da9d084 100644 (file)
@@ -58,7 +58,7 @@ const octet seal_keysz[] = { KSZ_ANY, SHA_HASHSZ };
  * Use:                Initializes a SEAL key table.
  */
 
-static void gamma(uint32 *p, size_t sz, const void *k, unsigned i)
+static void sealgamma(uint32 *p, size_t sz, const void *k, unsigned i)
 {
   uint32 buf[80] = { 0 };
   const octet *kk = k;
@@ -168,9 +168,9 @@ void seal_initkey(seal_key *k, const void *buf, size_t sz)
 
   /* --- Expand the key to fit the various tables --- */
 
-  gamma(k->t, 512, k->k, 0);
-  gamma(k->s, 256, k->k, 0x1000);
-  gamma(k->r, SEAL_R, k->k, 0x2000);
+  sealgamma(k->t, 512, k->k, 0);
+  sealgamma(k->s, 256, k->k, 0x1000);
+  sealgamma(k->r, SEAL_R, k->k, 0x2000);
 }
 
 /* --- @seal_reset@ --- *
@@ -193,7 +193,7 @@ static void seal_reset(seal_ctx *c)
   /* --- Initialize the new chaining variables --- */
 
   if (c->l >= SEAL_R) {
-    gamma(c->rbuf, SEAL_R, k->k, c->ri);
+    sealgamma(c->rbuf, SEAL_R, k->k, c->ri);
     c->ri += SEAL_R;
     c->l = 0;
     c->r = c->rbuf;