]> nv-tegra.nvidia Code Review - linux-3.10.git/blobdiff - crypto/cipher.c
[CRYPTO] cipher: Removed special IV checks for ECB
[linux-3.10.git] / crypto / cipher.c
index 56406a4a88d4dd3d310bcd196245732a60d5e87d..aebc4a2adc8059a0aa4188338bd05c90aa1eb498 100644 (file)
@@ -399,6 +399,8 @@ int crypto_init_cipher_ops(struct crypto_tfm *tfm)
        case CRYPTO_TFM_MODE_ECB:
                ops->cit_encrypt = ecb_encrypt;
                ops->cit_decrypt = ecb_decrypt;
+               ops->cit_encrypt_iv = nocrypt_iv;
+               ops->cit_decrypt_iv = nocrypt_iv;
                break;
                
        case CRYPTO_TFM_MODE_CBC: