crypto: {blk,giv}cipher: Set has_setkey
[pandora-kernel.git] / crypto / blkcipher.c
index 3041504..7b69d7a 100644 (file)
@@ -458,6 +458,7 @@ static int crypto_init_blkcipher_ops_async(struct crypto_tfm *tfm)
        }
        crt->base = __crypto_ablkcipher_cast(tfm);
        crt->ivsize = alg->ivsize;
+       crt->has_setkey = alg->max_keysize;
 
        return 0;
 }