Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158024
b: refs/heads/master
c: 63b5ac2
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu committed Aug 14, 2009
1 parent 9183a23 commit af17e5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aef27136b8b5e526f2e96ca1caa30a6d07e70f42
refs/heads/master: 63b5ac286d5d7f668da537cc53a552578f7674a2
6 changes: 6 additions & 0 deletions trunk/crypto/ablkcipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ EXPORT_SYMBOL_GPL(crypto_givcipher_type);

const char *crypto_default_geniv(const struct crypto_alg *alg)
{
if (((alg->cra_flags & CRYPTO_ALG_TYPE_MASK) ==
CRYPTO_ALG_TYPE_BLKCIPHER ? alg->cra_blkcipher.ivsize :
alg->cra_ablkcipher.ivsize) !=
alg->cra_blocksize)
return "chainiv";

return alg->cra_flags & CRYPTO_ALG_ASYNC ?
"eseqiv" : skcipher_default_geniv;
}
Expand Down

0 comments on commit af17e5a

Please sign in to comment.