]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - crypto/ctr.c
Staging: rt3070: update allowed channels list for Japan
[mv-sheeva.git] / crypto / ctr.c
index 1052b318aed2b7c45b28981c80ade33378d58a22..6c3bfabb9d1d1b7a54a675373b66d46b70310e32 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;