linux/drivers/crypto/gemini/sl3516-ce-cipher.c

// SPDX-License-Identifier: GPL-2.0
/*
 * sl3516-ce-cipher.c - hardware cryptographic offloader for Storlink SL3516 SoC
 *
 * Copyright (C) 2021 Corentin LABBE <[email protected]>
 *
 * This file adds support for AES cipher with 128,192,256 bits keysize in
 * ECB mode.
 */

#include <crypto/engine.h>
#include <crypto/internal/skcipher.h>
#include <crypto/scatterwalk.h>
#include <linux/dma-mapping.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/pm_runtime.h>
#include <linux/slab.h>
#include <linux/string.h>
#include "sl3516-ce.h"

/* sl3516_ce_need_fallback - check if a request can be handled by the CE */
static bool sl3516_ce_need_fallback(struct skcipher_request *areq)
{}

static int sl3516_ce_cipher_fallback(struct skcipher_request *areq)
{}

static int sl3516_ce_cipher(struct skcipher_request *areq)
{}

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

int sl3516_ce_skdecrypt(struct skcipher_request *areq)
{}

int sl3516_ce_skencrypt(struct skcipher_request *areq)
{}

int sl3516_ce_cipher_init(struct crypto_tfm *tfm)
{}

void sl3516_ce_cipher_exit(struct crypto_tfm *tfm)
{}

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