linux/crypto/blowfish_generic.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Cryptographic API.
 *
 * Blowfish Cipher Algorithm, by Bruce Schneier.
 * http://www.counterpane.com/blowfish.html
 *
 * Adapted from Kerneli implementation.
 *
 * Copyright (c) Herbert Valerio Riedel <[email protected]>
 * Copyright (c) Kyle McMartin <[email protected]>
 * Copyright (c) 2002 James Morris <[email protected]>
 */

#include <crypto/algapi.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <asm/unaligned.h>
#include <linux/types.h>
#include <crypto/blowfish.h>

/*
 * Round loop unrolling macros, S is a pointer to a S-Box array
 * organized in 4 unsigned longs at a row.
 */
#define GET32_3(x)
#define GET32_2(x)
#define GET32_1(x)
#define GET32_0(x)

#define bf_F(x)

#define ROUND(a, b, n)

static void bf_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src)
{}

static void bf_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src)
{}

static struct crypto_alg alg =;

static int __init blowfish_mod_init(void)
{}

static void __exit blowfish_mod_fini(void)
{}

subsys_initcall(blowfish_mod_init);
module_exit(blowfish_mod_fini);

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