summaryrefslogtreecommitdiff
path: root/linux/crypto/blkcipher.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-05-17 03:14:09 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-05-17 07:24:39 -0400
commit62e4df2a38081f62fd1bd657459b7ffb2d4f522c (patch)
tree9b4ed5d3c597e19894ca77299b53057efe071c50 /linux/crypto/blkcipher.c
parent426e88e41cdcecd007a689daf4fe432bb61303ec (diff)
drop dead code
Diffstat (limited to 'linux/crypto/blkcipher.c')
-rw-r--r--linux/crypto/blkcipher.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/linux/crypto/blkcipher.c b/linux/crypto/blkcipher.c
deleted file mode 100644
index 31f91418..00000000
--- a/linux/crypto/blkcipher.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Block chaining cipher operations.
- *
- * Generic encrypt/decrypt wrapper for ciphers, handles operations across
- * multiple page boundaries by using temporary blocks. In user context,
- * the kernel is given a chance to schedule us once per page.
- *
- * Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- */
-
-#include <linux/errno.h>
-#include <linux/kernel.h>
-#include <linux/slab.h>
-#include <linux/string.h>
-
-#include <crypto/algapi.h>
-#include "internal.h"
-
-static unsigned crypto_blkcipher_ctxsize(struct crypto_alg *alg,
- u32 type, u32 mask)
-{
- return alg->cra_ctxsize;
-}
-
-static int crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask)
-{
- struct blkcipher_tfm *crt = &tfm->crt_blkcipher;
- struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher;
-
- BUG_ON((mask & CRYPTO_ALG_TYPE_MASK) != CRYPTO_ALG_TYPE_MASK);
-
- crt->setkey = alg->setkey;
- crt->encrypt = alg->encrypt;
- crt->decrypt = alg->decrypt;
- return 0;
-}
-
-const struct crypto_type crypto_blkcipher_type = {
- .ctxsize = crypto_blkcipher_ctxsize,
- .init = crypto_init_blkcipher_ops,
-};