linux/crypto/aead.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * AEAD: Authenticated Encryption with Associated Data
 *
 * This file provides API support for AEAD algorithms.
 *
 * Copyright (c) 2007-2015 Herbert Xu <[email protected]>
 */

#include <crypto/internal/aead.h>
#include <linux/cryptouser.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/seq_file.h>
#include <linux/string.h>
#include <net/netlink.h>

#include "internal.h"

static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key,
			    unsigned int keylen)
{}

int crypto_aead_setkey(struct crypto_aead *tfm,
		       const u8 *key, unsigned int keylen)
{}
EXPORT_SYMBOL_GPL();

int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize)
{}
EXPORT_SYMBOL_GPL();

int crypto_aead_encrypt(struct aead_request *req)
{}
EXPORT_SYMBOL_GPL();

int crypto_aead_decrypt(struct aead_request *req)
{}
EXPORT_SYMBOL_GPL();

static void crypto_aead_exit_tfm(struct crypto_tfm *tfm)
{}

static int crypto_aead_init_tfm(struct crypto_tfm *tfm)
{}

static int __maybe_unused crypto_aead_report(
	struct sk_buff *skb, struct crypto_alg *alg)
{}

static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg)
	__maybe_unused;
static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg)
{}

static void crypto_aead_free_instance(struct crypto_instance *inst)
{}

static const struct crypto_type crypto_aead_type =;

int crypto_grab_aead(struct crypto_aead_spawn *spawn,
		     struct crypto_instance *inst,
		     const char *name, u32 type, u32 mask)
{}
EXPORT_SYMBOL_GPL();

struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask)
{}
EXPORT_SYMBOL_GPL();

int crypto_has_aead(const char *alg_name, u32 type, u32 mask)
{}
EXPORT_SYMBOL_GPL();

static int aead_prepare_alg(struct aead_alg *alg)
{}

int crypto_register_aead(struct aead_alg *alg)
{}
EXPORT_SYMBOL_GPL();

void crypto_unregister_aead(struct aead_alg *alg)
{}
EXPORT_SYMBOL_GPL();

int crypto_register_aeads(struct aead_alg *algs, int count)
{}
EXPORT_SYMBOL_GPL();

void crypto_unregister_aeads(struct aead_alg *algs, int count)
{}
EXPORT_SYMBOL_GPL();

int aead_register_instance(struct crypto_template *tmpl,
			   struct aead_instance *inst)
{}
EXPORT_SYMBOL_GPL();

MODULE_LICENSE();
MODULE_DESCRIPTION();