projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Muffle GCC warnings in various ways.
[u/mdw/catacomb]
/
symm
/
seal.c
diff --git
a/symm/seal.c
b/symm/seal.c
index
df7cd1b
..
da9d084
100644
(file)
--- 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.
*/
* Use: Initializes a SEAL key table.
*/
-static void gamma(uint32 *p, size_t sz, const void *k, unsigned i)
+static void
seal
gamma(uint32 *p, size_t sz, const void *k, unsigned i)
{
uint32 buf[80] = { 0 };
const octet *kk = k;
{
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 --- */
/* --- 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);
+
seal
gamma(k->t, 512, k->k, 0);
+
seal
gamma(k->s, 256, k->k, 0x1000);
+
seal
gamma(k->r, SEAL_R, k->k, 0x2000);
}
/* --- @seal_reset@ --- *
}
/* --- @seal_reset@ --- *
@@
-193,7
+193,7
@@
static void seal_reset(seal_ctx *c)
/* --- Initialize the new chaining variables --- */
if (c->l >= SEAL_R) {
/* --- Initialize the new chaining variables --- */
if (c->l >= SEAL_R) {
- gamma(c->rbuf, SEAL_R, k->k, c->ri);
+
seal
gamma(c->rbuf, SEAL_R, k->k, c->ri);
c->ri += SEAL_R;
c->l = 0;
c->r = c->rbuf;
c->ri += SEAL_R;
c->l = 0;
c->r = c->rbuf;