X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/35c0995dde0c37486681630acdd8d26659a4732e..aa02ed367404c659ab7205ef9662ef92032d7786:/symm/seal.c diff --git a/symm/seal.c b/symm/seal.c index df7cd1b..da9d084 100644 --- a/symm/seal.c +++ b/symm/seal.c @@ -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;