aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-07-13 20:42:27 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2006-09-20 21:41:03 -0400
commitdf89820ebd5bbf4f3c6b5f8ee7d9e983107f6a91 (patch)
treea782e2662cbdb6c7ad7591f2697d06008048f966 /crypto
parentc907ee76d8456fe1d98f40b5febfc7802a73b784 (diff)
[CRYPTO] cipher: Removed special IV checks for ECB
This patch makes IV operations on ECB fail through nocrypt_iv rather than calling BUG(). This is needed to generalise CBC/ECB using the template mechanism. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/cipher.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/cipher.c b/crypto/cipher.c
index 56406a4a88d4..aebc4a2adc80 100644
--- a/crypto/cipher.c
+++ b/crypto/cipher.c
@@ -399,6 +399,8 @@ int crypto_init_cipher_ops(struct crypto_tfm *tfm)
399 case CRYPTO_TFM_MODE_ECB: 399 case CRYPTO_TFM_MODE_ECB:
400 ops->cit_encrypt = ecb_encrypt; 400 ops->cit_encrypt = ecb_encrypt;
401 ops->cit_decrypt = ecb_decrypt; 401 ops->cit_decrypt = ecb_decrypt;
402 ops->cit_encrypt_iv = nocrypt_iv;
403 ops->cit_decrypt_iv = nocrypt_iv;
402 break; 404 break;
403 405
404 case CRYPTO_TFM_MODE_CBC: 406 case CRYPTO_TFM_MODE_CBC: