Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34225
b: refs/heads/master
c: df89820
h: refs/heads/master
i:
  34223: 836e559
v: v3
  • Loading branch information
Herbert Xu committed Sep 21, 2006
1 parent 6a54287 commit d94749a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c907ee76d8456fe1d98f40b5febfc7802a73b784
refs/heads/master: df89820ebd5bbf4f3c6b5f8ee7d9e983107f6a91
2 changes: 2 additions & 0 deletions trunk/crypto/cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/linux/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ static inline int crypto_cipher_encrypt_iv(struct crypto_tfm *tfm,
unsigned int nbytes, u8 *iv)
{
BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER);
BUG_ON(tfm->crt_cipher.cit_mode == CRYPTO_TFM_MODE_ECB);
return tfm->crt_cipher.cit_encrypt_iv(tfm, dst, src, nbytes, iv);
}

Expand All @@ -441,7 +440,6 @@ static inline int crypto_cipher_decrypt_iv(struct crypto_tfm *tfm,
unsigned int nbytes, u8 *iv)
{
BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER);
BUG_ON(tfm->crt_cipher.cit_mode == CRYPTO_TFM_MODE_ECB);
return tfm->crt_cipher.cit_decrypt_iv(tfm, dst, src, nbytes, iv);
}

Expand Down

0 comments on commit d94749a

Please sign in to comment.