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