On Sat, Oct 26, 2002 at 10:13:02PM +0900, Yamada Ken Takeshi wrote:
> # cat rijndael/rijndael-api-fst.c
>
> : : : :
> switch (cipher->mode) {
> case MODE_ECB:
> for (i = numBlocks; i > 0; i--) {
> rijndaelEncrypt(input, outBuffer, key->keySched, key->RO
> UNDS);
> input += 16;
> outBuffer += 16;
> }
> padLen = 16 - (inputOctets - 16*numBlocks);
> if (padLen > 0 && padLen <= 16)
> panic("rijndael_padEncrypt(ECB)");
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> bcopy(input, block, 16 - padLen);
> for (cp = block + 16 - padLen; cp < block + 16; cp++)
> *cp = padLen;
> rijndaelEncrypt(block, outBuffer, key->keySched, key->ROUNDS);
> break;
You don't have the latest sources. Did you use cvsup it
update your sources? If you used cvsup, then you
need to add src-sys-crypto to your cvsup file.
--
Craig Rodrigues
http://www.gis.net/~craigr
[EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message