linux/drivers/crypto/ccp/ccp-crypto-aes-xts.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * AMD Cryptographic Coprocessor (CCP) AES XTS crypto API support
 *
 * Copyright (C) 2013,2017 Advanced Micro Devices, Inc.
 *
 * Author: Gary R Hook <[email protected]>
 * Author: Tom Lendacky <[email protected]>
 */

#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)
{}