linux/drivers/crypto/amlogic/amlogic-gxl-cipher.c

// SPDX-License-Identifier: GPL-2.0
/*
 * amlogic-cipher.c - hardware cryptographic offloader for Amlogic GXL SoC
 *
 * Copyright (C) 2018-2019 Corentin LABBE <[email protected]>
 *
 * This file add support for AES cipher with 128,192,256 bits keysize in
 * CBC and ECB mode.
 */

#include <linux/crypto.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <crypto/scatterwalk.h>
#include <linux/scatterlist.h>
#include <linux/dma-mapping.h>
#include <crypto/internal/skcipher.h>
#include "amlogic-gxl.h"

static int get_engine_number(struct meson_dev *mc)
{}

static bool meson_cipher_need_fallback(struct skcipher_request *areq)
{}

static int meson_cipher_do_fallback(struct skcipher_request *areq)
{}

static int meson_cipher(struct skcipher_request *areq)
{}

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

int meson_skdecrypt(struct skcipher_request *areq)
{}

int meson_skencrypt(struct skcipher_request *areq)
{}

int meson_cipher_init(struct crypto_tfm *tfm)
{}

void meson_cipher_exit(struct crypto_tfm *tfm)
{}

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