From: Pekka Riikonen Date: Wed, 11 Apr 2001 11:08:21 +0000 (+0000) Subject: updates. X-Git-Tag: SILC.0.1~28 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=10b9a3d01d1c02cde995ad42b4b84e45d331b1fb updates. --- diff --git a/TODO b/TODO index 4f6d695c..6f1e6ca4 100644 --- a/TODO +++ b/TODO @@ -75,6 +75,9 @@ TODO/bugs In SILC Libraries that needs to be commited (from Schneier's Yarrow-160 paper). They should make the RNG even better. + o Some of the ciphers in lib/silccrypt does not implement the SILC + Crypto API correctly. + o SIM support for SILC PKCS API needs to made so that they could be used as SIM's. At the same time some work is required on prime generation as the way it is done now sucks. Read from code for diff --git a/lib/silccrypt/ciphers_def.h b/lib/silccrypt/ciphers_def.h index 499b7db8..12f45531 100644 --- a/lib/silccrypt/ciphers_def.h +++ b/lib/silccrypt/ciphers_def.h @@ -83,22 +83,22 @@ do { \ SILC_GET32_LSB(d[3], &s[12]); \ } while(0); -#define SILC_CBC_DEC_POST(s, d, p, t, iv) \ +#define SILC_CBC_DEC_POST(s, d, p, t, siv) \ do { \ - s[0] ^= iv[0]; \ - s[1] ^= iv[1]; \ - s[2] ^= iv[2]; \ - s[3] ^= iv[3]; \ + s[0] ^= siv[0]; \ + s[1] ^= siv[1]; \ + s[2] ^= siv[2]; \ + s[3] ^= siv[3]; \ \ SILC_PUT32_LSB(s[0], &d[0]); \ SILC_PUT32_LSB(s[1], &d[4]); \ SILC_PUT32_LSB(s[2], &d[8]); \ SILC_PUT32_LSB(s[3], &d[12]); \ \ - iv[0] = t[0]; \ - iv[1] = t[1]; \ - iv[2] = t[2]; \ - iv[3] = t[3]; \ + siv[0] = t[0]; \ + siv[1] = t[1]; \ + siv[2] = t[2]; \ + siv[3] = t[3]; \ \ d += 16; \ p += 16; \