x86, perf: P4 PMU -- Get rid of redundant check for array index
[safe/jmp/linux-2.6] / crypto / ctr.c
index 1052b31..6c3bfab 100644 (file)
@@ -219,6 +219,8 @@ static struct crypto_instance *crypto_ctr_alloc(struct rtattr **tb)
        inst->alg.cra_blkcipher.encrypt = crypto_ctr_crypt;
        inst->alg.cra_blkcipher.decrypt = crypto_ctr_crypt;
 
+       inst->alg.cra_blkcipher.geniv = "chainiv";
+
 out:
        crypto_mod_put(alg);
        return inst;
@@ -361,6 +363,8 @@ static struct crypto_instance *crypto_rfc3686_alloc(struct rtattr **tb)
        inst->alg.cra_blkcipher.max_keysize = alg->cra_blkcipher.max_keysize
                                              + CTR_RFC3686_NONCE_SIZE;
 
+       inst->alg.cra_blkcipher.geniv = "seqiv";
+
        inst->alg.cra_ctxsize = sizeof(struct crypto_rfc3686_ctx);
 
        inst->alg.cra_init = crypto_rfc3686_init_tfm;