#include <linux/module.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/scatterlist.h>
#include <crypto/aes.h>
#include <crypto/xts.h>
#include <crypto/internal/skcipher.h>
#include <crypto/scatterwalk.h>
#include "ccp-crypto.h"
struct ccp_aes_xts_def { … };
static const struct ccp_aes_xts_def aes_xts_algs[] = …;
struct ccp_unit_size_map { … };
static struct ccp_unit_size_map xts_unit_sizes[] = …;
static int ccp_aes_xts_complete(struct crypto_async_request *async_req, int ret)
{ … }
static int ccp_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key,
unsigned int key_len)
{ … }
static int ccp_aes_xts_crypt(struct skcipher_request *req,
unsigned int encrypt)
{ … }
static int ccp_aes_xts_encrypt(struct skcipher_request *req)
{ … }
static int ccp_aes_xts_decrypt(struct skcipher_request *req)
{ … }
static int ccp_aes_xts_init_tfm(struct crypto_skcipher *tfm)
{ … }
static void ccp_aes_xts_exit_tfm(struct crypto_skcipher *tfm)
{ … }
static int ccp_register_aes_xts_alg(struct list_head *head,
const struct ccp_aes_xts_def *def)
{ … }
int ccp_register_aes_xts_algs(struct list_head *head)
{ … }