linux/crypto/ecb.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * ECB: Electronic CodeBook mode
 *
 * Copyright (c) 2006 Herbert Xu <[email protected]>
 */

#include <crypto/internal/cipher.h>
#include <crypto/internal/skcipher.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>

static int crypto_ecb_crypt(struct crypto_cipher *cipher, const u8 *src,
			    u8 *dst, unsigned nbytes, bool final,
			    void (*fn)(struct crypto_tfm *, u8 *, const u8 *))
{}

static int crypto_ecb_encrypt2(struct crypto_lskcipher *tfm, const u8 *src,
			       u8 *dst, unsigned len, u8 *iv, u32 flags)
{}

static int crypto_ecb_decrypt2(struct crypto_lskcipher *tfm, const u8 *src,
			       u8 *dst, unsigned len, u8 *iv, u32 flags)
{}

static int lskcipher_setkey_simple2(struct crypto_lskcipher *tfm,
				    const u8 *key, unsigned int keylen)
{}

static int lskcipher_init_tfm_simple2(struct crypto_lskcipher *tfm)
{}

static void lskcipher_exit_tfm_simple2(struct crypto_lskcipher *tfm)
{}

static void lskcipher_free_instance_simple2(struct lskcipher_instance *inst)
{}

static struct lskcipher_instance *lskcipher_alloc_instance_simple2(
	struct crypto_template *tmpl, struct rtattr **tb)
{}

static int crypto_ecb_create2(struct crypto_template *tmpl, struct rtattr **tb)
{}

static int crypto_ecb_create(struct crypto_template *tmpl, struct rtattr **tb)
{}

static struct crypto_template crypto_ecb_tmpl =;

static int __init crypto_ecb_module_init(void)
{}

static void __exit crypto_ecb_module_exit(void)
{}

subsys_initcall(crypto_ecb_module_init);
module_exit(crypto_ecb_module_exit);

MODULE_LICENSE();
MODULE_DESCRIPTION();
MODULE_ALIAS_CRYPTO();
MODULE_IMPORT_NS();