patch-2.4.25 linux-2.4.25/include/linux/crypto.h
Next file: linux-2.4.25/include/linux/dqblk_xfs.h
Previous file: linux-2.4.25/include/linux/console.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
2004-02-18 05:36:32.000000000 -0800
- Orig file:
linux-2.4.24/include/linux/crypto.h
- Orig date:
2003-08-25 04:44:44.000000000 -0700
diff -urN linux-2.4.24/include/linux/crypto.h linux-2.4.25/include/linux/crypto.h
@@ -65,7 +65,6 @@
struct cipher_alg {
unsigned int cia_min_keysize;
unsigned int cia_max_keysize;
- unsigned int cia_ivsize;
int (*cia_setkey)(void *ctx, const u8 *key,
unsigned int keylen, u32 *flags);
void (*cia_encrypt)(void *ctx, u8 *dst, const u8 *src);
@@ -128,6 +127,7 @@
struct cipher_tfm {
void *cit_iv;
+ unsigned int cit_ivsize;
u32 cit_mode;
int (*cit_setkey)(struct crypto_tfm *tfm,
const u8 *key, unsigned int keylen);
@@ -242,7 +242,7 @@
static inline unsigned int crypto_tfm_alg_ivsize(struct crypto_tfm *tfm)
{
BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER);
- return tfm->__crt_alg->cra_cipher.cia_ivsize;
+ return tfm->crt_cipher.cit_ivsize;
}
static inline unsigned int crypto_tfm_alg_blocksize(struct crypto_tfm *tfm)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)