* 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;
/* --- 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@ --- *
/* --- 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;