linux/crypto/akcipher.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Public Key Encryption
 *
 * Copyright (c) 2015, Intel Corporation
 * Authors: Tadeusz Struk <[email protected]>
 */
#include <crypto/internal/akcipher.h>
#include <linux/cryptouser.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/scatterlist.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <net/netlink.h>

#include "internal.h"

#define CRYPTO_ALG_TYPE_AHASH_MASK

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

static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
	__maybe_unused;

static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
{}

static void crypto_akcipher_exit_tfm(struct crypto_tfm *tfm)
{}

static int crypto_akcipher_init_tfm(struct crypto_tfm *tfm)
{}

static void crypto_akcipher_free_instance(struct crypto_instance *inst)
{}

static const struct crypto_type crypto_akcipher_type =;

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

struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type,
					      u32 mask)
{}
EXPORT_SYMBOL_GPL();

static void akcipher_prepare_alg(struct akcipher_alg *alg)
{}

static int akcipher_default_op(struct akcipher_request *req)
{}

static int akcipher_default_set_key(struct crypto_akcipher *tfm,
				     const void *key, unsigned int keylen)
{}

int crypto_register_akcipher(struct akcipher_alg *alg)
{}
EXPORT_SYMBOL_GPL();

void crypto_unregister_akcipher(struct akcipher_alg *alg)
{}
EXPORT_SYMBOL_GPL();

int akcipher_register_instance(struct crypto_template *tmpl,
			       struct akcipher_instance *inst)
{}
EXPORT_SYMBOL_GPL();

int crypto_akcipher_sync_prep(struct crypto_akcipher_sync_data *data)
{}
EXPORT_SYMBOL_GPL();

int crypto_akcipher_sync_post(struct crypto_akcipher_sync_data *data, int err)
{}
EXPORT_SYMBOL_GPL();

int crypto_akcipher_sync_encrypt(struct crypto_akcipher *tfm,
				 const void *src, unsigned int slen,
				 void *dst, unsigned int dlen)
{}
EXPORT_SYMBOL_GPL();

int crypto_akcipher_sync_decrypt(struct crypto_akcipher *tfm,
				 const void *src, unsigned int slen,
				 void *dst, unsigned int dlen)
{}
EXPORT_SYMBOL_GPL();

static void crypto_exit_akcipher_ops_sig(struct crypto_tfm *tfm)
{}

int crypto_init_akcipher_ops_sig(struct crypto_tfm *tfm)
{}
EXPORT_SYMBOL_GPL();

MODULE_LICENSE();
MODULE_DESCRIPTION();