diff --git a/cast128.c b/cast128.c index e4ca0cbb4eb602ee639f02189d09230e04f93605..884cfa71b105ee8ae092886f11358c5d3072f6fd 100644 --- a/cast128.c +++ b/cast128.c @@ -178,6 +178,8 @@ cast128_set_key(struct cast128_ctx *ctx, if ((i*4+2) < keybytes) x[i] |= (uint32_t)rawkey[i*4+2] << 8; if ((i*4+3) < keybytes) x[i] |= (uint32_t)rawkey[i*4+3]; } + /* FIXME: For the shorter key sizes, the last 4 subkeys are not + used, and need not be generatedd, nor stored. */ /* Generate 32 subkeys, four at a time */ for (i = 0; i < 32; i+=4) { switch (i & 4) {