linux/crypto/842.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Cryptographic API for the 842 software compression algorithm.
 *
 * Copyright (C) IBM Corporation, 2011-2015
 *
 * Original Authors: Robert Jennings <[email protected]>
 *                   Seth Jennings <[email protected]>
 *
 * Rewrite: Dan Streetman <[email protected]>
 *
 * This is the software implementation of compression and decompression using
 * the 842 format.  This uses the software 842 library at lib/842/ which is
 * only a reference implementation, and is very, very slow as compared to other
 * software compressors.  You probably do not want to use this software
 * compression.  If you have access to the PowerPC 842 compression hardware, you
 * want to use the 842 hardware compression interface, which is at:
 * drivers/crypto/nx/nx-842-crypto.c
 */

#include <linux/init.h>
#include <linux/module.h>
#include <linux/crypto.h>
#include <linux/sw842.h>
#include <crypto/internal/scompress.h>

struct crypto842_ctx {};

static void *crypto842_alloc_ctx(struct crypto_scomp *tfm)
{}

static int crypto842_init(struct crypto_tfm *tfm)
{}

static void crypto842_free_ctx(struct crypto_scomp *tfm, void *ctx)
{}

static void crypto842_exit(struct crypto_tfm *tfm)
{}

static int crypto842_compress(struct crypto_tfm *tfm,
			      const u8 *src, unsigned int slen,
			      u8 *dst, unsigned int *dlen)
{}

static int crypto842_scompress(struct crypto_scomp *tfm,
			       const u8 *src, unsigned int slen,
			       u8 *dst, unsigned int *dlen, void *ctx)
{}

static int crypto842_decompress(struct crypto_tfm *tfm,
				const u8 *src, unsigned int slen,
				u8 *dst, unsigned int *dlen)
{}

static int crypto842_sdecompress(struct crypto_scomp *tfm,
				 const u8 *src, unsigned int slen,
				 u8 *dst, unsigned int *dlen, void *ctx)
{}

static struct crypto_alg alg =;

static struct scomp_alg scomp =;

static int __init crypto842_mod_init(void)
{}
subsys_initcall(crypto842_mod_init);

static void __exit crypto842_mod_exit(void)
{}
module_exit(crypto842_mod_exit);

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