Skip to content

Commit

Permalink
crypto: algboss - Remove reference to nivaead
Browse files Browse the repository at this point in the history
This patch removes a legacy reference to nivaead which is no longer
used.

Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
herbertx committed Aug 17, 2015
1 parent e558017 commit aa1b6bb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions crypto/algboss.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,11 @@ static int cryptomgr_schedule_test(struct crypto_alg *alg)
type = alg->cra_flags;

/* This piece of crap needs to disappear into per-type test hooks. */
if ((!((type ^ CRYPTO_ALG_TYPE_BLKCIPHER) &
CRYPTO_ALG_TYPE_BLKCIPHER_MASK) && !(type & CRYPTO_ALG_GENIV) &&
((alg->cra_flags & CRYPTO_ALG_TYPE_MASK) ==
CRYPTO_ALG_TYPE_BLKCIPHER ? alg->cra_blkcipher.ivsize :
alg->cra_ablkcipher.ivsize)) ||
(!((type ^ CRYPTO_ALG_TYPE_AEAD) & CRYPTO_ALG_TYPE_MASK) &&
alg->cra_type == &crypto_nivaead_type && alg->cra_aead.ivsize))
if (!((type ^ CRYPTO_ALG_TYPE_BLKCIPHER) &
CRYPTO_ALG_TYPE_BLKCIPHER_MASK) && !(type & CRYPTO_ALG_GENIV) &&
((alg->cra_flags & CRYPTO_ALG_TYPE_MASK) ==
CRYPTO_ALG_TYPE_BLKCIPHER ? alg->cra_blkcipher.ivsize :
alg->cra_ablkcipher.ivsize))
type |= CRYPTO_ALG_TESTED;

param->type = type;
Expand Down

0 comments on commit aa1b6bb

Please sign in to comment.