linux/crypto/cast5_generic.c

// SPDX-License-Identifier: GPL-2.0-or-later
/* Kernel cryptographic api.
* cast5.c - Cast5 cipher algorithm (rfc2144).
*
* Derived from GnuPG implementation of cast5.
*
* Major Changes.
*	Complete conformance to rfc2144.
*	Supports key size from 40 to 128 bits.
*
* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
* Copyright (C) 2003 Kartikey Mahendra Bhatt <[email protected]>.
*/


#include <asm/unaligned.h>
#include <crypto/algapi.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/types.h>
#include <crypto/cast5.h>

static const u32 s5[256] =;
static const u32 s6[256] =;
static const u32 s7[256] =;
static const u32 sb8[256] =;

#define s1
#define s2
#define s3
#define s4

#define F1(D, m, r)
#define F2(D, m, r)
#define F3(D, m, r)


void __cast5_encrypt(struct cast5_ctx *c, u8 *outbuf, const u8 *inbuf)
{}
EXPORT_SYMBOL_GPL();

static void cast5_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf)
{}

void __cast5_decrypt(struct cast5_ctx *c, u8 *outbuf, const u8 *inbuf)
{}
EXPORT_SYMBOL_GPL();

static void cast5_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf)
{}

static void key_schedule(u32 *x, u32 *z, u32 *k)
{}


int cast5_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len)
{}
EXPORT_SYMBOL_GPL();

static struct crypto_alg alg =;

static int __init cast5_mod_init(void)
{}

static void __exit cast5_mod_fini(void)
{}

subsys_initcall(cast5_mod_init);
module_exit(cast5_mod_fini);

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