X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=crypto%2Fcipher.c;h=3df47f93c9db01e0a19da8af237ab800ae9d34b1;hb=5e5d7a22292613e55da8e91d75bcc062fd861f41;hp=8da644364cb4225824575ec4813741b9d46d7041;hpb=bdf242eeb0f69567fe43eba93889d80ecacbfe94;p=linux-2.6 diff --git a/crypto/cipher.c b/crypto/cipher.c index 8da644364c..3df47f93c9 100644 --- a/crypto/cipher.c +++ b/crypto/cipher.c @@ -377,11 +377,7 @@ static int nocrypt_iv(struct crypto_tfm *tfm, int crypto_init_cipher_flags(struct crypto_tfm *tfm, u32 flags) { u32 mode = flags & CRYPTO_TFM_MODE_MASK; - tfm->crt_cipher.cit_mode = mode ? mode : CRYPTO_TFM_MODE_ECB; - if (flags & CRYPTO_TFM_REQ_WEAK_KEY) - tfm->crt_flags = CRYPTO_TFM_REQ_WEAK_KEY; - return 0; }