linux/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c

// SPDX-License-Identifier: GPL-2.0
/*
 * sun8i-ss-cipher.c - hardware cryptographic offloader for
 * Allwinner A80/A83T SoC
 *
 * Copyright (C) 2016-2019 Corentin LABBE <[email protected]>
 *
 * This file add support for AES cipher with 128,192,256 bits keysize in
 * CBC and ECB mode.
 *
 * You could find a link for the datasheet in Documentation/arch/arm/sunxi.rst
 */

#include <linux/bottom_half.h>
#include <linux/crypto.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include <linux/pm_runtime.h>
#include <crypto/scatterwalk.h>
#include <crypto/internal/skcipher.h>
#include "sun8i-ss.h"

static bool sun8i_ss_need_fallback(struct skcipher_request *areq)
{}

static int sun8i_ss_cipher_fallback(struct skcipher_request *areq)
{}

static int sun8i_ss_setup_ivs(struct skcipher_request *areq)
{}

static int sun8i_ss_cipher(struct skcipher_request *areq)
{}

int sun8i_ss_handle_cipher_request(struct crypto_engine *engine, void *areq)
{}

int sun8i_ss_skdecrypt(struct skcipher_request *areq)
{}

int sun8i_ss_skencrypt(struct skcipher_request *areq)
{}

int sun8i_ss_cipher_init(struct crypto_tfm *tfm)
{}

void sun8i_ss_cipher_exit(struct crypto_tfm *tfm)
{}

int sun8i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key,
			unsigned int keylen)
{}

int sun8i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key,
			 unsigned int keylen)
{}